3.1.15 · D2Boolean Algebra & Logic Gates

Visual walkthrough — Logic gate propagation delay

1,961 words9 min readBack to topic

Step 1 — What is actually inside a gate?

WHAT. A logic gate does not compute with magic. Its output wire is connected to a switch made of transistors (see CMOS transistor structure). When the switch closes, it connects the output wire either up to the power supply (a high voltage we call ) or down to ground ( volts).

WHY. Before we can talk about time, we must know what physical thing is moving. The thing that moves is electric charge, flowing onto or off the output wire. Nothing about the truth table tells us this — the truth table only says the final answer, never how the wire gets there.

PICTURE. Below: the gate on the left, its output wire in the middle, and the "stuff hanging off that wire" on the right. That stuff is what we must charge.

Figure — Logic gate propagation delay

Step 2 — The wire behaves like a tiny bucket (capacitance)

WHAT. Every wire, and the input of every gate it feeds, stores a little charge when you raise its voltage. We lump all of that into one number: the load capacitance .

WHY this idea, not another? We need a way to say "how much charge do I have to deliver to raise this wire by one volt?" That is exactly what capacitance means. A capacitor is defined by:

Read it as a bucket: is how wide the bucket is. A wide bucket needs a lot of water (charge) to raise the level (voltage) even a little. This is why fan-out costs time — more gates on the wire = a wider bucket. (See Fan-out and loading.)

PICTURE. The wire drawn as a bucket. Wide bucket = big = slow to fill.

Figure — Logic gate propagation delay

Step 3 — The transistor is a resistor (the narrow straw)

WHAT. The closed transistor is not a perfect wire. It has a resistance (its "on resistance"). Charge must squeeze through it to reach the bucket.

WHY this tool — Ohm's law? We need to know how much current actually flows for a given push. The push available is the voltage still remaining between the supply and the wire, namely . Ohm's law answers exactly "current from a voltage across a resistance":

Notice the built-in slowdown: as the bucket fills ( rises toward ), the leftover push shrinks, so the current shrinks — the last bit fills slowest. (For the same physics in a pure-circuits setting, see RC circuits and time constant.)

PICTURE. The straw between supply and bucket; the arrow shrinks as the bucket fills.

Figure — Logic gate propagation delay

Step 4 — Join the two facts into one equation

WHAT. The same current flows through the straw and into the bucket (one path, nowhere else to go). So set the two expressions for equal:

WHY. This is just conservation of charge (Kirchhoff's current law): what leaves the resistor must enter the capacitor. Now we have one equation relating and how fast it changes — that is enough to pin down completely.

PICTURE. The full loop: supply → straw () → bucket () → ground, with the shared current.

Figure — Logic gate propagation delay

Step 5 — Solve it: the easing curve

WHAT. We want as a function of . Rearrange the equation so all the 's are on one side and all the 's on the other (this is separating variables — allowed because each side then depends on only one letter):

Add up (integrate) both sides from the start ( at ). The left side is a standard sum that produces a logarithm, .

WHY does a logarithm appear? Because the rate of change is proportional to the amount remaining — that is the fingerprint of exponential behaviour, and its integral is always a log. Undoing the log (applying to both sides) gives:

Reading it term by term.

  • At : , so . ✔ starts empty.
  • As : , so . ✔ fills all the way, but never jumps.
  • At : , so — 63% full after one time constant.

PICTURE. The rising curve, flattening as it approaches . Mark the point at .

Figure — Logic gate propagation delay

Step 6 — Where does 0.69 come from? (the 50% crossing)

WHAT. Delay is defined as the time for the output to reach half of the supply, — the level at which the next gate flips its decision from 0 to 1. Set and solve for :

WHY 50%, and why does pop out? We ask "when is the bucket half full?" The missing fraction must equal . Undoing the exponential with its inverse, , gives . The number is simply "how many time constants to fill half the bucket."

PICTURE. Same curve, now with the horizontal line at and the vertical drop marking .

Figure — Logic gate propagation delay

Step 7 — The two directions, and the degenerate cases

WHAT. Two things can happen and two edge cases must be checked.

  • Output rising (Low→High): the curve above; delay is .
  • Output falling (High→Low): the mirror image — the bucket drains through a (possibly different) resistor, following , hitting 50% again at . Because pull-up and pull-down transistors differ, (hence the delay) can differ each way — that is why we average: .

Degenerate cases — check the formula never breaks:

  • (no load at all): . Instant. ✔ matches intuition (empty bucket fills immediately).
  • (perfect wire, infinitely strong transistor): . ✔ Also instant — but real transistors can never reach , and a stronger one costs input capacitance for the previous stage (see Fan-out and loading).
  • Unequal arrival at a downstream gate: if two inputs to one gate carry different delays, the gate momentarily sees a wrong combination → a false pulse. That is a static hazard (see Static and dynamic hazards).

PICTURE. Rising vs falling curves mirrored, both crossing 50% at ; a small inset shows the glitch from mismatched delays.

Figure — Logic gate propagation delay

Step 8 — Delays add along a path

WHAT. Chain gates in a line. Each gate cannot begin its own climb until its input (the previous output) has already reached 50%. So the finish times stack end-to-end:

WHY sum, not average? Each stage's start is the previous stage's finish — waiting times are sequential, so they add. The longest such chain is the critical path, and it caps the clock (see Critical path and clock frequency).

PICTURE. Three gate curves shifted in time, each starting where the last hit 50%; total time bracketed at the bottom.

Figure — Logic gate propagation delay

The one-picture summary

Everything above in a single frame: a bucket (width ) being filled through a straw (narrowness ) from a tank at height ; the resulting easing curve; the 50% line; and the label at the crossing.

Figure — Logic gate propagation delay
Recall Feynman: tell the whole walkthrough in plain words

A gate's output wire is like an empty cup. The transistor that just switched on is a thin straw connecting the cup to a full water tank (the power supply, height ). Charge is the water. How wide the cup is, is ; how thin the straw is, is . When you open the straw, water rushes in fast at first — big height difference, big push — then slower and slower as the cup fills and the leftover push shrinks. That slowing-down shape is the exponential , and is its natural clock. The next gate only "reads a 1" once the cup is half full, and reaching half takes of those clock-ticks: . Fatten the straw (smaller ) or shrink the cup (smaller ) and it fills sooner. Line many cups-and-straws up and the waiting times add — that longest line is the critical path that sets how fast the whole chip can be clocked.

Recall Quick self-test

Where does the number 0.69 come from? ::: From solving for the 50% crossing: , and . Why does the charging current shrink over time? ::: The push is ; as rises the leftover push falls, so falls. What physical meaning does carry? ::: The natural time scale; after one the output is 63% of the way to . Why do path delays add rather than average? ::: Each gate starts only when the previous output hits 50%, so finish times are sequential and stack.

Connections