From 82c08c78c9711e2f0ca3ee70da369f4e494b762e Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 29 Oct 2018 19:27:26 +0100 Subject: [PATCH] phy/gensdrphy: use tristate input --- litedram/phy/gensdrphy.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/litedram/phy/gensdrphy.py b/litedram/phy/gensdrphy.py index 172e29c..3d5a549 100644 --- a/litedram/phy/gensdrphy.py +++ b/litedram/phy/gensdrphy.py @@ -61,8 +61,9 @@ class GENSDRPHY(Module): # DQ/DQS/DM data dq_o = Signal(databits) dq_oe = Signal() + dq_i = Signal(databits) self.sync += dq_o.eq(dfi.p0.wrdata) - self.specials += Tristate(pads.dq, dq_o, dq_oe) + self.specials += Tristate(pads.dq, dq_o, dq_oe, dq_i) self.sync += \ If(dfi.p0.wrdata_en, pads.dm.eq(dfi.p0.wrdata_mask) @@ -70,7 +71,7 @@ class GENSDRPHY(Module): pads.dm.eq(0) ) dq_in = Signal(databits) - self.sync.sys_ps += dq_in.eq(pads.dq) + self.sync.sys_ps += dq_in.eq(dq_i) self.sync += dfi.p0.rddata.eq(dq_in) # DQ/DM control