Merge pull request #46 from Xiretza/gen-py-wishbone

Update gen.py to work with latest LiteX in wishbone mode
This commit is contained in:
enjoy-digital 2020-08-22 21:16:22 +02:00 committed by GitHub
commit 0705b35399
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 8 deletions

View File

@ -234,14 +234,9 @@ class MACCore(PHYCore):
self.add_csr("ethmac")
# Wishbone Interface -----------------------------------------------------------------------
class _WishboneBridge(Module):
def __init__(self, interface):
self.wishbone = interface
self.wishbone.data_width = 32
bridge = _WishboneBridge(self.platform.request("wishbone"))
self.submodules += bridge
self.add_wb_master(bridge.wishbone)
wb_bus = wishbone.Interface()
self.add_wb_master(wb_bus)
self.comb += wb_bus.connect_to_pads(self.platform.request("wishbone"), mode="slave")
# Interrupt Interface ----------------------------------------------------------------------
self.comb += self.platform.request("interrupt").eq(self.ethmac.ev.irq)