Skip to content
GATEiit

GATE EC · Digital Circuits

Critical path delay

The critical path of a digital circuit: the longest-delay path through combinational logic, how to find it with arrival times, how it sets the clock period of a synchronous design, critical paths of adders and counters, and how pipelining and balanced trees shorten it.

Before you start

This topic comes before: Instruction pipelining, Setup and hold time

Concept notes

1. What the critical path is

Model a combinational block as a directed graph: gates are nodes, each with a propagation delay, and wires are edges. A path runs from a primary input (or a flip-flop output) to a primary output (or a flip-flop input). Its delay is the sum of the gate delays on it (plus wire delay, if given).

  • The critical path is the path with the largest delay. Its delay is the worst-case propagation delay tpd of the block: after this time, every output is guaranteed to be settled.
  • The shortest path gives the contamination delay tcd (computed with the gates' minimum delays): the earliest time an output can start to change. It matters for hold time, not for speed.

Key points:

  • The critical path is the longest in time, not necessarily the one with the most gates. One slow gate can outweigh two fast ones.
  • If inputs arrive at different times, the late arrival is added to the path delay; a short path from a late input can become critical.
  • The critical path decides the maximum operating speed. Speeding up any gate not on it does not help.
  • There can be several critical paths with the same delay; all must be shortened to gain speed.

A false path is a path that no input combination can actually sensitise (for example, blocked by a mux select that never takes that value). GATE questions normally assume every structural path is real unless told otherwise.

2. Finding it: the arrival-time method

For a network of more than a few gates, do not list every path. Instead compute the latest arrival time at each gate output, working from inputs to outputs (topological order):

tout(G)=max⁡inputs i tarr(i)+dG

with primary inputs at time 0 unless stated otherwise.

  1. Write the arrival time of each input (usually 0).
  2. For each gate whose inputs are all known, take the maximum input arrival and add the gate delay.
  3. The largest arrival time at any output is the critical path delay.
  4. Trace back: from that output, repeatedly step to the input that produced the maximum. That traced chain is the critical path.

For the shortest path (contamination delay), repeat with min instead of max and the minimum gate delays.

Slack. If an output must be ready by time T, the slack of a path is T minus its delay. The critical path has the least slack; negative slack means a timing violation.

In the network shown, G3 waits for G1 (ready at 2 ns), so G3 is ready at 2+4=6 ns. G4 waits for the later of G2 (3 ns) and G3 (6 ns), giving 8 ns, and G5 gives 10 ns. Tracing back: G5←G4←G3←G1←A. The path C→G3→G4→G5 is only 8 ns.

ABCDG1 NAND2 nst = 2G2 NOR3 nst = 3G3 XOR4 nst = 6G4 AND2 nst = 8G5 OR2 nst = 10Ythick: critical path A (or B) → G1 → G3 → G4 → G5, delay 2 + 4 + 2 + 2 = 10 nst = latest arrival time at each gate output
Arrival times through a five-gate network; the critical path is drawn thick

3. Critical path in a synchronous circuit

In a clocked design the combinational logic sits between registers. Data launched at one clock edge must reach the next register a setup time before the next edge. For every register-to-register path:

Tclk≥tclk-q+tcomb,max+tsetup

so the critical path sets the minimum clock period, and fmax=1/Tmin. With clock skew tskew (capture clock arriving late is positive skew) the condition becomes Tclk≥tclk-q+tcomb,max+tsetup−tskew.

Check all path types and take the worst:

Path Constraint
register → register tclk-q+tcomb+tsetup
input → register input arrival delay +tcomb+tsetup
register → output tclk-q+tcomb + required output time

The hold check uses the opposite extreme, the shortest path: tccq+tcd≥thold (plus skew). A hold violation cannot be fixed by slowing the clock.

Counters as examples.

  • Ripple (asynchronous) counter of n flip-flops: each flip-flop is clocked by the previous output, so the last bit settles after n tff. If all outputs must settle within one clock period, fmax=1/(n tff).
  • Synchronous counter with a chain of AND gates for the toggle enables: Tclk≥tclk-q+(n−2) tAND+tsetup for a ripple-enable chain, and less with parallel (wide) AND gates.

4. Critical paths in adders

Ripple-carry adder (RCA). An n-bit RCA chains n full adders through their carries. Let tc be the delay to carry out (from a, b or cin) and ts the delay from cin to the sum. The worst case is a carry generated at bit 0 that propagates to the top:

tRCA=(n−1) tc+max⁡(ts,tc)

The first term gets the carry into the last stage; the second is that stage's sum (or carry-out). With a two-level full adder (tc=2 gate delays), the carry chain alone is about 2n gate delays: linear in n.

Carry-lookahead adder (CLA). Compute Gi=aibi and Pi=ai⊕bi in one gate delay, then every carry directly in two levels:

ci+1=Gi+PiGi−1+PiPi−1Gi−2+⋯+Pi⋯P0c0

and the sum si=Pi⊕ci in one more. Total about 4 gate delays, independent of n, if gates of unlimited fan-in are allowed. In practice fan-in is limited, so lookahead is done in blocks and the delay grows like log⁡n.

Adder Critical path grows as
ripple carry n
carry lookahead (ideal) constant
hierarchical lookahead / prefix log⁡n

The same idea applies elsewhere: a ripple-borrow subtractor and an array multiplier both have critical paths that grow linearly along their carry chains.

FA3a3b3s3FA2a2b2s2FA1a1b1s1FA0a0b0s0c0c3c2c1c4worst case: a0 or b0 → c1 → c2 → c3 → s3 (thick)delay = 3 carry delays + 1 sum delay; for n bits, (n − 1)tc + ts when ts ≥ tc
4-bit ripple-carry adder: the worst case runs along the carry chain to the top sum bit

5. Shortening the critical path

Balanced trees. An N-input AND (or OR, XOR) built from 2-input gates:

  • as a chain: N−1 levels, delay (N−1) tg;
  • as a balanced tree: ⌈log⁡2N⌉ levels, delay ⌈log⁡2N⌉ tg.

Same gate count (N−1), far shorter critical path.

Pipelining. Cut the logic into k stages with registers between them. The clock period becomes the slowest stage plus register overhead:

Tpipe=max⁡i(stage delayi)+tclk-q+tsetup

  • Throughput (results per second) rises to 1/Tpipe.
  • Latency for one result becomes k Tpipe, which is longer than the unpipelined delay because of register overhead and unequal stages.
  • Speedup in throughput =Tunpipelined/Tpipe, at most k.
  • A pipeline cut must cross every path from input to output exactly once, so every signal that crosses the cut gets a register (including side branches).

Other methods. Retiming moves existing registers across logic to balance stages without changing function. Logic restructuring moves a late-arriving signal closer to the output. Faster architectures (carry lookahead, carry select) replace long chains.

Formulas to remember

Arrival time at a gate output
tout=max⁡itarr(i)+dG
Minimum clock period
Tclk≥tclk-q+tcomb,max+tsetup−tskew
Maximum frequency
fmax=1tclk-q+tcomb,max+tsetup
Ripple-carry adder
tRCA=(n−1) tc+max⁡(ts,tc)
Balanced tree of 2-input gatesA chain needs (N−1) tg
t=⌈log⁡2N⌉ tg
Pipelined clock period
Tpipe=max⁡idi+tclk-q+tsetup
Ripple counter settling time
tsettle=n tff

Common mistakes

  • Counting gates instead of adding delays: the critical path is the longest in time.
  • Ignoring a late-arriving input; its arrival time must be added to its path.
  • Leaving out clock-to-Q and setup time when converting the critical path delay into a clock period.
  • Counting n carry stages for an n-bit ripple-carry adder sum; the last sum bit needs (n − 1) carry delays plus one sum delay.
  • Treating pipelining as a cut on one path only; every signal crossing the cut, including side branches, needs a register.
  • Expecting pipelining to reduce latency; it raises throughput, while latency usually grows.

Worked examples

Try each step yourself, then reveal the working.

Example 1: Arrival times through a gate network

numerical

In the network shown, G1 = NAND(A, B) with 2 ns, G2 = NOR(C, D) with 3 ns, G3 = XOR(G1, C) with 4 ns, G4 = AND(G3, G2) with 2 ns, and Y = G5 = OR(G1, G4) with 2 ns. All inputs arrive at t=0. Find the critical path and its delay, and the shortest input-to-output path.

  1. Step 1: Compute the arrival time at each gate output in order.

    Try it on paper first.

Example 2: Clock frequency before and after pipelining

numerical

The network of the previous example sits between registers with tclk-q=2 ns and tsetup=1 ns. (a) Find fmax. (b) A register stage is inserted at the outputs of G1, G2 and G3. Find the new fmax and the latency.

  1. Step 1: Find the unpipelined period.

    Try it on paper first.

Example 3: Delay of a 16-bit ripple-carry adder

numerical

Each full adder has a carry-out delay of 2 ns (from any input) and a carry-in to sum delay of 3 ns. Find the worst-case delay of a 16-bit ripple-carry adder and the maximum number of additions per second if one addition is done per clock with no other overhead.

  1. Step 1: Count the carry stages before the last full adder.

    Try it on paper first.

Example 4: Chain versus tree

numerical

A 16-input AND is built from 2-input AND gates of delay 1.5 ns. Compare the delay of a chain with that of a balanced tree.

  1. Step 1: Count levels in the chain.

    Try it on paper first.

Previous year questions

1 official GATE EC question on this topic, newest first.

Topic test

9 questions: up to 1 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.

Mark as mastered

Loading your progress…

My revision notes

Notes written by the GATEiit team against the official GATE EC syllabus; being checked by a reviewer. Updated 2026-11-29. Spotted a mistake? Use Report an issue on any question, or contact us.