Techniquecore
Power gating
Also called MTCMOS, sleep transistor insertion.
Cuts idle blocks from the supply through high-threshold sleep transistors to remove their leakage, with sizing, state retention and wake-up control to design.
Power gating cuts a block of logic off from its supply while it is idle, so that it draws almost no leakage current. A wide transistor with a high threshold voltage, the sleep transistor, sits between the real supply rail and a virtual rail that feeds the block: a PMOS header on the side or an NMOS footer on the ground side. In active mode the sleep transistor is on, and the block works almost as if it were on the real rail. In sleep mode it is off, and the leakage of the whole block is limited by the leakage of the sleep transistor, which is small because of its high threshold and its small width compared with the block. The scheme was named multi-threshold CMOS, or MTCMOS, by Mutoh et al. (1995). Power gating targets the leakage that clock gating leaves, and it has costs that clock gating does not: the sleep transistor adds a resistance that slows the block, the block loses its state, its outputs float, and waking it up takes time and energy. A design that uses power gating must size the switches, keep the state that matters, clamp the outputs, control the wake-up current and decide when sleeping pays off.
In plain words
A modern chip leaks power through its transistors even when it does nothing, like a tap that drips. For a block that sits idle for long stretches, the simplest cure is to turn off its supply with a big switch.
The switch is not free. While the block works, the current must flow through the switch, which costs a little voltage and speed. When the block sleeps, it forgets what it held, unless special flip-flops keep it. And turning the block back on takes time and a burst of charge. So power gating pays off only for blocks that stay idle long enough, and only with careful design of the switch and its control.
When it applies
- Leakage is a large part of the power of the block, as in technologies with low threshold voltages, and the block is idle for long periods: a processor core between tasks, a radio between bursts, a unit that some modes do not use.
- The idle periods are longer than the break-even time below, and the wake-up latency is acceptable.
- The design can pay the area of the switches, a small loss of speed in active mode, and the always-on logic that controls the sleep.
- The state of the block can be lost, or a small part of it can be kept in retention registers or saved elsewhere.
The template
POWER-GATE(block B)- 1
choose header or footer switches, and one shared switch network or switches per cell - 2
size the switches so that I_peak · R_sleep ≤ ΔV, with I_peak the largest total current of B over time - 3
put isolation cells on the outputs of B that clamp them to a fixed value while B sleeps - 4
keep the needed state: retention registers with an always-on supply, or a save to memory - 5
add a controller on an always-on supply sleep: clamp the outputs, save the state, turn the switches offwake: turn the switches on in steps, wait until the virtual rail settles, restore the state, release the clamps- 6
enter sleep only when the idle period is expected to exceed the break-even time t_be
The holes are the switch style and grain of line L1, the current model of line L2, the retention scheme of line L4, and the sleep policy of line L6.
Sizing the switch. In active mode the switch is a transistor in its linear region with a small drain to source voltage. In the square-law model of the Shichman-Hodges page its resistance is close to
where the process transconductance and the high threshold are fitted to measured devices. For example, with A/V, V and V, all assumed numbers, a block with a peak current of 50 mA and an allowed drop of 5% of needs , so , or a total width of about 303 m at nm. The drop also slows the gates of the block, which the delay model of the library must include. In a real design the switch tables of the library replace this formula.
Claim 1 (the maximum of the sum, not the sum of the maxima). Let gate of the block draw the current through a shared switch. The current of the switch is , so the switch must be sized for , and
with equality only if some time is a peak time for every gate at once. Proof. For every , , so the maximum over obeys the same bound. If the bound is reached at , then each term must reach its maximum.
Kao, Narendra and Chandrakasan (1998) used this: in a chain of gates, the gates switch one after another and their discharge currents do not overlap, so a switch sized for the sum of their peaks is far too large. For three gates with peaks of 1 mA at three separate times, the shared switch needs to carry 1 mA, not 3 mA.
Claim 2 (break-even time). Let be the leakage power of the block when on and idle, the leakage when asleep, and the energy of one sleep and wake cycle: recharging the virtual rail, switching the gates of the switches, and saving and restoring the state. Then sleeping during an idle period of length saves energy if and only if
Proof. Staying on costs , and sleeping costs , if the transitions are short compared with . The second is smaller exactly when .
For example, recharging a virtual rail of 1 nF from 0 to 1 V draws nJ from the supply, and the switch gates and the control take another 0.1 nJ, an assumed number. With mW and W, ns. When the length of the idle period is not known in advance, the decision of line L6 is the ski rental problem: staying awake until has passed and then sleeping uses at most twice the energy of the best choice made with hindsight.
The leakage in sleep. The subthreshold current of a transistor is close to at , with the slope factor and the prefactor fitted, as on the leakage power page. With , a switch with 0.15 V more threshold than the logic and 5% of its total width leaks about of the leakage of the block. These are assumed numbers. Real ratios also depend on gate leakage and on the voltage left on the virtual rail.
Classic examples
- MTCMOS. Mutoh et al. (1995) put low-threshold logic between virtual rails and high-threshold switches to the real rails, for 1 V circuits that are fast when on and leak little when off.
- Hierarchical sizing. Kao, Narendra and Chandrakasan (1998) size the shared switches from the patterns of the discharge currents of the gates, as in Claim 1.
- Processor cores. Mobile and server processors gate the supply of idle cores, with the state saved before sleep, and gate units such as vector units within a core.
- Memories. Arrays drop to a retention voltage or switch off their periphery in sleep, a related form that keeps the data.
Variations
- Fine grain and coarse grain. A switch in each cell responds fast and needs no shared rail, but costs area in every cell. A ring or grid of shared switches for a block costs less area and needs the sizing of Claim 1.
- Header or footer. NMOS footers have more drive per width. PMOS headers keep the ground common, which helps the isolation and the level of the signals.
- Retention. A retention register keeps its value in a small extra latch on an always-on supply while the main latch is off. Only the needed registers are made retention registers, since they cost area and leak.
- Multi-mode switches. Some designs drive the switch gates to an intermediate voltage, which keeps the virtual rail at a level that holds the state with less leakage than full on.
- Dynamic voltage scaling. Lowering the supply and the clock of a busy block saves power when it cannot sleep. The online policy is studied as speed scaling.
- Multi-threshold design. The threshold assignment reduces the leakage of a block while it is on. Power gating reduces it while it is off. Designs use both.
Pitfalls
- Inrush current. Turning on all the switches at once recharges the virtual rail from near 0 with a large current step, which makes the supply of the neighbor blocks droop. Turn the switches on in a chain with delay, and check the neighbors with power grid analysis and their decaps.
- Floating outputs. The outputs of a sleeping block drift to unknown levels. An input of an active block that floats near the middle turns on both of its transistors and draws a large current. Clamp the outputs with isolation cells, as in line L3, before the switch turns off.
- Losing state. Registers without retention lose their value. A wrong order in line L5, such as turning off before the save is done, loses the state.
- Undersized switches. Too much drop across the switch makes the block slow and can fail timing. Size for the largest total current, and include the drop in timing analysis.
- Too short sleeps. Sleeping for less than costs more energy than it saves, and each wake adds latency.
- Verification. The always-on control, the clamps and the retention form a power intent that the RTL alone does not show. It must be written in a format that the tools check, and simulated with the supply turned off and on.
Exercises
- Show that the deterministic policy of waiting before sleeping uses at most twice the energy of the best policy that knows the idle length in advance.
- Two gates draw triangular currents of peak 2 mA, each 20 ps wide, that start 10 ps apart. Compute and compare it with the sum of the peaks.
- With the numbers of the sizing example, how much wider must the switch be if the allowed drop falls from 5% to 2% of ?
- A virtual rail has decayed to 0.4 V when the block wakes. How much energy does recharging it to 1 V draw from the supply, with nF?
References
- Shin'ichiro Mutoh, Takakuni Douseki, Yasuyuki Matsuya, Takahiro Aoki, Satoshi Shigematsu and Junzo Yamada, 1-V power supply high-speed digital circuit technology with multithreshold-voltage CMOS, IEEE Journal of Solid-State Circuits 30(8), 847 to 854, 1995, the MTCMOS scheme, low-threshold logic between virtual rails and high-threshold switches to the real rails, turned off in sleep mode
- James Kao, Siva Narendra and Anantha Chandrakasan, MTCMOS hierarchical sizing based on mutual exclusive discharge patterns, Proceedings of the 35th Design Automation Conference, 495 to 500, 1998, sizing the shared sleep transistor for the largest total current over time instead of the sum of the peak currents of the gates, using gates that discharge at mutually exclusive times
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W3 standard |
|
Tag Y1FH5E Edit this page History Report an error Markdown