User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 675
UG585 (v1.11) September 27, 2016
Chapter 24: Power Management
24.4 Sleep Mode
Sleep mode is defined at the system level to include the APU in standby mode and multiple
controllers being held in reset without a clock.
Going into sleep mode can greatly reduce power consumption. In sleep mode, most function clock
groups are turned off or powered off. The only required active devices are one CPU, the snoop
control unit (SCU), and a wake-up device. Ideally, the only devices causing dynamic power
consumption should be the SCU and the wake-up peripheral device. The wake-up device can be
UART, GPIO, or any device that can generate an interrupt.
If the wake-up device is an AXI bus master, which can start transactions targeting the DRAM,
additional limitations apply. Because the whole interconnect and the DDR memory are in low power
modes and inaccessible, it must be assured that the CPU goes through the full wake-up process
before any transactions to the DRAM take place. This guarantees that potential transactions
targeting the DRAM are served correctly.
24.4.1 Setup Wake-up Events
Every interrupt signaled to the PS can be used as a wake-up event. To make this happen, the wanted
interrupt must be enabled in the peripheral and the GIC. A wake-up device must be able to generate
the interrupt in sleep mode, which means, that its clocks might not be gated off. See GPIO as
Wake-up Event, page 388 for more information.
Refer to the respective chapter for information about available interrupts and how to configure the
peripherals to generate them.
24.4.2 Programming Guide
The following shows the preliminary steps to enter PS sleep mode from normal running mode and
exit from it. In sleep mode, the master CPU is responsible for shutting down all non-wake up devices,
including all other masters in the system and the PL, if possible. Since clock frequencies change when
clock dividers and PLL configurations are changed, configuring a wake-up device might not only
mean activating the wanted wake-up interrupt, but also changing the peripheral configuration to be
able to cope with the modified clock frequency. If both CPUs are running, the master CPU should
shut down the secondary CPU first before proceeding with the steps described below. It is user’s
choice, which CPU acts as master CPU. Furthermore, precautions must be taken to keep code which
is executed while the DDR clocks are disabled accessible in this period e.g., by placing those
code-segments in OCM, or locking the L2 cache and TLB. Depending on the actual implementation
this can, amongst others, apply to:
Code executed when DDR is not available
Routine for entering and exiting standby mode
•Translation table
•Stacks