Calibration Overview - Calibration Overview - 1.0 English - PG353

Versal Adaptive SoC Soft DDR4 SDRAM Memory Controller LogiCORE IP Product Guide (PG353)

Document_ID
PG353
Release_Date
2025-06-25
Version
1.0 English
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.

  1. 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).
  2. Write pattern 10101010 into 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 pattern FF00FF00_FF00FF00 due to skew between DBI and DQS.
    Figure 1. Initial Write DQS and DBI with Skew between Them
  3. 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
  4. 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
  5. 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
  6. 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*.
  7. 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