Merge pull request #2069 from VOGL-electronic/fix-sim-ethernet

sim: add HW_PREAMBLE_CRC for ethernet
This commit is contained in:
enjoy-digital 2024-09-13 08:36:40 +02:00 committed by GitHub
commit 99550809b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -237,6 +237,7 @@ class SimSoC(SoCCore):
if with_ethernet or with_etherbone:
if ethernet_phy_model == "sim":
self.ethphy = LiteEthPHYModel(self.platform.request("eth", 0))
self.add_constant("HW_PREAMBLE_CRC");
elif ethernet_phy_model == "xgmii":
self.ethphy = LiteEthPHYXGMII(None, self.platform.request("xgmii_eth", 0), model=True)
elif ethernet_phy_model == "gmii":