wishbone.SRAM: Support non-32bit wishbone widths.
This commit is contained in:
parent
bc173380f2
commit
3b9e4c4df6
|
@ -651,7 +651,7 @@ class SRAM(Module):
|
|||
# generate write enable signal
|
||||
if not read_only:
|
||||
self.comb += [port.we[i].eq(self.bus.cyc & self.bus.stb & self.bus.we & self.bus.sel[i])
|
||||
for i in range(4)]
|
||||
for i in range(bus_data_width//8)]
|
||||
# address and data
|
||||
self.comb += [
|
||||
port.adr.eq(self.bus.adr[:len(port.adr)]),
|
||||
|
|
Loading…
Reference in New Issue