liteeth/mac/core: fix hw_preamble_crc register generation

This commit is contained in:
Florent Kermarrec 2015-03-19 13:03:27 +01:00
parent 236ea0f572
commit 6bdf60567c
1 changed files with 1 additions and 0 deletions

View File

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