s6ddrphy/s7ddrphy: use IOBUFDS/IOBUF for DQS even if input is not currently used.

This commit is contained in:
Florent Kermarrec 2020-03-19 18:15:08 +01:00
parent d68eff02da
commit 1c5e9408c8
2 changed files with 14 additions and 16 deletions

View File

@ -218,19 +218,17 @@ class S6HalfRateDDRPHY(Module):
# DQS tristate buffer
if hasattr(pads, "dqs_n"):
self.specials += Instance("OBUFTDS",
i_I=dqs_o[i],
i_T=dqs_t[i],
o_O=pads.dqs[i],
o_OB=pads.dqs_n[i],
self.specials += Instance("IOBUFDS",
i_T = dqs_t[i],
i_I = dqs_o[i],
io_IO = pads.dqs[i],
io_IOB = pads.dqs_n[i],
)
else:
self.specials += Instance("OBUFT",
i_I=dqs_o[i],
i_T=dqs_t[i],
o_O=pads.dqs[i]
self.specials += Instance("IOBUF",
i_T = dqs_t[i],
i_I = dqs_o[i],
io_IO = pads.dqs[i],
)
sd_sdram_half += postamble.eq(drive_dqs)

View File

@ -382,11 +382,11 @@ class S7DDRPHY(Module, AutoCSR):
o_ODATAIN = dqs_nodelay,
o_DATAOUT = dqs_delayed
)
self.specials += Instance("OBUFTDS",
i_I = dqs_delayed if with_odelay else dqs_nodelay,
i_T = dqs_t,
o_O = pads.dqs_p[i],
o_OB = pads.dqs_n[i],
self.specials += Instance("IOBUFDS",
i_T = dqs_t,
i_I = dqs_delayed if with_odelay else dqs_nodelay,
io_IO = pads.dqs_p[i],
io_IOB = pads.dqs_n[i],
)
# DQ ---------------------------------------------------------------------------------------