Skip to content

Commit 5764e23

Browse files
author
whitequark
committedOct 3, 2017
liteeth_mini: export ethmac slot parameters via CSR constants.
1 parent 6abc1b4 commit 5764e23

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

Diff for: ‎misoc/cores/liteeth_mini/mac/__init__.py

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ def __init__(self, phy, dw,
1616
self.submodules.core = LiteEthMACCore(phy, dw, endianness, with_preamble_crc)
1717
self.csrs = []
1818
if interface == "wishbone":
19+
self.rx_slots = CSRConstant(nrxslots)
20+
self.tx_slots = CSRConstant(ntxslots)
21+
self.slot_size = CSRConstant(2**bits_for(eth_mtu))
22+
1923
self.submodules.interface = LiteEthMACWishboneInterface(dw, nrxslots, ntxslots)
2024
self.comb += [
2125
self.interface.source.connect(self.core.sink),

0 commit comments

Comments
 (0)