Skip to content

Commit

Permalink
liteeth: clean up CSR collection code
Browse files Browse the repository at this point in the history
sbourdeauducq committed Aug 20, 2017
1 parent 1dd3a43 commit 0130cd6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions misoc/cores/liteeth_mini/mac/__init__.py
Original file line number Diff line number Diff line change
@@ -6,15 +6,14 @@
from misoc.cores.liteeth_mini.mac.wishbone import LiteEthMACWishboneInterface


class LiteEthMAC(Module, AutoCSR):
class LiteEthMAC(Module):
def __init__(self, phy, dw,
interface="wishbone",
endianness="big",
with_preamble_crc=True,
nrxslots=2,
ntxslots=2):
self.submodules.core = LiteEthMACCore(phy, dw, endianness, with_preamble_crc)
self.csrs = []
if interface == "wishbone":
self.submodules.interface = LiteEthMACWishboneInterface(dw, nrxslots, ntxslots)
self.comb += [
@@ -25,6 +24,3 @@ def __init__(self, phy, dw,
self.csrs = self.interface.get_csrs() + self.core.get_csrs()
else:
raise NotImplementedError

def get_csrs(self):
return self.csrs

0 comments on commit 0130cd6

Please sign in to comment.