Merge pull request #85 from lschuermann/dev/mac-wishbone-dw

liteeth/mac: support SRAM/Wishbone operation with dw > 32 bit
This commit is contained in:
enjoy-digital 2021-10-23 18:39:54 +02:00 committed by GitHub
commit 2a5621474c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -50,7 +50,7 @@ class LiteEthMAC(Module, AutoCSR):
self.tx_slots = CSRConstant(ntxslots)
self.slot_size = CSRConstant(2**bits_for(eth_mtu))
wishbone_interface = LiteEthMACWishboneInterface(
dw = 32,
dw = dw,
nrxslots = nrxslots,
ntxslots = ntxslots,
endianness = endianness,
@ -74,7 +74,6 @@ class LiteEthMAC(Module, AutoCSR):
self.submodules.crossbar = LiteEthMACCrossbar(dw)
self.submodules.mac_crossbar = LiteEthMACCoreCrossbar(self.core, self.crossbar, self.interface, dw, hw_mac)
else:
assert dw == 32
self.comb += self.interface.source.connect(self.core.sink)
self.comb += self.core.source.connect(self.interface.sink)