Merge pull request #517 from bayi/master

Digilent CMOD A7 ISSIRAM fix
This commit is contained in:
enjoy-digital 2023-08-08 19:29:32 +02:00 committed by GitHub
commit 3903cdee92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 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

@ -56,6 +56,7 @@ class AsyncSRAM(LiteXModule):
data = issiram.data
wen = issiram.wen
cen = issiram.cen
oe = issiram.oe
########################
tristate_data = TSTriple(data_width)
self.specials += tristate_data.get_tristate(data)
@ -70,7 +71,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