S3 · Lesson 20 · Power in digital circuits
Switching, clock and leakage power, gating, and voltage scaling
Power now limits what a chip can do more than transistor count does: a phone's processor has to fit in a few watts, a server chip's in a few hundred, and both have more transistors than they can switch at once. Digital power has three parts. Dynamic power charges and discharges capacitance, ; the clock network alone often takes a third of it. Short-circuit power flows during transitions. Leakage flows all the time. Every power technique attacks one factor: clock gating cuts α, power gating cuts leakage, and voltage scaling attacks the , the biggest lever of all.
- Energy per operation against supply voltage for a logic block, normalized to its switching energy at 1 V. Switching energy falls as (dashed); leakage energy per operation rises steeply at low voltage, because each operation takes exponentially longer while every idle gate keeps leaking.
- The total has a minimum, the minimum-energy point, typically near or below the threshold voltage.
- Raise the number of leaking gates per switching gate (a lower activity factor, a larger idle area): leakage weighs more and the minimum moves up in voltage.
Predict
A processor's clock is halved and its supply lowered from 1.0 V to 0.75 V to match. Roughly how much does its dynamic power fall?
: = 0.28, a 72% saving for a 50% slowdown. Energy per operation, , falls to 56%. That's why dynamic voltage and frequency scaling (DVFS) is in every modern processor: running slower lets the voltage drop, and the voltage enters squared.
Name it
Dynamic power
Each time a node charges to and discharges, the supply delivers . With an activity factor α (the fraction of cycles in which a node switches up), a block with total switched capacitance C at clock f burns
The clock has α = 1 by definition and drives a huge capacitance, so clock networks take 20 to 40% of dynamic power. Glitches, spurious transitions before logic settles, add to α.
Short-circuit and leakage
- Short-circuit: while an input transitions, both pull-up and pull-down conduct briefly; usually under 10% with sharp edges.
- Leakage: subthreshold current (S1.35), gate tunneling, junction leakage: , flowing whether or not the circuit is doing anything.
Techniques
| Technique | Attacks | How |
|---|---|---|
| clock gating | α | stop the clock to idle registers (with glitch-free gating cells) |
| power gating | leakage | sleep transistors cut idle blocks off the supply |
| multi-threshold cells | leakage | high- cells off the critical path |
| DVFS | V and f | lower voltage when less speed is needed |
| operand isolation, low-swing buses | α, V | don't toggle what doesn't matter |
The minimum-energy point
Energy per operation is plus leakage power times the operation's duration. Lowering V reduces the first and stretches the second, exponentially once V nears the threshold. The total is smallest near or below , often 0.3 to 0.5 V, the regime of ultra-low-power sensor chips that run slowly on harvested energy.
Energy-delay
Since energy can always be traded for delay, designs are compared by energy-delay product or by energy at a fixed throughput.
Worked example
A block has gates averaging 2 fF of switched capacitance each, with activity 0.15, at 1 GHz and 0.8 V, plus a 200 pF clock tree. Find the logic and clock power.
Show the solution
- Logic power. The gates switch 2 nF in all, and :
- Clock power. The clock switches every cycle, activity 1: 40% of the total dynamic power.
- Clock gating. Gating the clock to half the registers when they're idle would save a large share of that 0.13 W, which is why clock gating is the first power technique every synthesis flow applies.
Answer 0.19 W of logic power and 0.13 W of clock power.
Worked example
In the sim's model with 1000 leaking gates per switching gate, where's the minimum-energy point, and how much does running there save against 1 V?
Show the solution
- The minimum. The total energy bottoms out near 0.30 V, at 0.125 of the switching energy at 1 V: about 8 times less energy per operation.
- Other leakage ratios. With 100 leaking gates per switching gate the minimum moves down to about 0.18 V; with 10,000, up to about 0.41 V.
- The cost. Speed: at 0.3 V, below the 0.35 V threshold, each operation takes about 146 times as long as at 1 V.
Answer the minimum is near 0.30 V, and running there takes about 8 times less energy per operation than at 1 V.
Worked example
A processor burns 10 W of dynamic power at 1.0 V and 2 GHz. Its supply can drop to 0.75 V when it runs at 1 GHz. What does it burn then, and how much energy does each operation take?
Show the solution
- Power. Dynamic power goes as :
- Energy per operation. It goes as alone: so it falls to 56%.
- Where the saving comes from. Halving the clock by itself only stretches the work out; the lower voltage it allows is what saves energy.
Answer 2.8 W, and each operation takes 56% of the energy it did at 1.0 V.
Check
A block switches 1 nF with activity 0.15 at 2 GHz and 0.9 V. What's its dynamic power?
Write units the way you normally would: 1.5 W, 1500 mW and 0.0015 kW are the same answer.
Check
A clock network has 100 pF of capacitance, at 3 GHz and 0.7 V. What does it burn?
Write units the way you normally would: 1.5 W, 1500 mW and 0.0015 kW are the same answer.
Check
A design's supply drops from 1.0 V to 0.75 V and its clock to 0.4 of the original. What fraction of its dynamic power remains?
Check
How much energy does the supply deliver each time a 10 fF node charges to 0.5 V and discharges?
Write units the way you normally would: 1.5 fJ and 0.0015 pJ are the same answer.
Check
A chip leaks 10 mA at 0.7 V. What's its leakage power?
Write units the way you normally would: 1.5 mW, 1500 µW and 0.0015 W are the same answer.
Check
A chip's dynamic power is 0.5 W, of which the clock takes 0.3. Clock gating stops the clock to 0.7 of the registers' clock load. How much does it save?
Write units the way you normally would: 1.5 W, 1500 mW and 0.0015 kW are the same answer.
Check
A block has 1 nF of switched logic capacitance with activity 0.1, and a 100 pF clock tree, at 1.1 V and 2 GHz.
(a)
What is the logic's dynamic power?
Write units the way you normally would: 1.5 W, 1500 mW and 0.0015 kW are the same answer.
(b)
What does the clock tree burn?
Check
A block burns dynamic power P. Its voltage is scaled by r and its frequency by s.
Step 1
What power does it burn?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
By what factor does the energy per operation change?
Step 3
By what factor does a fixed task's run time change?
Explain why
Why is lowering the supply voltage the most effective way to cut a chip's power?
Dynamic power is the energy per transition times the rate of transitions. The energy per transition is , so it falls with the square of the voltage, and lowering the voltage also slows the transistors, so the clock must drop too, cutting the rate. Together, power falls roughly with the cube of the voltage when frequency tracks it. No other knob does that: clock gating removes only the gated activity, and shrinking capacitance takes a new design or process. The limit is the threshold voltage, below which speed collapses and leakage, integrated over the much longer operation, takes over.
Practice
Keep practicing
10 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.