mac/sram: LiteEthMACSRAMReader: force READ_FIRST for mems ports (fix tx packet corruption for efinix trion/titanium)

This commit is contained in:
Gwenhael Goavec-Merou 2023-10-10 14:49:36 +02:00
parent 42772f4388
commit 8b2bd00a95
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ class LiteEthMACSRAMReader(Module, AutoCSR):
ports = [None]*nslots ports = [None]*nslots
for n in range(nslots): for n in range(nslots):
mems[n] = Memory(dw, depth) 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.specials += ports[n]
self.mems = mems self.mems = mems