3.1 DDR3
(Ask a Question)Automatic initialization of DDR3 memory involves the following steps:
- Training logic performs HS_IO_CLK-to-SYS_CLK training.
- Training logic performs CMD/ADDR to REF_CLK training.
- DDR controller waits for the PHY to be ready. At this point, it is assumed that the PHY outputs stable clocks and signal levels.
- Controller asserts RESET_N and CKE low.
- Controller deasserts RESET_N after 200 μs, and then deasserts CKE after an additional 600 μs.
- Controller waits for tXPR.
- The MR2, MR3, MR1, and MR0 registers are configured (in that order) using the MRS command.
- Controller waits for 512 clock cycles. During this wait time, the ZQCL (long) command is sent to each rank independently to calibrate the RTT and RON values.
- Training logic performs write leveling.
- Training logic performs DQS gate training.
- Training logic aligns read DQ bits.
- Training logic aligns read DQS to DQ.
- Write calibration is performed.
- Normal operation begins.
The controller reinitializes the SDRAM memory when a low-to-high transition is detected on the reinitialization control signal (CTRLR_INIT).
The following figure shows the DDR3 automatic initialization flow.
Note: If the CTRLR_READY signal is not asserted, find the state of
the failure using the DDR Debug option of SmartDebug.