From: Jean THOMAS Date: Tue, 16 Jun 2020 16:28:11 +0000 (+0200) Subject: Partially fix the tristate IOs on DDR3 RAM X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=101f230303dd1f9bdda83f002430958ecbadefdd;p=gram.git Partially fix the tristate IOs on DDR3 RAM --- 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 ------------------------------------------------------------------------