Hardware Measurements - Hardware Measurements - 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
  1. Probe the write commands and read commands at the memory:
    • Write = cs_n = 0; ras_n = 1; cas_n = 0; we_n = 0; act_n = 1
    • Read = cs_n = 0; ras_n = 1; cas_n = 0; we_n = 1; act_n = 1
  2. Probe a data pin to check for data being returned from the DRAM.
  3. Probe the VREF level at the DRAM.
  4. Probe the DM pin which should be deasserted during the write burst (or tied off on the board with an appropriate value resistor).
  5. Probe the read burst after the write and check if the expected data pattern is being returned.
  6. Check for floating address pins if the expected data is not returned.
  7. Check for any stuck-at level issues on DQ pins whose signal level does not change. If at all possible probe at the receiver to check termination and signal integrity.
  8. Check the DBG port signals and the full read data and comparison result to check the data in general interconnect. The calibration algorithm has RTL logic to issue the commands and check the data. Check if the dbg_rd_valid aligns with the data pattern or is off. Set up a trigger when the error gets asserted to capture signals in the hardware debugger for analysis.
  9. Re-check results from previous calibration stages. Compare passing byte lanes against failing byte lanes for previous stages of calibration. If a failure occurs during complex pattern calibration, check the values found during simple pattern calibration for example.
  10. All of the data comparison for complex read calibration occur in the general interconnect, so it can be useful to pull in the debug data in the hardware debugger and take a look at what the data looks like coming back as taps are adjusted, see figures below. The screen captures shown are from simulation with a small loop count set for the data pattern. Look at dbg_rd_data, dbg_rd_valid, and dbg_cplx_err_log.
  11. Using the Vivado Hardware Manager and while running the Memory IP Example Design with Debug Signals enabled, set the Read Complex calibration trigger to cal_r*_status[34] = R (rising edge). To view each byte, add an additional trigger on dbg_cmp_byte and set to the byte of interest. The following simulation example shows how the debug signals should behave during Read Complex Calibration.

    The following figure shows the start of the complex calibration data pattern with an emphasis on the dbg_cplx_config bus shown. The “read start” bit is Bit[0] and the number of loops is set based on Bits[15:9], hence the figure shows the start of complex read pattern and the loop count set to 1 (for simulation only). The dbg_cplx_status goes to 1 to indicate the pattern is in progress. See Debug Signals section list of all debug signals.

    Figure 1. RTL Debug Signals during Read Complex (Start)
    Figure 2. RTL Debug Signals during Read Complex (Writes and Reads)
  12. When an unexpected data error occurs during complex read calibration, for example a byte shift, the entire bus would be 1. This is not the expected bit mismatch found in window detection but points to a true read versus write issue. Now, the read data should be compared with the expected (compare) data and the error debugged to determine if it is a read or write issue. Use dbg_rd_data and dbg_rd_dat_cmp to compare the received data to the expected data.