From 9c07b45f3cf02961886b2be43dadaabf699006ae Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 27 Jun 2024 09:35:28 +0200 Subject: [PATCH] soc/add_ethernet: Add 64-bit data_width support. --- litex/soc/integration/soc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litex/soc/integration/soc.py b/litex/soc/integration/soc.py index 2a522859a..c4e79d5db 100644 --- a/litex/soc/integration/soc.py +++ b/litex/soc/integration/soc.py @@ -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,