What is Retention register?

A flip-flop that keeps its state in a small always-powered storage element while the block is power-gated, allowing operation to resume where it left off.

Field: Power Management

Japanese name: リテンションレジスタ

How it works

It is an ordinary flip-flop with a small extra latch connected to an always-on supply. The main part of the flip-flop is built from fast transistors and connected to the switchable supply. The extra latch is built from high-threshold transistors with low leakage. Before power is removed, a save signal copies the value of the main part into the latch. After power returns, a restore signal copies the value back.

Cost and where it is used

The extra latch, the always-on supply wiring and the control signals make it larger than an ordinary flip-flop. A small leakage through the latch also remains while power is off. For this reason, designs often use retention only for the flip-flops whose state is needed to resume, rather than replacing all of them. The rest are initialized by reset on wake-up.

Control sequence

A typical sequence is as follows. The clock is stopped, the outputs are clamped by isolation cells, the values are saved, and then power is removed. On wake-up, power is applied, the values are restored after the voltage settles, isolation is released, and the clock restarts. A power controller in an always-on domain manages this order. Which registers are retained is specified in UPF, a format for describing power intent.

Try it: questions about Retention register

Which correctly pairs a caveat of power-gated blocks with its countermeasure?

  1. AContents always survive power-off, so nothing is needed
  2. BFlip-flop contents are lost, so needed state is saved in retention registers or external memory before power-off
  3. CPower-off doubles the voltage of other blocks
Show answer and explanation

Answer: B. Flip-flop contents are lost, so needed state is saved in retention registers or external memory before power-off

Flip-flops and SRAM in a powered-off block lose their contents, so to resume where it left off, state must be saved before cutting power. Options include retention registers, which pair each flip-flop with a small always-powered storage element, or software writing state out to memory. Saving, restoring and powering up cost time and energy, so for short idle periods it may be better not to cut power.

FAQ

How is the content of SRAM kept?

SRAM does not use retention registers. It uses a retention mode that keeps only the memory-cell supply at a reduced voltage and turns off the peripheral circuits.

What happens if state is not saved?

After power returns, the block has to start again from reset. Software can also save state to memory and restore it, but that takes longer than using retention registers.

Books on Power Management Ad

As an Amazon Associate I earn from qualifying purchases.

Comparisons that include this term

This page was drafted with AI and fact-checked by a separate AI review before publication. Our Editorial policy explains how we write and check content. If you spot an error, please tell us on our Contact page.

Back to the glossary