---
title: Problem set 9
heading: "Problem set 9: timing, clocks and physical design"
eyebrow: S3 · Problem set 9
type: problems
---

::: hook
These problems use lessons 16 to 20, 44 and 45, and the timing lab: static timing with exceptions and on-chip variation, latch timing, logical effort, interconnect and crosstalk, power and its management, clocks and resets, and physical design. Times are in picoseconds unless stated.
:::

::: pool
pick: 12

::: check
kind: parts
given: T = 1000 | 1250; N = 2 | 3; L = 1500 | 2600

## A slow path with {L} ps of logic, 50 ps clock-to-Q and 30 ps setup is declared a {N}-cycle multicycle path on a {T} ps clock.

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

### What is its setup slack?

::: misses
- [T - (50 + L + 30)] A multicycle path gets N periods.
- [any] $NT - (t_{clk\text{-}q} + t_\text{logic} + t_\text{setup})$.
:::
:::

::: part
answer: (50 + L + 30)/N
unit: ps
tolerance: 0.5%

### What is the shortest period at which it still passes?

::: misses
- [any] Solve $NT = t_{clk\text{-}q} + t_\text{logic} + t_\text{setup}$.
:::
:::
:::

::: check
kind: parts
given: a = 1050 | 1100; b = 600 | 650

## Two pipeline stages share a middle register; stage 1 has {a} ps of logic and stage 2 has {b} ps, on a 1000 ps clock with 80 ps of register overhead. The middle register's clock can be delayed by s.

::: part
answer: a + 80 - 1000
unit: ps
tolerance: 0.5%

### What is the least s that lets stage 1 pass?

::: misses
- [any] Stage 1's slack is $1000 + s - (a + 80)$.
:::
:::

::: part
answer: 1000 - b - 80
unit: ps
tolerance: 0.5%

### What is the most s that still lets stage 2 pass?

::: misses
- [any] Stage 2's slack is $1000 - s - (b + 80)$.
:::
:::

::: part
answer: (1000 - b - 80 - (a + 80 - 1000))/2
unit: ps
tolerance: 0.5%

### What slack does each stage keep with s in the middle of that window?

::: misses
- [any] Half the window.
:::
:::
:::

::: check
kind: parts
given: D = 1 | 2; R = 200 | 500; C = 20 | 50; r = 300 | 600; c = 10 | 30

## A {D} kΩ driver feeds a trunk of {R} Ω ending at a node with {C} fF; from there two branches of {r} Ω each reach a {c} fF load.

::: part
answer: ((D*1000 + R)*(C + 2*c) + r*c)/1000
unit: ps
tolerance: 0.5%

### What is the Elmore delay (the sum of each resistance times the capacitance downstream of it) to one load?

::: misses
- [((D*1000 + R)*(C + c) + r*c)/1000] The driver and trunk charge both branches' loads.
- [any] $(R_d + R_t)(C + 2c) + rc$.
:::
:::
:::

::: check
kind: parts
given: g = 0.05 | 0.1; k = 0.05 | 0.08; L = 500 | 2000

## A wire {L} µm long has {g} fF/µm to ground and {k} fF/µm to each of two neighbors.

::: part
answer: (g + 4*k)*L
unit: fF
tolerance: 0.5%

### What capacitance does its driver see when both neighbors switch the opposite way?

::: misses
- [(g + 2*k)*L] That's with quiet neighbors; opposite switching doubles each coupling.
- [any] $(c_g + 4c_c)L$.
:::
:::

::: part
answer: g*L
unit: fF
tolerance: 0.5%

### And when both switch the same way?

::: misses
- [any] The couplings see no change.
:::
:::
:::

::: check
kind: parts
given: P = 5 | 20; i = 0.5 | 0.9; E = 20 | 100; w = 10 | 50

## A block leaks {P} mW and is idle {i} of the time. Power gating stops the leakage while idle, but each wake-up costs {E} µJ, {w} times a second.

::: part
answer: P*i - E*w/1000
unit: mW
tolerance: 0.5%

### How much power does gating save?

::: misses
- [P*i] Subtract the wake-up energy per second.
- [any] $P_\text{leak}\,i - E_\text{wake}\,r$.
:::
:::

::: part
answer: P*i/E*1000
unit: /s
tolerance: 0.5%

### At what wake-up rate would it save nothing?

::: misses
- [any] Solve $P i = E r$.
:::
:::
:::

::: check
kind: parts
given: C = 100 | 500; V = 0.8 | 1; f = 1 | 2; g = 0.5 | 0.8; c = 5 | 20

## A clock network of {C} pF runs at {V} V and {f} GHz. Clock gating stops it to a fraction {g} of the flip-flops' clock pins, while the gating cells add {c} pF that always toggles.

::: part
answer: C*1e-12*V^2*f*1e9*1000
unit: mW
tolerance: 0.5%

### What does the ungated clock burn?

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

::: part
answer: (C*g - c)*1e-12*V^2*f*1e9*1000
unit: mW
tolerance: 0.5%

### How much does gating save?

::: misses
- [C*g*1e-12*V^2*f*1e9*1000] The gating cells' own clock load toggles every cycle.
- [any] $(Cg - c_\text{gate})V^2f$.
:::
:::
:::

::: check
kind: parts
given: T = 800 | 1250; e = 0.02 | 0.05; t = 300 | 350

## A path launches on the rising edge and captures on the falling edge of a {T} ps clock with a nominal 50% duty cycle; duty-cycle distortion can shorten the high phase by {e} of the period. The path takes {t} ps including setup.

::: part
answer: 0.5*T - t
unit: ps
tolerance: 0.5%

### What is its slack at 50%?

::: misses
- [any] Half the period less the path.
:::
:::

::: part
answer: (0.5 - e)*T - t
unit: ps
tolerance: 0.5%

### And with the worst distortion?

::: misses
- [any] $(D - e)T - t$.
:::
:::
:::

::: check
kind: parts
given: T = 2 | 5; r = 0.5 | 1.5

## A reset synchronizer (two flip-flops, async assert, sync deassert) runs on a {T} ns clock with 0.1 ns clock-to-Q. Its output reaches the farthest flip-flop's reset pin through {r} ns of routing, and that flip-flop needs 0.1 ns of recovery time.

::: part
answer: 2*T + 0.1
unit: ns
tolerance: 0.5%

### What is the longest delay from releasing reset to the design leaving it?

::: misses
- [T + 0.1] A release just after an edge waits almost a full period for the first sample.
- [any] Two clock edges after release, worst case: $2T + t_{clk\text{-}q}$.
:::
:::

::: part
answer: T - (0.1 + r + 0.1)
unit: ns
tolerance: 0.5%

### What is the recovery check's slack?

::: misses
- [any] $T - (t_{clk\text{-}q} + t_\text{route} + t_\text{rec})$.
:::
:::
:::

::: check
kind: parts
given: L = 500 | 1000; r = 0.02 | 0.05; I = 20 | 50; V = 0.75 | 1

## A power rail {L} µm long in metal of {r} Ω per square carries {I} mA drawn evenly along it, fed from both ends; the drop must stay within 5% of {V} V.

::: part
answer: r*L*(I/1000)/(8*0.05*V)
unit: µm
tolerance: 0.5%

### How wide must the rail be?

::: misses
- [r*L*(I/1000)/(2*0.05*V)] Fed from both ends the drop is IR/8.
- [any] Solve $IR/8 = 0.05V$ with $R = rL/w$.
:::
:::
:::

::: check
kind: parts
given: l = 300 | 400; c = 300 | 400; m = 80 | 150; k = 200 | 250

## A hold check: launch clock path {l} ps, shortest data path {m} ps, capture clock path {c} ps, hold 20 ps; derates 0.92 early (launch and data) and 1.08 late (capture). The clock paths share {k} ps.

::: part
answer: 0.92*(l + m) - 1.08*c - 20
unit: ps
tolerance: 0.5%

### What is the hold slack before pessimism removal?

::: misses
- [l + m - c - 20] Hold analysis derates the data early and the capture clock late.
- [any] $d_\text{early}(t_\text{launch} + t_\text{data}) - d_\text{late}t_\text{cap} - t_\text{hold}$.
:::
:::

::: part
answer: 0.92*(l + m) - 1.08*c - 20 + k*0.16
unit: ps
tolerance: 0.5%

### And after crediting the common path?

::: misses
- [any] Add $t_\text{common}(d_\text{late} - d_\text{early})$.
:::
:::
:::

::: check
kind: parts
given: H = 27 | 64 | 125

## An inverter drives a 2-input NAND, which drives an inverter loaded with {H} times the first inverter's input capacitance (no branching).

::: part
answer: (4/3*H)^(1/3)
tolerance: 0.5%

### What effort should each stage bear?

::: misses
- [H^(1/3)] Include the NAND's logical effort, 4/3.
- [any] $f = (GH)^{1/3}$.
:::
:::

::: part
answer: 3*(4/3*H)^(1/3) + 4
unit: τ
tolerance: 0.5%

### What is the path's delay?

::: misses
- [any] $3f + P$, with P = 1 + 2 + 1.
:::
:::

::: part
answer: H/(4/3*H)^(1/3)
tolerance: 0.5%

### How large is the last inverter's input, in units of the first inverter's?

::: misses
- [any] Working back: $C_\text{in} = gC_\text{out}/f$ with g = 1.
:::
:::
:::

::: check
kind: parts
given: V = 0.9 | 1.1; k = 2 | 4

## A block's dynamic energy per operation must fall by a factor of {k} through voltage alone, from {V} V.

::: part
answer: V/sqrt(k)
unit: V
tolerance: 0.5%

### What supply does that take?

::: misses
- [V/k] Energy goes as $V^2$.
- [any] $V/\sqrt k$.
:::
:::
:::

::: check
kind: parts
given: a = 20 | 40; b = 60 | 100; c = 30 | 80; d = 10 | 20

## A net has pins at (0, 0), ({a}, {c}) and ({b}, {d}) µm.

::: part
answer: b + c
unit: µm
tolerance: 0.5%

### What is its half-perimeter wire length?

::: misses
- [any] Width plus height of the bounding box.
:::
:::

::: part
answer: 0.2*(b + c)
unit: fF
tolerance: 0.5%

### About how much wire capacitance is that, at 0.2 fF/µm?

::: misses
- [any] Length × 0.2 fF/µm.
:::
:::
:::

::: check
kind: parts
given: T = 500 | 1000; s = 1 | 3; k = 20 | 50; m = 20 | 40

## A {T} ps clock has {s} ps rms random jitter; the budget also reserves {k} ps for skew and {m} ps of margin. Use Q = 7.03 for a $10^{-12}$ error rate.

::: part
answer: 2*7.03*s
unit: ps
tolerance: 0.5%

### What peak-to-peak jitter must it allow?

::: misses
- [7.03*s] Both tails: 2Qσ.
- [any] $2Q\sigma$.
:::
:::

::: part
answer: T - 2*7.03*s - k - m
unit: ps
tolerance: 0.5%

### How much of the period is left for logic and flip-flops?

::: misses
- [any] Subtract jitter, skew and margin.
:::
:::
:::

::: check
kind: parts
given: I = 1 | 5 | 20; J = 1 | 2; k = 0.5 | 0.7

## A wire must carry {I} mA continuously in metal rated {J} mA per µm of width at 105 °C; at 125 °C the rating falls to {k} of that.

::: part
answer: I/J
unit: µm
tolerance: 0.5%

### How wide must it be at 105 °C?

::: misses
- [any] $I/J_\text{max}$.
:::
:::

::: part
answer: I/(J*k)
unit: µm
tolerance: 0.5%

### And at 125 °C?

::: misses
- [any] Derate the rating.
:::
:::
:::
:::
