LIMA
With God's help
עברית

Noise Margin

Imagine that you are trying to hold a conversation with a friend at a noisy party. When you produce a clear voice (the transmitter), your voice goes out at a certain strength, but by the time it reaches your friend's ear (the receiver), the background noise of the music settles on top of it and may distort it. The "noise margins" are essentially the maximum amount of background noise the party can produce before your friend stops understanding with certainty what you said and starts getting confused, or does not understand you at all.

The theory in brief

In the world of logic design, the noise margins (Noise Margin) define the maximum external voltage (in absolute value) that can be added to the transmitted signal without the receiving component interpreting it as a wrong logical value. To guarantee reliability, critical voltage levels are defined: the source transmits '1' at a voltage higher than \(V_{OH}\), and the destination recognizes '1' as long as the voltage is higher than \(V_{IH}\). The difference between them creates the noise margin for a high voltage: \[NM_H = V_{OH} - V_{IH}.\] Similarly, for transmitting '0' we define the voltages \(V_{OL}\) (at the output) and \(V_{IL}\) (at the input), and obtain: \[NM_L = V_{IL} - V_{OL}.\]

The region between \(V_{IL}\) and \(V_{IH}\) is defined as the "forbidden zone", or undefined region, which the signal must not reach at any stable stage.

The noise margin of the component as a whole is always set by the stricter of the two: \[NM = \min(NM_L, NM_H).\] Taking the minimum guarantees that if the circuit manages to cope with the narrowest noise margin, it will necessarily also cope with the larger margins, while keeping a 'safety distance' that prevents a wrong interpretation of 0 as 1 or the other way around.

Transmitter (output) Receiver (input) '1' '0' '1' '0' Forbidden zone VOH VOL VIH VIL NMH NML TXRX

How to read the lab

The transmitter (TX)

On the left. It sends '1' at \(V_{OH} = 4.5\,\text{V}\) or '0' at \(V_{OL} = 0.5\,\text{V}\) (the dashed lines). The signal leaves it as a perfect straight line.

Laser beam = the signal

Drawn continuously from left to right. The noise settles on it on the way to the receiver, and segments that stray from the correct level turn red.

1

Blue band = logic '1'

Any voltage above \(V_{IH}\) is recognized by the receiver as '1'.

0

Green band = logic '0'

Any voltage below \(V_{IL}\) is recognized by the receiver as '0'.

Pulsing red band = the forbidden zone

Between \(V_{IL}\) and \(V_{IH}\). It flashes harder when the signal breaks into it.

The threshold lines \(V_{IH}\) and \(V_{IL}\)

Threshold Tuning: drag the lines up and down with the mouse, or use the sliders in the control column.

Yellow arrows = \(NM_H\) and \(NM_L\)

The distance between the transmitter level and the threshold line. The narrower arrow is highlighted: it is the \(NM\) in the live equation at the top of the screen.

?

The receiver (RX) and its lamp

Blue with 1, green with 0, and a big red question mark when a sample that reached it lies in the forbidden zone.

VTC display

The voltage transfer characteristic of the receiver. At the yellow points the slope is \(-1\), and that is where \(V_{IL}\) and \(V_{IH}\) are. The maximum slope is shown in the corner.

Noise Injector

Adds random noise to the beam, up to a peak you choose (in absolute value).

Spike mode

When it is on, a click on the beam injects a narrow voltage spike toward the opposite level, with the strength set on the slider.

To the lab ↓
Loading the lab...
1

Experiments to try in the lab

  1. Fluctuations in the comfort zone (natural robustness). Make sure the noise generator slider is zeroed. Transmit '1' (a straight line at \(V_{OH}\)) and '0' (a straight line at \(V_{OL}\)). Then raise the noise generator a little so that the laser beam trembles, but stays far from the boundaries of the forbidden zone.
    This experiment illustrates the huge advantage of digital, logical processing over analog. Even though the electrical signal in reality is not clean, and even though it trembles and changes, the receiver still recognizes the information with complete certainty as long as the noise is swallowed inside the "safety distances" \((NM_H\) and \(NM_L)\). The small fluctuations are not felt at all at the output of the system.
  2. Crashing into the forbidden zone. Transmit a constant '0' (at \(V_{OL}\)), and gradually raise the noise generator. Watch the signal zigzag upward until its peaks cross the \(V_{IL}\) line and break into the flashing red band (the forbidden zone).
    Here we see the noise margins collapse in real time. The moment the disturbance exceeded \(NM_L\) and the signal crossed the \(V_{IL}\) threshold, the receiving component lost the ability to guarantee that this is a logical '0'. The forbidden zone is a region of digital blindness, and entering it means that the system may sample a logical error that will disrupt the rest of the computation.
  3. The weakest-link test (the \(NM = \min\) rule). Use the "Threshold Tuning" tool and drag \(V_{IL}\) very close to \(V_{OL}\) (narrow margin), while moving \(V_{IH}\) significantly away from \(V_{OH}\) (wide margin). Now inject medium noise into the system and transmit '1' and '0' alternately.
    This scenario proves visually why the overall noise margin of the system is always defined by the minimum of the two \((NM = \min(NM_L, NM_H))\). Even though transmitting '1' survives the noise with amazing ease thanks to the huge margin, transmitting '0' immediately crashes into the forbidden zone. A chain is only as strong as its weakest link, and therefore we must design the system according to the narrowest margin.
  4. The transfer characteristic stands up (the VTC and noise margins). Shrink the red forbidden zone to a minimum by bringing the \(V_{IL}\) line close to the \(V_{IH}\) line. At the same time, watch the VTC display in the corner of the screen and notice how its slope changes.
    There is a direct and tight connection between the shape of the voltage transfer characteristic (VTC) and the size of the noise margins. The narrower the forbidden zone (the transition region), the steeper the VTC graph becomes and the more it resembles an ideal step. A sharp transition is a design goal, because it maximizes the legal, unambiguous voltage ranges for outputs and inputs, and increases the natural immunity to noise.
  5. A momentary voltage spike versus continuous noise (Spikes). Zero the continuous noise generator so that you get a stable, smooth transmission of '1' (at \(V_{OH}\)). Now, with a mouse click, inject a single, strong and very short "voltage spike" (Spike) downward that crosses the \(V_{IH}\) line.
    Digital noise is not only static background hiss or periodic fluctuations; sometimes it is a huge momentary disturbance caused by the switching of a neighboring component or by an electrostatic discharge. The experiment shows that even an excursion lasting a fraction of a microsecond into the forbidden zone is enough to violate the noise margins and make the receiver miss the information. The noise margins are an insurance policy against the peak amplitude of the external noise (in absolute value), not against its average.