From 8b2bd00a95dbcbae2d4637f681b3a8fc5eeea75d Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Tue, 10 Oct 2023 14:49:36 +0200 Subject: [PATCH] mac/sram: LiteEthMACSRAMReader: force READ_FIRST for mems ports (fix tx packet corruption for efinix trion/titanium) --- liteeth/mac/sram.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liteeth/mac/sram.py b/liteeth/mac/sram.py index 295c6fe..ecd1326 100644 --- a/liteeth/mac/sram.py +++ b/liteeth/mac/sram.py @@ -282,7 +282,7 @@ class LiteEthMACSRAMReader(Module, AutoCSR): ports = [None]*nslots for n in range(nslots): mems[n] = Memory(dw, depth) - ports[n] = mems[n].get_port(has_re=True) + ports[n] = mems[n].get_port(has_re=True, mode=READ_FIRST) self.specials += ports[n] self.mems = mems