3.2.6 · D2CMOS Circuit Design

Visual walkthrough — Noise margins (NMH, NML)

2,203 words10 min readBack to topic

This page re-derives the central result of Noise margins (NMH, NML) entirely from pictures. If a symbol appears, you will have seen it on a figure first.


Step 1 — What a logic gate actually does: the transfer curve

WHAT: the horizontal axis is (input voltage), the vertical axis is (output voltage). For an inverter, a low input gives a high output and vice-versa, so the curve slides from top-left down to bottom-right.

WHY: noise is just an unwanted change in . To know whether the gate survives noise, we must know how a change in turns into a change in — that relationship is the curve .

PICTURE: look at the falling S-curve. Flat at the top (a range of low inputs all give a high output), steep in the middle, flat at the bottom. The green arrow shows the "go up to the curve" reading of .

Figure — Noise margins (NMH, NML)

Step 2 — "Steepness" made precise: the slope, and why is magic

WHY a derivative and not just a ratio? Because the tilt is different at every point of the S-curve. A single ratio would average the whole thing; we need the tilt right here, locally — that is precisely the job of .

Now the key. Suppose a noise bump changes the input by a small amount . The output changes by

  • = the noise wiggle that arrived at the input.
  • = the multiplier the gate applies to it.
  • = the wiggle that leaves the output and travels to the next gate.

The magic threshold: compare the size of the leaving wiggle to the arriving one.

  • If → noise shrinks.
  • If → noise passes through unchanged — break-even.
  • If → noise grows — disaster.

PICTURE: the two red dots mark where the tilt equals (negative because an inverter curve falls). Between them the gate amplifies; outside them it calms noise down.

Figure — Noise margins (NMH, NML)

Step 3 — Naming the two break-even points: and

WHAT: two vertical marks on the input axis, dropped straight down from the two red dots of Step 2.

WHY these two and not any others: they are not chosen by taste — they are forced by the physics. Anywhere between them the gate amplifies noise, so no honest logic level can live there. The break-even points are the outermost edges where noise is still (barely) not amplified.

PICTURE: the strip between and is shaded as the "forbidden zone" — no valid logic level may sit inside it. The dashed line in the exact middle marks , the switching threshold where input equals output () — the point the curve is racing through; we will need it in Step 8.

Figure — Noise margins (NMH, NML)

Step 4 — Reading the outputs those thresholds produce: and

WHAT: stand on each threshold on the input axis, walk up to the curve, then across to the output axis. Where you land are (high, from ) and (low, from ).

WHY cross like that: is a low input, and an inverter turns a low input into a high output — so the level a valid HIGH is guaranteed to reach is . Symmetrically the highest valid-1 input produces the lowest guaranteed output .

PICTURE: two dashed "L-shaped" paths — up from to the curve, then across to ; and up from , then across to .

Figure — Noise margins (NMH, NML)

Step 5 — Chaining two gates: where noise actually attacks

WHAT: draw driver → wire → receiver. On the wire, an arrow shows noise being injected.

WHY: this is the single most-missed point. The safety cushion is the gap between "what the sender promises to output" and "what the receiver demands at its input". That gap spans a gate boundary.

PICTURE: the driver box outputs ; noise (jagged arrow) pushes the wire voltage down; the receiver box has a horizontal line at marking its "still counts as 1" floor.

Figure — Noise margins (NMH, NML)

Step 6 — The HIGH cushion:

WHAT: a HIGH signal leaves the driver at (at least) . Noise can only drop it in the worst case. The receiver keeps calling it a 1 until it falls below .

WHY the subtraction: the ceiling we start from is , the floor we may not cross is . The room to fall is their difference.

PICTURE: a vertical bracket on the voltage axis from up to — a downward arrow labelled "noise budget" fills it.

Figure — Noise margins (NMH, NML)

Step 7 — The LOW cushion:

WHAT: a LOW signal leaves the driver at (at most) . Noise can only raise it. The receiver keeps calling it a 0 until it climbs above .

WHY the order flips: for a LOW, noise pushes up, so now the ceiling is the receiver's limit and the floor is the driver's start . Larger minus smaller keeps the margin positive.

PICTURE: a vertical bracket from up to , with an upward arrow labelled "noise budget".

Figure — Noise margins (NMH, NML)

Step 8 — The degenerate cases: when a cushion collapses

WHAT & WHY: we must cover every scenario the reader could meet.

  • Zero margin ( or ): the bracket has height zero — any noise at all flips the bit. The logic is broken even in a "clean" lab.
  • Negative margin (): the driver's best HIGH is already below what the receiver demands. The gate misreads with no noise present. This is why both margins must be strictly positive.
  • Ideal CMOS limit: with huge gain the S-curve becomes a vertical cliff at the switching threshold (defined in Step 3 as the point where output equals input), and the flat shoulders reach the rails: , , while . Then both cushions grow to — the widest, most balanced possible. This is exactly why CMOS wins (see Static Gain and Regenerative Property and CMOS Inverter VTC).

PICTURE: three mini-panels — collapsed (zero), inverted (negative, forbidden zones overlap the valid ranges), and ideal (fat balanced brackets).

Figure — Noise margins (NMH, NML)

The one-picture summary

Everything at once: the VTC, the two points, all four voltages, the forbidden zone, and both cushion-brackets on the same axes. The little flow along the top of the figure retraces the whole derivation, arrow by arrow, back to the figures that built each step.

Figure — Noise margins (NMH, NML)
Recall Feynman retelling — the whole walkthrough in plain words

I draw a curve showing what comes out of a gate for every voltage I put in — I call that rule , "go up to the curve and read the height". It's flat, then steep, then flat. On the flat parts the gate ignores little wiggles — that's where safe signals live. I find the two spots where the curve tilts at exactly one-to-one; before them wiggles shrink, after them wiggles blow up, so those spots are the outer fences of the safe zones. I call those input spots (highest still-a-0) and (lowest still-a-1). I walk each up to the curve and across to read the outputs they make: (a big output) and (a small one). Then I remember that a real signal is born at one gate's output and judged at the next gate's input, with noise sneaking in on the wire between. For a HIGH, noise can only pull it down, so the cushion is how far it can drop before it falls under : that's . For a LOW, noise can only push it up, so the cushion is how far it can rise before it passes : that's . If either cushion is zero or negative the chip is broken. Perfect CMOS makes the curve a cliff at so both cushions are about half the battery voltage — that's why it's everywhere.


Connections

  • Noise margins (NMH, NML) — the parent result this page derives visually.
  • CMOS Inverter VTC — the curve of Step 1, from transistor physics.
  • Static Gain and Regenerative Property — why the points and high gain matter (Step 2, Step 8).
  • Fan-out and Loading — how loading erodes and shrinks the brackets.
  • Power Supply Scaling — lowering shrinks the ideal cushions.
  • Static Noise Margin (SRAM butterfly curve) — the same bracket idea for memory cells.
On the VTC, where do the input thresholds live?
At the two points where the slope .
What does the mapping mean in ?
"Stand at , go up to the curve, read the output height" — the VTC written as a function.
How do you get from ?
Map through the curve: .
What is ?
The switching threshold, where output equals input (); for ideal CMOS .
Why couple an output to the next gate's input?
Noise is added on the wire between a driver's output and a receiver's input, so the margin spans that boundary.
What does a zero noise margin mean physically?
The bracket has zero height — any noise at all flips the bit, even in a clean circuit.
What does a negative margin mean?
The driver's valid level already violates the receiver's threshold, so it misreads with no noise present.