From 145398d874352f0efbe8edbbb33c62687bb077b5 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Sat, 2 May 2015 16:48:57 +0200 Subject: [PATCH] liteeth/core/mac: minor cleanup --- misoclib/com/liteeth/core/mac/__init__.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/misoclib/com/liteeth/core/mac/__init__.py b/misoclib/com/liteeth/core/mac/__init__.py index 14bbf74b5..acb226d69 100644 --- a/misoclib/com/liteeth/core/mac/__init__.py +++ b/misoclib/com/liteeth/core/mac/__init__.py @@ -5,8 +5,10 @@ from misoclib.com.liteeth.core.mac.frontend.wishbone import LiteEthMACWishboneIn class LiteEthMAC(Module, AutoCSR): - def __init__(self, phy, dw, interface="crossbar", endianness="big", - with_preamble_crc=True): + def __init__(self, phy, dw, + interface="crossbar", + endianness="big", + with_preamble_crc=True): self.submodules.core = LiteEthMACCore(phy, dw, endianness, with_preamble_crc) self.csrs = [] if interface == "crossbar": @@ -24,10 +26,8 @@ class LiteEthMAC(Module, AutoCSR): self.comb += Port.connect(self.interface, self.core) self.ev, self.bus = self.interface.sram.ev, self.interface.bus self.csrs = self.interface.get_csrs() + self.core.get_csrs() - elif interface == "dma": - raise NotImplementedError else: - raise ValueError(interface + " not supported by LiteEthMac!") + raise NotImplementedError def get_csrs(self): return self.csrs