Skip to content

Commit

Permalink
liteeth_mini: export ethmac slot parameters via CSR constants.
Browse files Browse the repository at this point in the history
whitequark committed Oct 3, 2017
1 parent 6abc1b4 commit 5764e23
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions misoc/cores/liteeth_mini/mac/__init__.py
Original file line number Diff line number Diff line change
@@ -16,6 +16,10 @@ def __init__(self, phy, dw,
self.submodules.core = LiteEthMACCore(phy, dw, endianness, with_preamble_crc)
self.csrs = []
if interface == "wishbone":
self.rx_slots = CSRConstant(nrxslots)
self.tx_slots = CSRConstant(ntxslots)
self.slot_size = CSRConstant(2**bits_for(eth_mtu))

self.submodules.interface = LiteEthMACWishboneInterface(dw, nrxslots, ntxslots)
self.comb += [
self.interface.source.connect(self.core.sink),

0 comments on commit 5764e23

Please sign in to comment.