Read DQS Gate Training - Read DQS Gate Training - 1.15 English - UG585

Zynq 7000 SoC Technical Reference Manual (UG585)

Document_ID
UG585
Release_Date
2026-02-06
Version
1.15 English
Table 1. Read DQS Gate Training
Goal Adjust valid RD DQS window.
Desired Nominal Surround the 4 (BL=8) valid DQS pulses
Final Ratio 2 * board delay. Add 0.5 cycle if the clock is inverted
Initial Ratio Final ratio minus 0.125 cycle (0x20 units), but not < 0.
Applies To DDR3/DDR3L, LPDDR2

The read DQS gate training is used by the PHY to identify the valid interval of read DQS and capture the read data. It is necessary to align the valid read window to the read data burst and exclude the preamble period and any period during which the DQS signal is tri-stated or driven by the PHY itself.

The DDRC supports read DQS gate training as part of the initialization procedure. Optionally, training can be disabled and pre-determined delay values can be programmed via registers (required for DDR2, where read training is not supported).

Important: When using LPDDR2, with read gate training, automatic training is not recommended. Instead, the following procedure is recommended (AMD tools implement this flow):
  1. The even byte lanes are trained and the results are recorded by software.
  2. The odd byte lanes are trained and the results are recorded by software.
  3. The results from 1 and 2 are then applied during DRAM controller initialization, with automatic training disabled.
Note: Successful training depends on providing an approximate minimum AMD Zynq™ 7000 SoC-to-DRAM board delay value. This value should be estimated based on system board layout.