From 101f230303dd1f9bdda83f002430958ecbadefdd Mon Sep 17 00:00:00 2001 From: Jean THOMAS Date: Tue, 16 Jun 2020 18:28:11 +0200 Subject: [PATCH] Partially fix the tristate IOs on DDR3 RAM --- gram/phy/ecp5ddrphy.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/gram/phy/ecp5ddrphy.py b/gram/phy/ecp5ddrphy.py index 7272b2d..87fb6d7 100644 --- a/gram/phy/ecp5ddrphy.py +++ b/gram/phy/ecp5ddrphy.py @@ -376,7 +376,13 @@ class ECP5DDRPHY(Peripheral, Elaboratable): dqs_pattern.postamble), o_Q=dqs_oe_n ), - Tristate(pads.dqs_p[i], dqs, ~dqs_oe_n, dqs_i) + #Tristate(pads.dqs_p[i], dqs, ~dqs_oe_n, dqs_i) + ] + m.d.comb += [ + #TODO: fix the tristate situation below and remove the Tristate instance above + #self.pads.dqs.oe[i].eq(~dqs_oe_n), + self.pads.dqs.o[i].eq(dqs), + self.pads.dqs.i[i].eq(dqs_i), ] for j in range(8*i, 8*(i+1)): @@ -469,7 +475,13 @@ class ECP5DDRPHY(Peripheral, Elaboratable): dqs_pattern.postamble), o_Q=dq_oe_n, ), - Tristate(pads.dq[j], dq_o, ~dq_oe_n, dq_i) + #Tristate(pads.dq[j], dq_o, ~dq_oe_n, dq_i) + ] + m.d.comb += [ + #TODO: fix the tristate situation below and remove the Tristate instance above + #self.pads.dq.oe[j].eq(~dq_oe_n), + self.pads.dq.o[j].eq(dq_o), + self.pads.dq.i[j].eq(dq_i), ] # Read Control Path ------------------------------------------------------------------------ -- 2.30.2