Skip to content

Commit

Permalink
soc/ethernet: enable full_memory_we for Altera platfroms
Browse files Browse the repository at this point in the history
Enable by default workaround for not-detecting some more
complex memories in Quartus toolchain
  • Loading branch information
piotro888 committed Nov 19, 2024
1 parent ba9a84f commit d8ee596
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion litex/soc/integration/soc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1745,6 +1745,7 @@ def add_ethernet(self, name="ethmac", phy=None, phy_cd="eth", dynamic_ip=False,
# Imports
from liteeth.mac import LiteEthMAC
from liteeth.phy.model import LiteEthPHYModel
from litex.build.altera.quartus import AlteraQuartusToolchain

# MAC.
assert data_width in [8, 32]
Expand All @@ -1761,7 +1762,9 @@ def add_ethernet(self, name="ethmac", phy=None, phy_cd="eth", dynamic_ip=False,
ntxslots = ntxslots, txslots_write_only = txslots_write_only,
timestamp = None if not with_timestamp else self.timer0.uptime_cycles,
with_preamble_crc = not software_debug,
with_sys_datapath = with_sys_datapath)
with_sys_datapath = with_sys_datapath,
full_memory_we = isinstance(self.platform.toolchain, AlteraQuartusToolchain)
)
if not with_sys_datapath:
# Use PHY's eth_tx/eth_rx clock domains.
ethmac = ClockDomainsRenamer({
Expand Down

0 comments on commit d8ee596

Please sign in to comment.