---
title: Timing, power and area
heading: 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
eyebrow: D7 · Lesson 3 · Timing, power and area
xp: 40
---

::: hook
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.
:::

::: play
- 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 ∝ $V/(V - V_T)^{1.3}$ with $V_T$ = 0.35 V.
- Power falls much faster than speed as the voltage drops, because dynamic power goes as $V^2f$.
- 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).
:::

```sim plot
view: graph
x: V = 0.5..1.3
y: R = 0..2
slider: v = 0.5..1.3 step 0.01 = 0.7
plot: ((V - 0.35)^1.3/V)/(0.65^1.3) | samples: 300 | label: relative speed
plot: V^2*((V - 0.35)^1.3/V)/(0.65^1.3) | samples: 300 | color: ch3 | label: relative power at full speed
plot: V^2 | samples: 300 | dashed | color: ch4 | label: relative energy per operation
marker: x = v | label: your supply
readout: relative speed = ((v - 0.35)^1.3/v)/(0.65^1.3) | digits: 3
readout: relative power = v^2*((v - 0.35)^1.3/v)/(0.65^1.3) | digits: 3
```

::: 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?

- [ ] It falls to 64%
- [ ] It falls to 49%
- [x] It falls to about 31%
- [ ] It stays the same

::: reveal
Dynamic power is $\alpha CV^2f$: 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.
:::
:::

::: nameit
## Timing

A synchronous design's clock period must cover the slowest register-to-register path:

$$f_\max = \frac{1}{t_{cq} + t_\text{logic} + t_\text{setup}}$$

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 $0.69RC$ 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
$$P_\text{dyn} = \alpha CV^2f$$
- **Leakage**: subthreshold and gate leakage currents flow all the time: $P_\text{leak} = I_\text{leak}V$, a growing share in advanced processes.

## Voltage scaling

Lowering V cuts dynamic energy per operation as $V^2$, but transistors drive less current, so the circuit slows. With the alpha-power law the speed falls roughly as $(V - V_T)^{1.3}/V$, 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).
:::

::: 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?

::: solution
1. **Dynamic power.**
   $$\begin{aligned} P_\text{dyn} &= \alpha CV^2f \\ &= 0.1 \times 10^{-9} \times 0.64 \\ &\quad \times 2 \times 10^9\ \text{W} \\ &= 0.128\ \text{W} \end{aligned}$$
2. **Leakage power.**
   $$0.5\ \text{A} \times 0.8\ \text{V} = 0.4\ \text{W}$$
3. **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.
:::
:::

::: 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?

::: solution
1. **Shortest clock period.** Add the clock-to-output, logic and setup times:
   $$50 + 300 + 30 = 380\ \text{ps}$$
2. **Maximum frequency.**
   $$\frac{1}{380\ \text{ps}} = 2.63\ \text{GHz}$$
3. **Driver delay.**
   $$\begin{aligned} t &= 0.69 \times 1\ \text{k}\Omega \times 20\ \text{fF} \\ &= 13.8\ \text{ps} \end{aligned}$$

**Answer:** the path runs at up to 2.63 GHz, and the driver takes 13.8 ps.
:::
:::

::: 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?

::: solution
1. **Power ratio.** Dynamic power goes as $V^2f$:
   $$\begin{aligned} \frac{P'}{P} &= \left(\frac{0.6}{0.8}\right)^2 \times 0.75 \\ &= 0.42 \end{aligned}$$
   a 58% saving for a 25% loss of speed.
2. **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
given: a = 0.05 | 0.15; C = 0.5 | 2 | 10; V = 0.7 | 0.9; f = 1 | 3
answer: a*C*V^2*f
unit: W
tolerance: 0.5%

## A chip switches {C} nF of capacitance with activity {a} at {V} V and {f} GHz. What's its dynamic power?

::: right
Right. $\alpha CV^2f$ = {answer} W.
:::

::: misses
- [a*C*V*f] Power goes as the square of the voltage.
- [C*V^2*f] Include the activity factor.
- [any] Not yet. $\alpha CV^2f$.
:::
:::

::: check
given: c = 30 | 60; l = 150 | 400 | 900; s = 20 | 40
answer: 1000/(c + l + s)
unit: GHz
tolerance: 0.5%

## A path has {c} ps of clock-to-output delay, {l} ps of logic and {s} ps of setup time. What's the fastest clock it allows?

::: right
Right. $1/(t_{cq} + t_\text{logic} + t_\text{setup})$ = {answer} GHz.
:::

::: misses
- [1000/l] The flip-flops' own times count too.
- [any] Not yet. One over the total path time.
:::
:::

::: check
given: a = 1.2 | 1 | 0.9; b = 0.6 | 0.75 | 0.8
answer: (b/a)^2
tolerance: 0.5%

## A circuit's supply is lowered from {a} V to {b} V. By what factor does its energy per operation change?

::: right
Right. $(V_2/V_1)^2$ = {answer}.
:::

::: misses
- [b/a] Energy per operation goes as $V^2$.
- [any] Not yet. $E = CV^2$.
:::
:::

::: check
given: R = 0.5 | 2 | 10; C = 5 | 20 | 100
answer: 0.69*R*C
unit: ps
tolerance: 0.5%

## A gate with {R} kΩ of output resistance drives {C} fF. About how long does its output take to cross half the supply?

::: right
Right. $0.69RC$ = {answer} ps.
:::

::: misses
- [R*C] That's one time constant; 50% takes 0.69 of it.
- [any] Not yet. RC charging to 50%.
:::
:::

::: check
kind: parts
given: a = 0.05 | 0.1 | 0.2; C = 0.5 | 1 | 5; V = 0.7 | 0.9; f = 1 | 3; I = 0.1 | 0.5

## A block switches {C} nF with activity {a} at {V} V and {f} GHz, and leaks {I} A.

::: part
answer: a*C*1e-9*V^2*f*1e9
unit: W
tolerance: 0.5%

### What is its dynamic power?

::: misses
- [any] $\alpha CV^2f$.
:::
:::

::: part
answer: I*V
unit: W
tolerance: 0.5%

### What is its leakage power?

::: misses
- [any] $IV$.
:::
:::
:::

::: check
kind: parts
given: c = 30 | 50; l = 150 | 300 | 500; s = 20 | 40; k = 10 | 30

## A path has {c} ps clock-to-output, {l} ps of logic, {s} ps of setup and {k} ps of clock skew against it.

::: part
answer: 1e6/(c + l + s + k)
unit: MHz
tolerance: 0.5%

### What is its maximum clock frequency?

::: misses
- [1e6/(c + l + s)] Skew eats into the period too.
- [any] 1 ÷ total.
:::
:::

::: part
answer: c + l + s + k
unit: ps
tolerance: 0.5%

### What is the minimum period?

::: misses
- [any] Sum the parts.
:::
:::
:::

::: check
kind: parts
given: v1 = 0.8 | 1; v2 = 0.6 | 0.7; s = 15 | 25 | 40

## A chip's supply is cut from {v1} V to {v2} V, and its clock falls by {s}%.

::: part
answer: (v2/v1)^2*(1 - s/100)
tolerance: 0.5%

### What fraction of its dynamic power remains?

::: misses
- [any] $(V_2/V_1)^2 \times f_2/f_1$.
:::
:::

::: part
answer: (v2/v1)^2
tolerance: 0.5%

### What fraction of the energy per operation remains?

::: misses
- [any] Energy per operation goes as $V^2$.
:::
:::
:::

::: check
kind: parts
given: R = 0.5 | 1 | 5; C = 5 | 20 | 50

## A driver of {R} kΩ charges {C} fF.

::: part
answer: 0.69*R*1000*C*1e-15*1e12
unit: ps
tolerance: 0.5%

### What is its 50% delay?

::: misses
- [R*1000*C*1e-15*1e12] The 50% point of an RC step is at 0.69RC.
- [any] $0.69RC$.
:::
:::

::: part
answer: 2.2*R*1000*C*1e-15*1e12
unit: ps
tolerance: 0.5%

### What is its 10–90% rise time?

::: misses
- [any] $2.2RC$.
:::
:::
:::

::: explain
## Why does lowering the supply voltage save so much more power than it costs in speed?

::: model
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

::: check
given: a = 0.01 | 0.5; C = 0.1 | 50; V = 0.5 | 1.2; f = 0.1 | 5
answer: a*C*V^2*f
unit: W
tolerance: 0.5%

## Dynamic power: α = {a}, {C} nF, {V} V, {f} GHz?

::: misses
- [any] $\alpha CV^2f$.
:::
:::

::: check
given: c = 10 | 100; l = 50 | 3000; s = 5 | 80
answer: 1000/(c + l + s)
unit: GHz
tolerance: 0.5%

## $f_\max$: $t_{cq}$ = {c} ps, logic {l} ps, setup {s} ps?

::: misses
- [any] $1/(t_{cq} + t_\text{logic} + t_\text{setup})$.
:::
:::
:::
