Skip to content

Commit 0130cd6

Browse files
committedAug 20, 2017
liteeth: clean up CSR collection code
1 parent 1dd3a43 commit 0130cd6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed
 

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

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

88

9-
class LiteEthMAC(Module, AutoCSR):
9+
class LiteEthMAC(Module):
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 = []
1817
if interface == "wishbone":
1918
self.submodules.interface = LiteEthMACWishboneInterface(dw, nrxslots, ntxslots)
2019
self.comb += [
@@ -25,6 +24,3 @@ def __init__(self, phy, dw,
2524
self.csrs = self.interface.get_csrs() + self.core.get_csrs()
2625
else:
2726
raise NotImplementedError
28-
29-
def get_csrs(self):
30-
return self.csrs

0 commit comments

Comments
 (0)
Please sign in to comment.