From 8ecc3ca6d9476dd1a8b32b2b6bf3584cd6dcfc02 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 5 Oct 2021 15:41:44 +0200 Subject: [PATCH] mac/core: Disable Preamble/CRC with LiteEthPHYModel. --- liteeth/mac/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/liteeth/mac/core.py b/liteeth/mac/core.py index 525bfcc..d9b1ed0 100644 --- a/liteeth/mac/core.py +++ b/liteeth/mac/core.py @@ -32,7 +32,6 @@ class LiteEthMACCore(Module, AutoCSR): phy_dw = phy.dw if core_dw < phy_dw: raise ValueError("Core data width({}) must be larger than PHY data width({})".format(core_dw, phy_dw)) - if with_sys_datapath: cd_tx = "sys" cd_rx = "sys" @@ -41,6 +40,8 @@ class LiteEthMACCore(Module, AutoCSR): cd_tx = "eth_tx" cd_rx = "eth_rx" datapath_dw = phy_dw + if isinstance(phy, LiteEthPHYModel): + with_preamble_crc = False # Disable Preamble/CRC with PHY Model for direct connection to the Ethernet tap. # CSRs. if with_preamble_crc: