D7 · Lesson 3 · Timing, power and area
The three budgets every chip design balances, the critical path and the clock frequency it allows, RC delay of gates and wires, dynamic power from switching capacitance and leakage power, how lowering the supply voltage trades speed for much less power, and why area is cost
Every chip is designed against three budgets at once. It must be fast enough: every signal must get through the slowest chain of logic between two flip-flops within one clock period. It must stay within its power: a phone has a couple of watts, a server processor a few hundred, and all of it becomes heat. And it must be small, since area is cost (lesson 1). These budgets pull against each other, and the most powerful lever between them is the supply voltage.
- How a chip's maximum clock speed, its power at that speed and its energy per operation change with supply voltage, relative to 1.0 V, using the alpha-power model: delay ∝ with = 0.35 V.
- Power falls much faster than speed as the voltage drops, because dynamic power goes as .
- That's the reason phones and laptops run at low voltage and frequency when they can, and boost both only when needed (dynamic voltage and frequency scaling).
Predict
A processor drops its supply from 1.0 V to 0.7 V and runs as fast as the lower voltage allows. In this model it slows to 64% of its speed. What happens to its power?
Dynamic power is : the voltage term gives 0.7² = 0.49 and the frequency 0.64, so power falls to 0.49 × 0.64 = 0.31. Each operation costs only 49% of the energy, so a task that can tolerate running 1.6 times longer saves half its energy.
Name it
Timing
A synchronous design's clock period must cover the slowest register-to-register path:
with the flip-flop's clock-to-output delay, the logic and wire delay, and the next flip-flop's setup time (C7). A gate driving a load is roughly an RC circuit, so its delay is about for 50% of the swing; long wires add their own distributed RC. Static timing analysis checks every path against the clock.
Power
- Dynamic: charging and discharging capacitance C a fraction α of the clock cycles, at supply V and frequency f, costs
- Leakage: subthreshold and gate leakage currents flow all the time: , a growing share in advanced processes.
Voltage scaling
Lowering V cuts dynamic energy per operation as , but transistors drive less current, so the circuit slows. With the alpha-power law the speed falls roughly as , much more gently than power. Clock gating (stopping the clock to idle blocks) cuts α, and power gating (switching off idle blocks) cuts leakage.
Area
Area sets cost through dies per wafer and yield, and it adds wire length, which adds delay and power. Designers trade area for speed (parallel hardware, wider adders) and for power (running wide and slow at low voltage).
Worked example
A block switches 1 nF of capacitance with activity 0.1 at 0.8 V and 2 GHz, and leaks 0.5 A. What's its power?
Show the solution
- Dynamic power.
- Leakage power.
- Which one dominates. Here leakage dominates, so power gating idle blocks would matter more than clock gating.
Answer 0.128 W of dynamic power and 0.4 W of leakage.
Worked example
A path has 50 ps clock-to-output, 300 ps of logic and 30 ps of setup. What's its maximum clock frequency? What's the delay of a 1 kΩ driver on 20 fF?
Show the solution
- Shortest clock period. Add the clock-to-output, logic and setup times:
- Maximum frequency.
- Driver delay.
Answer the path runs at up to 2.63 GHz, and the driver takes 13.8 ps.
Worked example
The supply is cut from 0.8 V to 0.6 V, which forces the clock 25% lower. What happens to the dynamic power?
Show the solution
- Power ratio. Dynamic power goes as : a 58% saving for a 25% loss of speed.
- Why it matters. That's why phones scale voltage and frequency together, and why many slow cores can beat one fast core on energy.
Answer dynamic power falls to 0.42 of its old value, a 58% saving.
Check
A chip switches 0.5 nF of capacitance with activity 0.05 at 0.9 V and 3 GHz. 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 path has 30 ps of clock-to-output delay, 150 ps of logic and 40 ps of setup time. What's the fastest clock it allows?
Write units the way you normally would: 1.5 GHz, 1500 MHz and 0.0015 THz are the same answer.
Check
A circuit's supply is lowered from 1 V to 0.6 V. By what factor does its energy per operation change?
Check
A gate with 2 kΩ of output resistance drives 5 fF. About how long does its output take to cross half the supply?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
Check
A block switches 0.5 nF with activity 0.1 at 0.9 V and 3 GHz, and leaks 0.1 A.
(a)
What is its dynamic power?
Write units the way you normally would: 1.5 W, 1500 mW and 0.0015 kW are the same answer.
(b)
What is its leakage power?
Check
A path has 30 ps clock-to-output, 150 ps of logic, 40 ps of setup and 30 ps of clock skew against it.
(a)
What is its maximum clock frequency?
Write units the way you normally would: 1.5 MHz, 1500 kHz and 0.0015 GHz are the same answer.
(b)
What is the minimum period?
Check
A chip's supply is cut from 0.8 V to 0.6 V, and its clock falls by 40%.
(a)
What fraction of its dynamic power remains?
(b)
What fraction of the energy per operation remains?
Check
A driver of 1 kΩ charges 5 fF.
(a)
What is its 50% delay?
Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.
(b)
What is its 10–90% rise time?
Explain why
Why does lowering the supply voltage save so much more power than it costs in speed?
Every switching event charges a capacitance to the supply voltage and then dumps the charge, so the energy per operation goes as the square of the voltage: dropping to 70 percent cuts it roughly in half. The transistors' drive current also falls at lower voltage, so circuits slow down, but only by a factor that depends on how far the supply sits above the threshold voltage, which falls much more gently than the square. Power is energy per operation times operations per second, so it falls by the voltage squared times the slowdown. This lopsided trade is why chips run at the lowest voltage that meets the work they have to do.
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.