WHY it exists: because "0" and "1" are not points, they are ranges of voltage. The gap between the sender's promise and the receiver's expectation is the margin.
WHAT it measures: worst-case tolerable noise, split into HIGH noise margin (NMH) and LOW noise margin (NML).
HOW we get it: from four voltage levels defined on the transfer characteristic (VTC): VOH,VOL,VIH,VIL.
We chain driver → receiver. The driver outputs a valid level; the receiver must accept it even after noise is added.
Case HIGH (a 1 travels down the wire):
The driver guarantees at least VOH. The receiver still calls it a 1 as long as its input stays above VIH. Noise can only drop the received voltage (worst case). Tolerable drop:
NMH=VOH−VIH
Why this subtraction?VOH is the ceiling we start from, VIH is the floor the receiver needs. The distance between them is how far noise may pull the signal down before failure.
Case LOW (a 0 travels down the wire):
The driver guarantees at most VOL. The receiver still calls it a 0 as long as its input stays below VIL. Noise can only raise it. Tolerable rise:
NML=VIL−VOL
Why this order? Now VIL is the ceiling (receiver limit) and VOL is the floor (driver start); noise pushes the low signal up toward the limit.
In which direction does noise threaten a HIGH signal?
Why is CMOS margin roughly VDD/2 each?
Answers: 1) NMH=VOH−VIH, NML=VIL−VOL. 2) Boundary between noise attenuation and amplification. 3) Downward (pulls toward VIH). 4) Rail-to-rail swing + threshold at VDD/2.
Recall Feynman: explain to a 12-year-old
Imagine passing a note that says "HIGH" or "LOW". Your friend's ears are a bit fuzzy. If you SHOUT "HIGH" very loud (near the top), even if some noise makes it a bit quieter your friend still hears "HIGH". The extra loudness you have to spare before your friend gets confused is the noise margin. There's one cushion for shouting (HIGH) and one for whispering (LOW). A good chip keeps both cushions fat so random buzzing never flips a 1 into a 0.
Dekho, digital circuit me "0" aur "1" koi exact voltage nahi hota — woh ek range hota hai. Real chip me wire par noise aata hai (padosi wires ki coupling, supply drop, ringing). Noise margin ka matlab hai: kitna extra noise voltage gate jhel sakta hai bina galat value read kiye. Yeh ek safety cushion hai driver ke output aur next gate ke input requirement ke beech.
Do margins hote hain. HIGH side ke liye driver kam se kam VOH deta hai, aur receiver tab tak "1" maanta hai jab tak voltage VIH se upar hai. Noise HIGH signal ko neeche girata hai, isliye NMH=VOH−VIH. LOW side ke liye driver max VOL deta hai, receiver tab tak "0" maanta hai jab tak voltage VIL se neeche hai. Noise LOW ko upar uthata hai, isliye NML=VIL−VOL. Order ulta mat karna warna answer negative aa jayega — margin hamesha positive hona chahiye.
VIL aur VIH kahan se aate hain? VTC curve par jahan slope =−1 hota hai. Uske andar gate noise ko chhota kar deta hai (attenuate), bahar noise bada ho jata hai (amplify). Isliye woh −1 points exact boundary hain valid region ki.
CMOS itna popular kyun hai? Kyunki iska output rail-to-rail hota hai — VOH≈VDD, VOL≈0 — aur threshold beech me VDD/2 par. Isse dono margins lagbhag VDD/2, aur balanced ho jate hain. Yaad rakho: robustness =min(NMH,NML), dono ko fat rakho tabhi chip noise me bhi reliable rahega.