34
ECP5 and ECP5-5G Hi
g
h-Speed I/O Interface
Figure 32. DDR2, DDR3/DDR3L, LPDDR2 and LPDDR3 Write Side (DQ, DQS and DM)
This interface uses the following modules:
• ODDRX2DQA to generate the data DQ and DM signals. TSHX2DQA is used to generate the tristate control for
the DQ output
• ODDRX2DQSB to generate DQS output. TSHX2DQSA is used to generate the DQS tristate control.
• DQSW270 which is the 270 degree delayed DQS signal is used to generate the DQ and DM outputs
• DQSW is 90 degrees shifted from the DQSW270 is used to generate DQS output
• The DQSW270 and DQSW clocks are generated in the DQSBUFM module shown on the Read side Implemen-
tation figure.
• When write leveling is enabled, the dynamic delay for write leveling (DYNDELAY[7:0]) is applied both to DQSW
and DQSW270 so that the DQ and DQS phase relationship is maintained.
• ECLK and SCLK are used inside the ODDRX2 module before data is transferred to the DQSW270 and DQSW
clocks. The ECLK is generated by the EHXPLLL module and the SCLK is generated by the CLKDIVF module,
both shown in the Read side implementation.
* Figure 32 shows one tristate. The software generates one tristate element for each DQ port
Q
DDR_reset
dqs_0
dq_0(0)
dq_0(7)
dm_0
Q
_
Q
Q
Q
Q
Eclk (from ECLKSYNCA as shown in the Input interface)
Sclk (from CLKDIVF as shown in the Input interface)
DQSW270 (from DQSBUFM as shown in the Input interface)
DQSW (from DQSBUFM as shown in the Input interface)
dqtri_0(0)
dqtri_0(0)
dataout_0(8)
dataout_0(0)
dataout_0(16)
dataout_0(24)
dataout_0(15)
dataout_0(7)
dataout_0(23)
dataout_0(31)
1'b0
dqso_0(0)
1'b0
dqso_0(1)
dqstri_0(0)
dqstri_0(1)
D0
D1
D2
D1
RST
DQSW270
SCLK
ECLK
RST
D0
D1
D2
D3
SCLK
ECLK
DQSW
ODDRX2DQA
ODDRX2DQSB
T0
T1
SCLK
ECLK
DQSW
RST
TSHX2DQSA
D0
D1
D2
D1
RST
DQSW270
SCLK
ECLK
datamask_0(0)
datamask_0(1)
datamask_0(2)
datamask_0(3)
D0
D1
D2
D1
RST
DQSW270
SCLK
ECLK
ODDRX2DQA
T0
T1
SCLK
ECLK
DQSW270
RST
TSHX2DQA
ODDRX2DQA