---
title: "Problem set 3: timing, sizing, wires and power"
heading: "Problem set 3: static timing, logical effort, interconnect and power"
eyebrow: S3 · Problem set 3
type: problems
---

::: hook
These problems cover lessons 16 to 20: setup and hold slack with skew and multicycle paths, latch timing and time borrowing, logical effort and buffer chains, wire RC and repeaters, and dynamic, clock and leakage power with voltage scaling.
:::

::: pool
pick: 12

::: check
kind: parts
given: T = 800 | 1200; c = 40 | 60; L = 500 | 900; s = 20 | 40; m = 15 | 60; h = 15 | 30; k = -20 | 40

## A path: period {T} ps, clock-to-Q {c} ps, logic {m} to {L} ps, setup {s} ps, hold {h} ps, skew {k} ps.

::: part
answer: T + k - (c + L + s)
unit: ps
tolerance: 0.5%

### Setup slack?

::: misses
- [any] $(T + k) - (t_{cq} + L + s)$.
:::
:::

::: part
answer: c + m - h - k
unit: ps
tolerance: 0.5%

### Hold slack?

::: misses
- [any] $(t_{cq} + m) - (h + k)$.
:::
:::
:::

::: check
kind: parts
given: c = 40 | 60; L = 600 | 1500; s = 25 | 40; N = 2 | 3; T = 600 | 900

## A slow path (clock-to-Q {c}, logic {L}, setup {s} ps) in a {T} ps design.

::: part
answer: 1/((c + L + s)*1e-12)/1e9
unit: GHz
tolerance: 1%

### Its own maximum frequency?

::: misses
- [any] $1/(t_{cq} + L + s)$.
:::
:::

::: part
answer: N*T - (c + L + s)
unit: ps
tolerance: 0.5%

### Setup slack if declared an {N}-cycle multicycle path?

::: misses
- [any] $NT - (t_{cq} + L + s)$.
:::
:::
:::

::: check
kind: parts
given: H = -12 | -50; b = 15 | 20; u = 20 | 50; S = 80 | 200

## Fixes: a path with {H} ps of hold slack; another with {S} ps of setup slack and {u} ps of uncertainty to add.

::: part
answer: ceil(-H/b - 0.0001)
tolerance: 0

### {b} ps buffers needed for the hold path?

::: misses
- [any] Round up the deficit.
:::
:::

::: part
answer: S - u
unit: ps
tolerance: 0.5%

### Setup slack after uncertainty?

::: misses
- [any] Subtract it.
:::
:::
:::

::: check
kind: parts
given: G = 1 | 2.5; B = 1 | 3; H = 20 | 200; P = 4 | 8

## A path with logical effort {G}, branching {B}, electrical effort {H} and parasitic delay {P}.

::: part
answer: G*B*H
tolerance: 1%

### Path effort?

::: misses
- [any] GBH.
:::
:::

::: part
answer: log(G*B*H)/log(4)
tolerance: 1%

### Best stage count?

::: misses
- [any] $\log_4F$.
:::
:::

::: part
answer: 4*(G*B*H)^(1/4) + P
tolerance: 1%

### Delay with 4 stages, in τ?

::: misses
- [any] $4F^{1/4} + P$.
:::
:::
:::

::: check
kind: parts
given: n = 2 | 3; h = 3 | 6; m = 2 | 4

## Gates: an {n}-input NAND and an {n}-input NOR, each with electrical effort {h}; an inverter driving {m} times its input.

::: part
answer: (n + 2)/3*h + n
tolerance: 1%

### NAND delay (parasitic n), τ?

::: misses
- [any] $\frac{n + 2}{3}h + n$.
:::
:::

::: part
answer: (2*n + 1)/3*h + n
tolerance: 1%

### NOR delay, τ?

::: misses
- [any] $\frac{2n + 1}{3}h + n$.
:::
:::

::: part
answer: m + 1
tolerance: 1%

### Inverter delay, τ?

::: misses
- [any] $h + 1$.
:::
:::
:::

::: check
kind: parts
given: F = 300 | 3000; g = 1 | 1.33; C = 50 | 400

## A buffer chain with path effort {F}; its last stage has logical effort {g} and drives {C} fF.

::: part
answer: F^(1/round(log(F)/log(4)))
tolerance: 1%

### Stage effort with the integer stage count nearest $\log_4F$?

::: misses
- [any] $F^{1/N}$ with N rounded.
:::
:::

::: part
answer: g*C/F^(1/round(log(F)/log(4)))
unit: fF
tolerance: 1%

### Input capacitance of the last stage?

::: misses
- [any] $gC_\text{out}/f$.
:::
:::
:::

::: check
kind: parts
given: r = 0.2 | 1; L = 1 | 4; k = 2 | 3

## A wire of {L} mm with {r} Ω/µm and 0.2 fF/µm.

::: part
answer: 0.38*r*0.2e-15*(L*1000)^2*1e12
unit: ps
tolerance: 1%

### Distributed delay?

::: misses
- [any] $0.38rcL^2$.
:::
:::

::: part
answer: 0.38*r*0.2e-15*(k*L*1000)^2*1e12
unit: ps
tolerance: 1%

### If {k} times longer?

::: misses
- [any] $k^2$ times.
:::
:::
:::

::: check
kind: parts
given: R = 500 | 2000; C = 200 | 800; r = 5 | 20; c = 0.5 | 2

## A wire of {R} Ω and {C} fF, repeated with inverters whose minimum size has $R_0$ = {r} kΩ, $C_0$ = {c} fF.

::: part
answer: sqrt(0.4*R*C*1e-15/(0.7*r*1e3*c*1e-15))
tolerance: 1%

### Optimal repeater count?

::: misses
- [any] $\sqrt{0.4R_wC_w/0.7R_0C_0}$.
:::
:::

::: part
answer: sqrt(r*1e3*C/(R*c))
tolerance: 1%

### Optimal repeater size, in minimum inverters?

::: misses
- [any] $\sqrt{R_0C_w/R_wC_0}$.
:::
:::
:::

::: check
kind: parts
given: d = 1 | 3; a = 100 | 400; b = 50 | 200; L = 10 | 40

## A {d} kΩ driver feeds two {a} Ω segments, each with {b} fF at its end, plus a {L} fF load.

::: part
answer: ((d*1e3 + a)*b + (d*1e3 + 2*a)*(b + L))/1000
unit: ps
tolerance: 1%

### Elmore delay to the end?

::: misses
- [any] Each C times its shared resistance.
:::
:::

::: part
answer: 0.69*((d*1e3 + a)*b + (d*1e3 + 2*a)*(b + L))/1000
unit: ps
tolerance: 1%

### As a 50% delay (×0.69)?

::: misses
- [any] Multiply by ln 2.
:::
:::
:::

::: check
kind: parts
given: a = 0.08 | 0.2; C = 2 | 6; V = 0.7 | 0.9; f = 1 | 2.5; K = 100 | 400

## A block: {C} nF at activity {a}, {V} V, {f} GHz, with a {K} pF clock tree.

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

### Logic power?

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

::: part
answer: K*1e-12*V^2*f*1e9
unit: W
tolerance: 1%

### Clock power?

::: misses
- [any] α = 1.
:::
:::
:::

::: check
kind: parts
given: V = 0.6 | 0.8; f = 0.4 | 0.6; I = 5 | 50

## DVFS from 1.0 V to {V} V and the clock to {f} of the original; the block leaks {I} mA.

::: part
answer: V^2*f
tolerance: 1%

### Fraction of dynamic power remaining?

::: misses
- [any] $V^2f$.
:::
:::

::: part
answer: V^2
tolerance: 1%

### Fraction of energy per operation remaining?

::: misses
- [any] $V^2$.
:::
:::

::: part
answer: I*V
unit: mW
tolerance: 1%

### Leakage power at the new voltage (same current)?

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

::: check
kind: parts
given: P = 1 | 3; c = 0.3 | 0.4; g = 0.5 | 0.8; L = 0.2 | 0.5; s = 0.6 | 0.9

## A chip: {P} W dynamic (clock share {c}) and leakage of {L} W.

::: part
answer: P*c*g
unit: W
tolerance: 1%

### Saving from gating {g} of the clock load?

::: misses
- [any] P × c × g.
:::
:::

::: part
answer: L*s
unit: W
tolerance: 1%

### Saving from power-gating blocks responsible for {s} of the leakage while idle?

::: misses
- [any] L × s.
:::
:::
:::

::: check
kind: parts
given: a = 0.6 | 0.9; b = 0.2 | 0.4; d = 30 | 50; s = 20 | 40

## A two-phase latch pipeline alternates blocks of {a} and {b} ns; latches take {d} ps from D to Q and need {s} ps setup.

::: part
answer: a + b + 2*d/1000
unit: ns
tolerance: 0.5%

### What is its shortest period?

::: misses
- [any] $t_1 + t_2 + 2t_{DQ}$.
:::
:::

::: part
answer: (a - b)/2
unit: ns
tolerance: 0.5%

### How much does the slow block borrow there?

::: misses
- [any] Arrival minus the half period.
:::
:::
:::

::: check
kind: parts
given: L = 0.8 | 1.5; q = 120 | 180; k = 40 | 120; d = 40 | 60

## A stage with {L} ns of logic: flip-flops cost {q} ps (clock-to-Q plus setup) and see {k} ps of skew; latches take {d} ps.

::: part
answer: (L + q/1000 + k/1000) - (L + 2*d/1000)
unit: ns
tolerance: 1%

### How much shorter is the latch design's period?

::: misses
- [any] $(t_{clk\text{-}q} + t_\text{setup} + t_\text{skew}) - 2t_{DQ}$.
:::
:::
:::

::: check
kind: parts
given: h = 10 | 30; w = 60 | 120; c = 25 | 45; m = 40 | 100

## Pulsed latches are open for {w} ps, with {h} ps hold and {c} ps contamination clock-to-Q; a path's shortest delay is {m} ps.

::: part
answer: m - (h + w - c)
unit: ps
tolerance: 0.5%

### What is its hold slack?

::: misses
- [any] $t_\text{min} - (t_\text{hold} + t_\text{pw} - t_{ccq})$.
:::
:::
:::
:::
