Worked examples — Critical path identification
This page is a case-by-case drill for the parent note Critical path identification. The parent showed you what a critical path is and why it sets the clock. Here we hit every kind of situation a problem can throw at you: normal cases, ties, zero delays, negative slack, hostile skew, hold-time twists, and a real-world word problem. Nothing new is assumed — every symbol is re-introduced the first time it appears.
A unit sanity note we will lean on: , so a period of ns gives . Memorise the shortcut: frequency in MHz = 1000 ÷ (period in ns).
The scenario matrix
Every timing problem you will meet falls into one of these cells. The worked examples below are each tagged with the cell they cover, so together they fill the whole grid.
| # | Cell class | What makes it tricky | Example |
|---|---|---|---|
| C1 | Two competing paths, no skew | pick slower by summed delay, not gate count | Ex 1 |
| C2 | Tie in delay, differ in gate count | equal-delay paths — both critical | Ex 2 |
| C3 | Positive skew (helpful) | capture clock late ⇒ more time | Ex 3 |
| C4 | Negative skew (harmful) | capture clock early ⇒ deadline pulled in | Ex 4 |
| C5 | Negative slack (violation) | path fails; must fix | Ex 5 |
| C6 | Degenerate: | wire-only path, still has floor | Ex 6 |
| C7 | Multi-input gate (arrival = max) | last input wins at a merge | Ex 7 |
| C8 | Hold-time twist (fast path) | shortest path, opposite inequality | Ex 8 |
| C9 | Real-world word problem | translate English → the five symbols | Ex 9 |
| C10 | Exam twist: fix then re-check | second path becomes new critical | Ex 10 |
Example 1 — two competing paths, no skew (C1)
Forecast: Path B has more gates — does that make it critical? Guess before reading.
- Sum each path's delay. Path A ns. Path B ns. Why this step? The critical path is decided by accumulated delay, never by gate count. Look at the figure: Path A's total bar is longer even though it has fewer segments.
- Take the larger. ns (Path A). Path B loses despite two extra gates. Why this step? The clock must wait for the slowest runner; the fast path just idles.
- Plug into . ns. Why this step? One full data hop must fit in one period.
- Convert to frequency. MHz.
Verify: Path A (8) > Path B (7.2), so more gates did not win — matches the "count is irrelevant" rule. Units: ns period → MHz. ✓
Example 2 — a tie in delay (C2)
Forecast: Can two paths be critical at once?
- Sum both. P ns, Q ns. They tie. Why this step? Delay, not count, is the tiebreaker — and here the delays are equal.
- Both are critical. Any path with the maximum delay is a critical path; a design can have several. Why this step? The definition says "largest total delay" — ties share the crown, and fixing only one leaves the other still limiting you.
- Frequency floor. ns, MHz.
Verify: , so both bind. ns → MHz. ✓ (Lesson: to speed up, you'd have to shorten both paths.)
Example 3 — positive skew helps (C3)
Forecast: Does making the capture clock late help or hurt?
- Time spent. ns. Why this step? This is the used portion of the ruler.
- Time available. ns. Why this step? A later capture edge pushes the deadline outward — the figure shows the green deadline sliding right by ns, giving breathing room.
- Slack. ns.
Verify: Positive skew added exactly its value to the slack. Without skew, slack would be (right on the edge); the pushed it to ns. Helpful, as forecast. ✓
Example 4 — negative skew hurts (C4)
Forecast: How does an early deadline change the sign of the slack?
- Time spent (unchanged): ns.
- Time available: ns. Why this step? Negative skew means the capture edge comes before the nominal one — the deadline slides left, stealing time.
- Slack: ns. Violation.
Verify: Same numbers as Ex 3 but skew flipped sign flipped the slack from to — a symmetric ns swing. ✓ Confirms the parent's "track which clock the skew shifts."
Example 5 — negative slack, a real violation (C5)
Forecast: The logic alone is bigger than the whole period — can this ever pass?
- Slack. ns. Why this step? Negative means the data arrives ns after the deadline — the bit is still moving when it's supposed to be still.
- Interpret. A ns violation. You must recover ns.
- Two fixes. (a) Slow the clock: minimum safe period ns → MHz. (b) Shorten logic by ns (resize gates / pipeline).
Verify: ns < 0 ⇒ fails. Relaxing to ns gives slack , exactly on the boundary. MHz. ✓
Example 6 — degenerate path, zero logic (C6)
Forecast: With zero logic, can the clock go infinitely fast?
- Plug . ns. Why this step? Even a bare wire cannot escape the flip-flop's own overheads — the clock-to-Q push-out and the setup catch still cost time.
- Frequency. MHz GHz. Why this step? This is the hard ceiling for this FF pair; no logic path between them can beat it.
Verify: Setting leaves the irreducible floor ns. Not infinite — matches the physics. MHz. ✓
Example 7 — multi-input gate, arrival = max (C7)
Forecast: Do we add the three input times, or pick one?
- Take the max input arrival. ns. Why this step? An AND's output cannot settle until its slowest input has arrived — the figure shows the output waiting on the plum ( ns) input while the others sit idle.
- Add the gate delay. Output valid at ns. Why this step? Once the last input is in, the gate itself still takes ns to react.
- Critical predecessor. The ns input is on the critical path through this gate; trace back along it.
Verify: We used , not sum ( would be nonsense — inputs travel in parallel, not in series). , ns. ✓ This is exactly the parent's "arrival = max(inputs) + gate delay."
Example 8 — the hold-time twist, shortest path (C8)
Forecast: The setup formula rewarded a late capture clock. Does that same lateness hurt hold?
- Left side (data arrival). ns. Why this step? This is how fast new data reaches the capture FF after the same edge.
- Right side (hold requirement). ns. Why this step? Positive skew that helped setup now hurts hold — the late capture edge means old data must survive longer.
- Compare. ? No. Hold violation (hold slack ns).
Verify: The very skew that gave ns of setup room in Ex 3 costs us here — fails. Hold slack ns. ✓ Confirms the parent's mistake-note: skew's sign effect flips between setup and hold.
Example 9 — real-world word problem (C9)
Forecast: First translate every phrase into one of our five symbols before computing.
- Translate. ( ns ps.)
- "launches ps after the edge" → ns.
- adder + mux + comparator, in series → ns.
- "stable ps ahead" → ns.
- "capture edge ps later" → ns. Why this step? Every timing word maps to exactly one symbol; series gates add.
- Minimum period (skew helps setup, so subtract it): ns. Why this step? This is the setup formula rearranged; the late capture clock buys back ns.
- Frequency. MHz.
Verify: Sum ns of used time, minus ns skew relief ns. MHz. ✓ Units consistent (all ns → MHz).
Example 10 — exam twist: fix, then the next path bites (C10)
Forecast: After you fix the worst path, will ns finally be met?
- (a) Critical now. ns → Path X critical. Its stage need is ns > 8 ns: fails badly. Why this step? Worst summed delay wins.
- (b) Pipeline X. Split X into two ns halves; each new stage needs ns ≤ 8 ns. ✓ But Path Y is untouched: it needs ns > 8 ns. Still fails. Why this step? Fixing X promoted Y to the new critical path — the classic "second-slowest becomes critical" trap. Re-run STA after every fix.
- (c) New . The block's floor is now Path Y: ns → MHz. To reach ns you must also shorten/pipeline Y.
Verify: After pipelining X, the halves ( ns) pass but Y ( ns) does not — so the block does not meet ns. MHz. ✓ Matches the parent's "speed up the critical path and you're done" mistake.
Recall Which cell was hardest for you?
Skew sign — setup vs hold ::: Late capture clock (positive skew) helps setup (adds to available time) but hurts hold (old data must survive longer). Ex 3 vs Ex 8. Why "most gates" fools people ::: Delay is summed, not counted; a few slow gates beat many fast ones. Ex 1, Ex 2. The irreducible speed floor ::: Even with , . Ex 6. Multi-input merge rule ::: Output arrival = max(input arrivals) + gate delay, never the sum. Ex 7.
Related vault topics
- Parent: Critical path identification · Hinglish: 3.5.10 Critical path identification (Hinglish)
- Foundations: Setup and Hold Time · Propagation Delay and Gate Sizing
- The tool that automates all of this: Static Timing Analysis (STA)
- Skew's double-edged role: Clock Skew and Jitter
- Speed limits and fixes: Maximum Clock Frequency · Pipelining · Synchronous Design Flow