liteeth/mac/core: fix hw_preamble_crc register generation
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 19 Mar 2015 12:03:27 +0000 (13:03 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 19 Mar 2015 12:03:27 +0000 (13:03 +0100)
misoclib/com/liteeth/mac/core/__init__.py

index e30a8cedb880ccb143e243ee90dc2f58d6982fe7..f57cada2879cd84c49e0c34f2d9fba7256413415 100644 (file)
@@ -26,6 +26,7 @@ class LiteEthMACCore(Module, AutoCSR):
                        # to the Ethernet tap.
                        self._hw_preamble_crc = CSRStatus(reset=1)
                elif with_hw_preamble_crc:
+                       self._hw_preamble_crc = CSRStatus(reset=1)
                        # Preamble insert/check
                        preamble_inserter = preamble.LiteEthMACPreambleInserter(phy.dw)
                        preamble_checker = preamble.LiteEthMACPreambleChecker(phy.dw)