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
|
@ -653,7 +653,8 @@ class SRAM(Module):
|
||||||
###
|
###
|
||||||
|
|
||||||
# memory
|
# 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
|
self.specials += self.mem, port
|
||||||
# generate write enable signal
|
# generate write enable signal
|
||||||
if not read_only:
|
if not read_only:
|
||||||
|
|
Loading…
Reference in New Issue