← ⏳ Timing, Delay & Clock Frequency
Subtopic 3 of 3

6.3Clock skew, metastability and pipelining

The idea

Clock skew is a difference in clock arrival times. Metastability is a flip-flop stuck between 0 and 1 after a violated setup or hold time. Pipelining cuts a long path into stages to allow a faster clock.

Think of it like this: An assembly line: each station is quick, so a new product leaves often, though each item takes longer in total.

Why it exists

Concept questions test what each effect does and what cures it.

How it works

  1. Skew that delays the capturing clock helps setup but can break hold.
  2. Metastability happens when an asynchronous input changes inside the setup/hold window; a two-flip-flop synchroniser reduces the risk.
  3. Pipelining: clock period ≈ stage delay + register overhead.
  4. Throughput improves by about k times, latency gets slightly worse.

Worked example: 24 ns of logic in 4 stages, 2 ns overhead

Period falls from 26 ns to 8 ns: about 3.25× throughput, but latency rises from 26 ns to 32 ns.

Now play with it

  • →Change the number of stages and watch the latency column.
  • →Read the problem table: which fixes work for hold?
Clock period, no pipeline26 ns
Clock period, 4 balanced stages8.00 ns
Throughput speed-up3.25×
Latency of one result32.00 ns

Pipelining improves throughput but the latency of a single result gets slightly worse because of the register overhead.

ProblemCauseCure
Setup violationdata arrives too lateslower clock, faster logic, pipelining
Hold violationdata changes too soon after the edgeadd delay to the short path, reduce skew (clock period does not help)
Metastabilityasynchronous input changes in the setup/hold windowtwo-flip-flop synchroniser, handshake
Clock skewclock reaches flip-flops at different timesbalanced clock tree

Check yourself

Pipelining a long combinational path mainly improves

Remember: Pipelining raises throughput, not latency; metastability is reduced, never eliminated.
Exam notes (the dense version)

Clock skew is the arrival-time difference of the clock at two flip-flops; skew that delays the capturing flip-flop gives extra setup time but may violate hold. Metastability occurs when an asynchronous input changes inside the setup/hold window, leaving the output at an indeterminate level for an unpredictable time; it is handled with two-flip-flop synchronisers, not removed. Pipelining inserts registers to split a long path: the clock period drops to the slowest stage plus register overhead, throughput rises, but latency grows by the register delays.