3.5.9 · D3HDL & Digital Design Flow

Worked examples — Timing analysis basics (static timing)

2,157 words10 min readBack to topic

Two formulas power everything (both from the parent). We restate them once so no symbol is unearned:

A reminder of what each letter is, in plain words:


The scenario matrix

Every timing question you can be asked is one cell of this grid. The last column names the example that covers it.

# Case class What is stressed Covered by
A Setup, comfortable slack Ex 1
B Setup, exactly on the edge slack (limiting value) Ex 2
C Setup, violation slack Ex 3
D Hold, pass fast path still slow enough Ex 4
E Hold, violation fast path too fast Ex 5
F Degenerate: zero combinational logic () flop-to-flop, worst hold case Ex 5
G Positive skew helps setup, hurts hold Ex 6
H Negative skew hurts setup, helps hold Ex 7
I Real-world word problem pick the right frequency Ex 8
J Exam twist: find max allowed logic delay solve inequality for Ex 9

We now walk all ten cells.


Setup axis: comfortable → edge → violation

Figure — Timing analysis basics (static timing)

The figure above is one timeline. The launch edge is at , the capture edge at . Data leaves at (blue), arrives at (orange dot), and the deadline (dashed red) sits at . Slack is the green gap; if orange sits past the red line, slack goes negative.


Hold axis: pass → violation → zero-logic degenerate

Figure — Timing analysis basics (static timing)

Hold is a same-edge race. Both flops feel the tick at . The old value inside FF2 must survive until (red line). The new value racing through the fastest path arrives at (orange). If orange lands left of the red line, the new value overwrites the old too early — a hold violation.


Skew axis: positive vs negative

Figure — Timing analysis basics (static timing)

Skew slides the capture clock edge. Positive skew (capture later, orange edge moves right) hands setup more time but makes the hold "hold-until" line move right too, so hold gets harder. Negative skew does the reverse. The figure shows both slides on one axis.


Word problem and exam twist


Recall

Recall Which extreme path does each check use, and why?

Setup → longest path (fear arriving late). Hold → shortest path (fear arriving too early).

Recall Ex 5's fix for a zero-logic hold violation?

Insert buffer delay in the data path (raise ). Slowing the clock cannot help — isn't in the hold equation.

Recall Positive skew: effect on setup and hold?

Helps setup (later deadline), hurts hold (later "hold-until" bar). Ex 6 shows both.

Connections

Ex2 fastest legal period for tcq0.3 comb4.2 su0.5?
5.0 ns → f_max 200 MHz.
Ex3 setup slack at 250 MHz for that circuit?
−1.0 ns (fails).
Ex5 hold slack with zero logic, tcq0.3 th0.6?
−0.3 ns (needs +0.3 ns buffer).
Ex6 with +0.5 ns skew: setup and hold slack?
setup +0.5 ns, hold −0.3 ns.
Ex9 max comb delay at 400 MHz, +0.10 skew, tcq0.25 su0.35?
2.0 ns.