Skip to content

Commit bbcf121

Browse files
committedAug 20, 2017
Revert "liteeth: clean up CSR collection code"
This reverts commit 0130cd6.
1 parent 0130cd6 commit bbcf121

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

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

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66
from misoc.cores.liteeth_mini.mac.wishbone import LiteEthMACWishboneInterface
77

88

9-
class LiteEthMAC(Module):
9+
class LiteEthMAC(Module, AutoCSR):
1010
def __init__(self, phy, dw,
1111
interface="wishbone",
1212
endianness="big",
1313
with_preamble_crc=True,
1414
nrxslots=2,
1515
ntxslots=2):
1616
self.submodules.core = LiteEthMACCore(phy, dw, endianness, with_preamble_crc)
17+
self.csrs = []
1718
if interface == "wishbone":
1819
self.submodules.interface = LiteEthMACWishboneInterface(dw, nrxslots, ntxslots)
1920
self.comb += [
@@ -24,3 +25,6 @@ def __init__(self, phy, dw,
2425
self.csrs = self.interface.get_csrs() + self.core.get_csrs()
2526
else:
2627
raise NotImplementedError
28+
29+
def get_csrs(self):
30+
return self.csrs

0 commit comments

Comments
 (0)
Please sign in to comment.