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.
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.
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.
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.
Any voltage above \(V_{IH}\) is recognized by the receiver as '1'.
Any voltage below \(V_{IL}\) is recognized by the receiver as '0'.
Between \(V_{IL}\) and \(V_{IH}\). It flashes harder when the signal breaks into it.
Threshold Tuning: drag the lines up and down with the mouse, or use the sliders in the control column.
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.
Blue with 1, green with 0, and a big red question mark when a sample that reached it lies in the forbidden zone.
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.
Adds random noise to the beam, up to a peak you choose (in absolute value).
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.