Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
CS 220 / ARM / ARM1176JZ-S Technical Reference Mmanual.pdf
Источник:
Скачиваний:
48
Добавлен:
16.04.2015
Размер:
4.47 Mб
Скачать

Power Control

10.2Power management

The processor supports these levels of power management:

Run mode

Standby mode

Shutdown mode on page 10-4

plus partial support for a fourth level, Dormant mode on page 10-4.

10.2.1Run mode

Run mode is the normal mode of operation when all of the functionality of the core is available.

10.2.2Standby mode

Standby mode disables most of the clocks of the device, while keeping the design powered up. This reduces the power drawn to the static leakage current, plus a tiny clock power overhead required to enable the device to wake up from the standby state.

The transition from Standby mode to Run mode is caused by the arrival of:

an interrupt, whether masked or unmasked

a debug request, only when debug is enabled

a reset.

The debug request can be generated by an externally generated debug request, using the EDBGRQ pin on the processor, or from a Debug Halt instruction issued to the processor

through the debug scan chains. Entry into Standby Mode is performed by executing the Wait For Interrupt CP15 operation, see c7, Cache operations on page 3-69. To ensure that the memory system is not affected by the entry into the Standby state, the following operations are performed:

A Data Synchronization Barrier operation ensures that all explicit memory accesses occurring in program order before the Wait For Interrupt have completed. This avoids any possible deadlocks that might be caused in a system where memory access triggers or enables an interrupt that the core is waiting for. This might require some TLB page table walks to take place as well.

The DMA continues running during a Wait For Interrupt and any queued DMA operations are executed as normal, before entering standby mode. This enables an application using the DMA to set up the DMA to signal an interrupt when the DMA has completed, and then for the application to issue a Wait For Interrupt operation. The degree of power-saving while the DMA is running is less than in the case if the DMA is not running.

DMA can receive an AXI error response and generate an interrupt via nDMAEXTERRIRQ to prevent entering Standby mode.

Any other memory accesses that have been started at the time that the Wait For Interrupt operation is executed are completed as normal. This ensures that the level two memory system does not see any disruption caused by the Wait For Interrupt.

The debug channel remains active throughout a Wait For Interrupt.

Systems using the VIC interface must ensure that the VIC is not masking any interrupts that are required for restarting the processor when in this mode of operation.

After the processor clocks have been stopped the signal STANDBYWFI is asserted to indicate that the processor is in Standby mode.

ARM DDI 0333H

Copyright © 2004-2009 ARM Limited. All rights reserved.

10-3

ID012410

Non-Confidential, Unrestricted Access

 

Power Control

Note

The core clock does not stop when the core is prepared for debug activity, that is, when either

TCK or JTAGSYNCBYPASS is high.

10.2.3Shutdown mode

Shutdown mode has the entire device powered down, and you must externally save all state, including cache and TCM state. The processor is returned to Run mode by the assertion of Reset. The state saving must be performed with interrupts disabled, and finish with a Data

Synchronization Barrier operation. When all the state of the processor is saved the processor must execute a Wait For Interrupt operation. The signal STANDBYWFI is asserted to indicate

that the processor can enter Shutdown mode.

10.2.4Dormant mode

Dormant mode enables the core to be powered down, leaving the caches and the

Tightly-Coupled Memory (TCM) powered up and maintaining their state.

The software visibility of the Cache Master Valid bits and the TLB lockdown entries is provided to enable an implementation to be extended for Dormant mode.

The processor includes a placeholder that enables you to include the clamping logic necessary for the full implementation of Dormant mode.

Considerations for Dormant mode

Dormant mode is only partially supported on the processor, because care is required in implementing this on a standard synthesizable flow. The RAM blocks that are to remain powered up must be implemented on a separate power domain, and there is a requirement to clamp all of the inputs to the RAMs to a known logic level, with the chip enable being held

inactive. This clamping is not implemented in gates as part of the default synthesis flow because it contributes to a critical path. The RAMCLAMP input is provided to drive this clamping.

Basic clamps are instantiated in the placeholder. They can be changed to explicit gates in the RAM power domain, or pull-down transistors that clamp the values when the core is powered down. For implementation details, see the ARM1176JZF-S and ARM1176JZ-S Implementation Guide.

The RAM blocks that must remain powered up in Dormant mode, if it is implemented, are:

all Data RAMs associated with the cache and tightly-coupled memories

all TagRAMs associated with the cache

all Valid RAMs and Dirty RAMs associated with the cache.

The states of the Branch Target Address Cache and the associative region of the TLB are not maintained on entry into Dormant mode.

Implementations of the processor can optionally disable RAMs associated with the main TLB, so that a trade-off can be made between Dormant mode leakage power and the recovery time.

Before entering Dormant mode, the state of the processor, excluding the contents of the RAMs that remain powered up in dormant mode, must be saved to external memory. These state saving operations must ensure that the following occur:

All ARM registers, including CPSR and SPSR registers are saved.

Any DMA operations in progress are stopped.

ARM DDI 0333H

Copyright © 2004-2009 ARM Limited. All rights reserved.

10-4

ID012410

Non-Confidential, Unrestricted Access

 

Power Control

All CP15 registers are saved, including the DMA state.

Any locked entries in the main TLB are saved.

All debug-related state are saved.

The Master Valid bits for the cache are saved. These are accessed using CP15 register c15 as c15, Instruction Cache Master Valid Register on page 3-147 describes.

A Data Synchronization Barrier operation is performed to ensure that all state saving has been completed.

A Wait For Interrupt CP15 operation is executed, enabling the signal STANDBYWFI to indicate that the processor can enter Dormant mode.

On entry into Dormant mode, the Reset signal to the processor must be asserted by the external power control mechanism.

Transition from Dormant state to Run state is triggered by the external power controller asserting Reset to the processor until the power to the processor is restored. When power has been restored the core leaves reset and, by interrogating the external power controller, can determine that the saved state must be restored.

10.2.5Communication to the Power Management Controller

Your Power Management Controller in your system must perform the powering up and powering down of the power domains of the processor. The Power Management Controller must be a memory-mapped controller. The ARM1176JZ-S processor accesses this controller using Strongly-Ordered accesses.

The STANDBYWFI signal can also be used to signal to the Power Management Controller that the ARM1176JZ-S processor is ready to have its power state changed. STANDBYWFI is

asserted in response to a Wait For Interrupt operation.

Note

The Power Management Controller must not power down any of the processor power domains unless STANDBYWFI is asserted.

ARM DDI 0333H

Copyright © 2004-2009 ARM Limited. All rights reserved.

10-5

ID012410

Non-Confidential, Unrestricted Access

 

Соседние файлы в папке ARM