User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 326
UG585 (v1.11) September 27, 2016
Chapter 10: DDR Memory Controller
10.9.6 DDR Power Reduction
Clock Stop
When this feature is enabled, the DDR PHY is allowed to stop the clocks going to the DRAM. For
DDR2 and DDR3/DDR3L this feature is effective in self refresh mode only. For LPDDR2 this feature
becomes effective in:
•Idle periods
Power down mode
Self refresh mode
Deep power down mode
Precharge Power Down
When enabled, the DDR memory controller dynamically uses precharge power down mode to reduce
power consumption during idle periods. Normal operation continues when a new request is received
by the DDRC.
Self Refresh
When enabled the DDRC dynamically puts the DRAM into self-refresh mode during idle periods.
Normal operation continues when a new request is received by the DDRC. In this mode DRAM
contents are maintained even when the DDRC core logic is fully powered down, thus allowing to stop
the DDR2X and DDR3X/DDR3LX clocks. Also the DCI clock, which controls the DDR termination, can
be shut down.
Self Refresh Sequence
To put the DDR memory into self-refresh mode the following sequence can be used. When executing
these steps, the executing CPU should be the only still active master, to guarantee that no new
requests are issued to the DDR memory. This mode is typically used in sleep mode. Note that in the
following sequence, T
ddr
is the period of the DDR clock.
ddrc.ctrl_reg1[reg_ddrc_selfref_en] = 1
ddrc.DRAM_param_reg3 [reg_ddrc_en_dfi_dram_clk_disable] = 1
while (ddrc.mode_sts_reg[ddrc_reg_operating_mode] != 3)
while (ddrc.mode_sts_reg[ddrc_reg_dbg_hpr_q_depth] ||
ddrc.mode_sts_reg[ddrc_reg_dbg_lpr_q_depth] ||
ddrc.mode_sts_reg[ddrc_reg_dbg_wr_q_depth)
delay(40 * T
ddr
)
slcr.DDR_CLK_CTRL[DDR_2XCLKACT] = 0
slcr.DDR_CLK_CTRL[DDR_3XCLKACT] = 0
slcr.DCI_CLK_CTRL[CLKACT] = 0
To resume normal DDR operation the clocks must be re-enabled first. Then DRAM is accessible again
and the clock stop and self-refresh features can be disabled.
IMPORTANT: Precharge power down and self refresh modes are mutually exclusive and must not be
activated at the same time.