The following measurements can be made by triggering on the status bit that
indicates the start of WRLVL (dbg_cal_seq[1] =
1’b1).
- Verify DQS and CK are toggling on the board. The FPGA sends DQS and CK during Write Leveling. If they are not toggling, something is wrong with the setup and the General Checks section should be thoroughly reviewed.
- Verify fly-by-routing is implemented correctly on the board.
- Verify CK to DQS trace matching. The required matching is documented with the Versal Adaptive SoC PCB Design User Guide (UG863). Failure to adhere to this spec can result in Write Leveling failures.
- Trigger on the start of Write Leveling by bringing
dbg_cal_seq[1]to an I/O and using the rising edge (1’b1) as the scope trigger. Monitor the following:- MRS command at the memory to enable Write Leveling Mode.
The Mode registers must be properly set up to enable Write Leveling.
Specifically, address bit A7 must be correct. If the part chosen in the
Memory IP is not accurate or there is an issue with the connection of
the address bits on the board, this could be an issue. If the Mode
registers are not set up to enable Write Leveling, the 0-to-1 transition
is not seen.Note: For dual-rank design when address mirroring is used, address bit A7 is not the same between the two ranks.
- Verify the ODT pin is connected and being asserted properly during the DQS toggling.
- Check the signal levels of all the DQ bits being returned. Any stuck-at-bits (Low/High) or floating bits that are not being driven to a given rail can cause issues.
- Verify the DQS to CK relationship changes as the algorithm makes adjustments to the DQS. Check the DQ value being returned as this relationship changes.
- For DDR4 check the VREF settings are correct in the design.
- MRS command at the memory to enable Write Leveling Mode.
The Mode registers must be properly set up to enable Write Leveling.
Specifically, address bit A7 must be correct. If the part chosen in the
Memory IP is not accurate or there is an issue with the connection of
the address bits on the board, this could be an issue. If the Mode
registers are not set up to enable Write Leveling, the 0-to-1 transition
is not seen.
- Using the Vivado Hardware Manager and while running the
Memory IP Example Design with Debug Signals enabled, set
the trigger to
dbg_cal_seq = 0R0(R signifies rising edge). The following simulation example shows how the debug signals should behave during successful Write Leveling.
Figure 1. RTL Debug Signals during Write Leveling