ExpertQuestion 10 of 50

What is retention supply architecture, and what does -retention_supply / -use_retention_as_primary control?

From PDVerse Low-Power Physical Design Mentor Guide, part of the pdVerse Mentor Guide

Short Answer

A retention flop keeps its normal-mode logic on the switched primary, VDD1p0_SW, and its shadow latch on an always-on retention supply, VDD1p0. You name that supply with -retention_supply on set_retention (UPF), or with the legacy net options. -use_retention_as_primary (UPF) goes further: the register and its output run from the retention supply, which changes the driver supply that isolation and level-shifter strategies see.

Technical Reference DiagramWhat is retention supply architecture, and what does -retention_supply / -use_retention_as_primary control?

Technical Explanation

  • Split supply: normal-mode logic runs on the domain primary; the shadow latch runs on the retention supply, which stays on while the primary is off.
  • Modern: -retention_supply SS_AON (UPF) names a supply set, and its power and ground become the retention rails.
  • Legacy form (still accepted by ICC2/PT): -retention_power_net and -retention_ground_net (UPF). Give only one and ICC2 takes the other from the domain primary.
  • Physically: retention cells have a secondary PG pin that taps an always-on VDD1p0 strap running through the switched area.
  • Use as primary: with -use_retention_as_primary (UPF) the register output is driven from the retention supply, so its fanout sees an always-on driver.
  • That changes source analysis for isolation, shifters and repeaters, and ICC2 maps only cells whose outputs relate to the backup pin. The option cannot be updated.
  • For implementation, 1801-2015 makes a missing retention supply an error; only simulation assumes an anonymous always-on supply.
# [UPF]  mychip.upf
create_supply_set SS_AON -function {power VDD1p0} -function {ground VSS}
set_retention RET_COP -domain PD_COP -retention_supply SS_AON -save_signal {save high} -restore_signal {restore high}
set_retention RET_COP_OUT -domain PD_COP -elements {U_COP/status_reg} -retention_supply SS_AON -save_signal {save high} -restore_signal {restore high} -use_retention_as_primary
map_retention_cell RET_COP -domain PD_COP -lib_cells {RDFF_X1}
# [ICC2]  icc2_shell
report_mv_cells -retention -verbose

What To Check

  • The retention supply is on in every state where PD_COP is off.
  • Every retention cell has its backup PG pin on VDD1p0, not VDD1p0_SW.
  • Strategies with -use_retention_as_primary (UPF) map to cells whose outputs relate to the backup pin.
  • Isolation on the outputs of those registers is reviewed, since their driver is now always-on.

Command Checks & Actions

UPF (design.upf)set_retention RET_COP -domain PD_COP -retention_supply SS_AON -save_signal {save high} -restore_signal {restore high}

Retains every PD_COP register with the shadow latch on SS_AON

UPF (design.upf)map_retention_cell RET_COP -domain PD_COP -lib_cells {RDFF_X1}

Restricts the strategy to the chosen retention cell

ICC2 (icc2_shell)report_mv_cells -retention -verbose

Lists inserted retention cells with their supplies

ICC2 (icc2_shell)check_mv_design

Flags retention cells whose backup pin sits on a switched net

Healthy, Suspicious & Hard-stop Results

  • Healthy (illustrative): report_mv_cells -retention (ICC2) shows 2,400 retention cells in PD_COP, all with backup pins on VDD1p0.
  • Suspicious (illustrative): Some RET_COP_OUT registers map to cells whose output relates to the primary pin, which breaks the use-as-primary intent.
  • Hard stop: The retention supply is VDD1p0_SW, or any net that is off while PD_COP is off: nothing survives shutdown.

Common Mistake

The Trap: Adding -use_retention_as_primary (UPF) to a strategy late without re-checking the crossings it drives.

  • Those outputs now come from an always-on driver, so -source (UPF) filters on isolation and shifter strategies can match different ports than before.

What The Interviewer Is Testing

  • Whether you can say which part of a retention flop sits on which supply.
  • Whether you know what -use_retention_as_primary changes downstream.

Follow-up Question & Model Response

"Can the retention supply run at a lower voltage than the primary?"

Candidate Model Response: Yes, the ICC2 MV UG says retention power and ground can differ from the domain primary. The shadow latch only has to hold a value, so a lower always-on rail saves leakage during shutdown. The library cell has to handle that voltage difference on save and restore. With -use_retention_as_primary the output also swings at the retention voltage, so check level shifting on its fanout.

Practical Example

Design Scenario: (illustrative) PD_COP has 2,400 registers, and RET_COP retains them all on SS_AON, which is VDD1p0 at 1.0 V. status_reg drives a PD_MYCHIP interrupt that must stay valid while PD_COP is off, so RET_COP_OUT gives it -use_retention_as_primary. Its output is now driven from VDD1p0, so that interrupt stays valid without a clamp. RDFF_X1 is an illustrative retention cell name.

Low-Power & UPF Handbook

Read the complete low-power guide library covering power domains, level shifters, isolation clamps, state retention, and UPF signoff verification.

Offline PDF Bundle

Want all 1109 questions offline?

Get the complete 4-book PDF bundle (PnR, STA, MMMC, Low Power) with a clickable table of contents - no ads, no internet needed.

See what's inside the bundle
Low-Power VLSI & UPF Handbook โ€” nine chaptersLow-Power & UPFDomains, isolation, retention, and multivoltage UPF.