soc/add_ethernet: Add 64-bit data_width support.

This commit is contained in:
Florent Kermarrec 2024-06-27 09:35:28 +02:00
parent 3dd3477ea2
commit 9c07b45f3c
1 changed files with 2 additions and 2 deletions

View File

@ -1850,14 +1850,14 @@ class LiteXSoC(SoC):
from liteeth.phy.model import LiteEthPHYModel
# MAC.
assert data_width in [8, 32]
assert data_width in [8, 32, 64]
with_sys_datapath = (data_width == 32)
self.check_if_exists(name)
if with_timestamp:
self.timer0.add_uptime()
ethmac = LiteEthMAC(
phy = phy,
dw = 32,
dw = {8: 32, 32: 32, 64: 64}[data_width],
interface = "wishbone",
endianness = self.cpu.endianness,
nrxslots = nrxslots, rxslots_read_only = rxslots_read_only,