3.4.6 · D1Sequential Circuits

Foundations — Clock-to-Q delay

2,659 words12 min readBack to topic

Before you can read the parent note, you need to already "own" a pile of little symbols and pictures. This page builds every single one of them from zero, in the order that each one leans on the one before it. If a smart 12-year-old reads from line one, nothing should feel like a magic word.


0. The very first picture: a wire that carries a signal

Everything in digital hardware is a wire carrying a voltage. We only care about two levels:

  • a high voltage → we call it 1 (or "true", or "on"),
  • a low voltage → we call it 0 (or "false", or "off").
Figure — Clock-to-Q delay

Look at the figure: the horizontal axis is time flowing to the right, and the line jumps between the low level (0) and the high level (1). That jump is never a perfect vertical cliff in real life — it's a slope — and that slope is the seed of every delay we'll meet. Remember it.


1. The clock — the drummer that sets the beat

Figure — Clock-to-Q delay

In the figure, notice two brand-new words attached to the clock picture:

  • Edge — the moment the clock changes level. A rising edge is where it goes (climbs up); a falling edge is where it goes (drops down).
  • Period — the time for one full up-and-down, one whole "beat".

Why the topic needs this: the entire clock-to-Q idea is "how long after the active edge does something happen?" Without the edge as a starting line, there is nothing to measure from.


2. Prefixes and tiny numbers: what is a "picosecond"?

Delays inside a chip are absurdly small, so we use shorthand for tiny numbers.

Why the topic needs this: every answer in the parent note ends in "≈ 6.67 GHz" or "500 ps." You can't sanity-check those numbers unless you're fluent in ps ↔ GHz.


3. Frequency — how many beats per second

Why reciprocal, not something fancier? If one lap of a track takes seconds, then in one second you complete laps — pure counting, no physics. That is the only tool needed, so we pick the simplest one: division.


4. The flip-flop — the memory box

Figure — Clock-to-Q delay

The figure shows the box with entering on the left and leaving on the right, plus the little triangle on the clock input — that triangle is the universal symbol for "edge-triggered."

Why the topic needs this: clock-to-Q delay is literally the delay between "the edge told to update" and " actually shows the new value." No flip-flop, no , no topic.


5. The heart of the delay: transistors and capacitance

Why isn't the copy instant? Inside the flip-flop the wires behave like tiny buckets that must be filled or emptied with electric charge before the voltage on them counts as high or low.

Why the topic needs this: it answers the deepest "why?" — why does delay exist at all? Because charge can't teleport into a bucket.


6. The star of the show: clock-to-Q delay

Now we can name the delay itself. The notation always means "a time , labelled by the subscript."

Read the figure like a story left to right (each mark is labelled in text on the figure, not by colour alone):

  1. the clock rises — the dashed line labelled "active edge (start stopwatch)" marks the 50% point of the edge;
  2. a little later begins to move — the ramp labelled "Q" starts rising at the mark labelled "tccq (min, starts)";
  3. settles at its new level — the dot labelled "Q at 50% (stop stopwatch)", at the mark labelled "tpcq (max, valid)". The double-arrow labelled "tcq" spans the gap between the two stopwatch marks.

Why two numbers, not one? Some later checks need the worst-case-slow delay (will it finish in time?), others need the worst-case-fast delay (did it change too soon?). One number can't play both roles — see the mermaid map below.


7. The companions: , , ,

These come from the neighbouring topics but the parent note uses them, so we define them here. Note the matching pair of ideas: just as the flip-flop's output has a fast flavour () and a slow flavour (), so does the logic between flip-flops.

Why the topic needs these: the master timing equation is a "worst-case-slow" sum — every delay in it is a slow/propagation number, because we must make the period long enough even on the slowest day: that is "slowest launch + slowest travel + catch margin must fit in one beat." The hold check instead mixes the fast/contamination numbers: . You cannot read either line until all four companions are defined — which they now are.


Prerequisite map

The diagram below is drawn with Mermaid. If your reader doesn't render Mermaid, read the plain-text dependency list first — it carries the same information:

  • Signalclock edge & 50% pointclock period frequency max frequency .
  • Capacitance + flip-flop + clock edgeclock-to-Q delay , which splits into (min) and (max).
  • , logic , setup , and → the setup / max-frequency equation.
  • , logic , and hold → the hold-time constraint.

Signal on a wire 0 or 1

Clock edge and 50 percent point

Clock period Tc

Frequency f equals 1 over Tc

Max frequency f_max equals 1 over Tc min

Capacitance the bucket

Clock-to-Q delay t_cq

Flip-flop D in Q out

Contamination t_ccq min

Propagation t_pcq max

Setup and max-freq equation

Hold-time constraint

Logic propagation t_pd max

Logic contamination t_cd min

Setup time t_setup

Hold time t_hold


Equipment checklist

Test yourself — cover the right side. If any answer surprises you, re-read that section before opening the parent note.

What are the only two values a digital signal takes?
High (1) and low (0) — nothing in between that we care about.
When do we officially say a ramping signal "has changed"?
When it crosses the 50% point — the halfway voltage between low and high.
Why is 50% (not 10% or 90%) the delay threshold?
It treats rising and falling ramps symmetrically, and the ramp is steepest there so timing is least sensitive to voltage noise.
What is the active edge of a clock?
The one edge (usually the rising, ) that the flip-flop reacts to; the start line for all delay measurements.
Convert: what frequency is a period of ps?
GHz.
What is the difference between and ?
is any running frequency; is the biggest one the chip can survive.
Why isn't a flip-flop's output instant?
Internal wires act like buckets (capacitance) that must be charged/discharged, which takes real time.
What do and mean on a flip-flop?
= data waiting at the input; = the value currently stored and shown at the output.
Define in words.
Time from the active clock edge until is valid and stable at its new value.
What's the difference between and ?
= earliest starts to change (min); = latest is fully valid (max); always .
What is the difference between and ?
= logic propagation (slowest, fully valid; used for setup); = logic contamination (fastest, first change; used for hold); .
State the setup vs hold time pictures.
Setup = steady before the edge; hold = steady after the edge.

Connections