build/efinix: Move tweaked Memory to build/efinix for now.

This commit is contained in:
Florent Kermarrec 2021-10-13 09:51:47 +02:00
parent a99b4cac48
commit 269b84eca4
2 changed files with 2 additions and 1 deletions

View File

@ -339,7 +339,8 @@ class SRAM(Module):
self.mem = mem_or_size
else:
if no_we:
from litex.gen.fhdl.memory import Memory as NoWeMemory
# FIXME: Cleanup/Improve integration.
from litex.build.efinix.memory import Memory as NoWeMemory
self.mem = NoWeMemory(bus_data_width, mem_or_size//(bus_data_width//8), init=init)
else:
self.mem = Memory(bus_data_width, mem_or_size//(bus_data_width//8), init=init)