Fix Digilent Cmod A7 ISSIRAM reading

This commit is contained in:
Bayi 2023-08-05 19:56:15 +02:00
parent efc15a91a9
commit a6b025f7f3
No known key found for this signature in database
GPG Key ID: FC1B0679F450C368
2 changed files with 3 additions and 1 deletions

View File

@ -49,6 +49,7 @@ _io = [
IOStandard("LVCMOS33")),
Subsignal("wen", Pins("R19"), IOStandard("LVCMOS33")),
Subsignal("cen", Pins("N19"), IOStandard("LVCMOS33")),
Subsignal("oe", Pins("P19"), IOStandard("LVCMOS33")),
Misc("SLEW=FAST"),
),

View File

@ -70,7 +70,8 @@ class AsyncSRAM(LiteXModule):
self.comb += [
cen.eq(~chip_ena),
wen.eq(~write_ena),
tristate_data.oe.eq(write_ena)
tristate_data.oe.eq(write_ena),
oe.eq(tristate_data.oe),
]
########################
# address and data