Note: The calibration step is only enabled for the first rank in a
multi-rank system.
Initially DBI and DQS strobe have the same ODELAY setting based on the write leveling results, but ODELAY values of DQS are modified during write DQ per-deskew. A similar mechanism as the write DQ per-bit deskew is run but DBI pin is deskewed instead in relation to DQS. The figure below shows an example of the initial timing relationship between a write DQS and DBI.
- Turn on DBI on the write path, turn off DM on the write path, and DBI on the read path (MRS setting in the DRAM and fabric switch).
- Write pattern
10101010into the DRAM memory (extending the data pattern before/after the burst because write latency calibration has not yet been performed) and read back the data. The data read back on some DQ bytes might be different from the expected patternFF00FF00_FF00FF00due to skew between DBI and DQS.Figure 1. Initial Write DQS and DBI with Skew between Them - Increment DQS ODELAY by one fine tap at a time (maximum shift limited to
90⁰) for finding valid window (15 taps wide) for the data read on DQ byte (see
figure below). This step is carried out in parallel for all DQS. At the end of
this step, valid window detection status is saved as
BRAM_WRDQDBI_STG4_BYTE_STATUS*.Figure 2. Increment Write DQS ODELAY until DQ Byte Capture Correct Pattern
- If a DQS is unable to detect valid window before reaching maximum shift of
90⁰ (see figure below), ODELAY for that DQS is reverted to initial value. At the
end of this step, DQS ODELAY value is saved as
BRAM_WRDQDBI_STG5_DQS_ODLY_BYTE*.Figure 3. Write DQS ODELAY Reached 90⁰ Limit While Searching for Correct Pattern for DQ Byte
- ODELAY value of DQS for which valid window is detected is reverted back by
minimum window width of 15 taps. Increment DBI ODELAY by one fine tap at a time
(maximum shift limited to 180⁰) for detecting valid window of remaining DQS
strobe (see figure below). At the end of this step, DQS ODELAY value is saved as
BRAM_WRDQDBI_STG4_DQS_DELAY_BYTE* and DBI ODELAY value is saved as
BRAM_WRDQDBI_STG6_DBI_ODLY_BYTE*.Figure 4. Increment DBI ODELAY until DQ Byte Capture Correct Pattern
- Increment each DBI ODELAY using step size of 10 taps until DQ byte fails to return the expected data pattern. Once completed, decrement each DBI ODELAY by step size of 10 taps. At the end of this stage, DBI ODELAY values are saved as BRAM_WRDQDBI_DESKEW_DBI_ODLY_FCRSE_BYTE*.
- Increment each DBI ODELAY by one fine tap at a time until DQ byte fails to
return the expected data pattern (DBI is edge aligned with write DQS, see figure
below). At the end of this step, DBI ODELAY values are stored as
BRAM_WRDQDBI_DESKEW_DBI_ODLY_BYTE*.Figure 5. Write DBI Bit Deskew