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:
commit
2a5621474c
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue