mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
wishbone/SRAM: make read_only emited verilog code compatible with all tools
Quartus was not able to implement ROM correctly, see #228
This commit is contained in:
parent
ce5c58592b
commit
a9fe2788a2
1 changed files with 2 additions and 1 deletions
|
@ -653,7 +653,8 @@ class SRAM(Module):
|
|||
###
|
||||
|
||||
# memory
|
||||
port = self.mem.get_port(write_capable=not read_only, we_granularity=8)
|
||||
port = self.mem.get_port(write_capable=not read_only, we_granularity=8,
|
||||
mode=READ_FIRST if read_only else WRITE_FIRST)
|
||||
self.specials += self.mem, port
|
||||
# generate write enable signal
|
||||
if not read_only:
|
||||
|
|
Loading…
Reference in a new issue