4 Initializing MSS DDR4

Automatic initialization of the DDR4 memory (for hardened MSS DDR controller only) involves the following steps:
  1. Training logic performs HS_IO_CLK-to-SYS_CLK training.
  2. Training logic performs CMD/ADDR to REF_CLK training.
  3. DDR controller waits for the PHY to be ready. At this point, it is assumed that the PHY outputs stable clocks.
  4. Controller asserts RESET_N, and CKE is held LOW.
  5. Controller deasserts RESET_N after 200 μs, and it then deasserts CKE after an additional 600 μs.
  6. Controller waits for tXPR.
  7. Controller writes to Register Command Words (RCW) and Buffer Control Words (BCW) if RDIMM/LRDIMM is used.
  8. MRS command is sent to the following mode registers (in order): MR3, MR6, MR5, MR4, MR2, MR1, and MR0.
  9. Controller waits for 128 clock cycles (geardown mode). Controller waits for an additional 512 clock cycles. During this wait time, the ZQCL (long) command is sent to each rank independently to calibrate the Internal Resistance Termination (RTT) and Output Driver Impedance (RON) values.
  10. Training logic performs CMD/ADDR to REF_CLK training.
  11. Training logic performs write leveling.
  12. Training logic performs Read Gate (Read DQS gate) training.
  13. Training logic aligns Read Data (DQ) bits.
  14. Training logic aligns Read Data Strobe (DQS) to DQ.
  15. Write calibration is performed.
  16. Sanity check is performed.
  17. Normal operation begins.