- 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
- Write =
- Probe a data pin to check for data being returned from the DRAM.
- Probe the VREF level at the DRAM.
- Probe the DM pin which should be deasserted during the write burst (or tied off on the board with an appropriate value resistor).
- Probe the read burst after the write and check if the expected data pattern is being returned.
- Check for floating address pins if the expected data is not returned.
- 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.
- 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_validaligns 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. - 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.
- 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, anddbg_cplx_err_log. - 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 ondbg_cmp_byteand 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_configbus 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). Thedbg_cplx_statusgoes 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) - 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_dataanddbg_rd_dat_cmpto compare the received data to the expected data.