The Inverter's Transfer Curve: Regions, Threshold and Noise Margins

Read the five regions, the switching threshold and both noise margins from a measured inverter curve, and move them with transistor widths.

You Will Be Able To

  • Name the five regions of the transfer curve and the state of each transistor in them.
  • Predict which way the switching threshold moves when the PMOS is widened.
  • Compute both noise margins from the unity-gain points.
  • Describe what a lower supply voltage does to the threshold and the margins.
Lesson
G9.4
Time
30 min
Runs on
ngspice
Check
5 questions

A noisy board put 720 mV of ripple on a logic 0. The designer checked the input against the switching threshold and saw room to spare. The gate still glitched. The threshold was the wrong line to check: the safe input range ends well before it.

DC sweepThree Inverters, Three Width Ratios, One InputThe input rises slowly from 0 V to 1.8 V. Each NMOS is 1 µm wide. The PMOS is 1, 2 or 3 µm wide.
  • v(y1), PMOS 1 µm
  • v(y2), PMOS 2 µm
  • v(y3), PMOS 3 µm
00.5 V1.0 V1.5 V2.0 VOutput voltage00.2 V0.4 V0.6 V0.8 V1.0 V1.2 V1.4 V1.6 V1.8 VInput voltage v(in)slope −1: input 0.742 Vslope −1: input 0.989 Vthreshold 0.872 V (PMOS 2 µm)00.5 V1.0 V1.5 V2.0 VOutput voltage00.5 V1.0 V1.5 VInput voltage v(in)slope −1: input 0.742 Vslope −1: input 0.989 Vthreshold 0.872 V (PMOS 2 µm)
  1. Input voltage v(in) 300 mVv(y1), PMOS 1 µm = 1.8 V · v(y2), PMOS 2 µm = 1.8 V · v(y3), PMOS 3 µm = 1.8 V

    A low input: all three outputs sit at 1.8 V. The ratio makes no difference here.

  2. Input voltage v(in) 742.3 mVv(y1), PMOS 1 µm = 1.692 V · v(y2), PMOS 2 µm = 1.748 V · v(y3), PMOS 3 µm = 1.766 V

    On the middle curve the slope reaches −1 at 0.742 V. This input is VIL. The output there is 1.748 V, which is VOH.

  3. Input voltage v(in) 837 mVv(y1), PMOS 1 µm = 837.1 mV · v(y2), PMOS 2 µm = 1.287 V · v(y3), PMOS 3 µm = 1.511 V

    The 1 µm curve crosses output = input at 0.837 V. This is its switching threshold.

  4. Input voltage v(in) 872.2 mVv(y1), PMOS 1 µm = 409 mV · v(y2), PMOS 2 µm = 872.2 mV · v(y3), PMOS 3 µm = 1.127 V

    The 2 µm curve switches at 0.872 V. A stronger PMOS holds the output up for longer.

  5. Input voltage v(in) 893.1 mVv(y1), PMOS 1 µm = 199.1 mV · v(y2), PMOS 2 µm = 631.8 mV · v(y3), PMOS 3 µm = 893.1 mV

    The 3 µm curve switches at 0.893 V. Three times the PMOS width moved the threshold by 56 mV.

  6. Input voltage v(in) 988.9 mVv(y1), PMOS 1 µm = 37.15 mV · v(y2), PMOS 2 µm = 73 mV · v(y3), PMOS 3 µm = 114.8 mV

    On the middle curve the slope is −1 again at 0.989 V. This input is VIH. The output there is 0.073 V, which is VOL.

Read the plot as a table
Input voltage v(in)v(y1), PMOS 1 µmv(y2), PMOS 2 µmv(y3), PMOS 3 µm
0 V1.8 V1.8 V1.8 V
200 mV1.8 V1.8 V1.8 V
300 mV1.8 V1.8 V1.8 V
400 mV1.8 V1.8 V1.8 V
600 mV1.795 V1.797 V1.798 V
742.3 mV1.692 V1.748 V1.766 V
800 mV1.32 V1.629 V1.696 V
837 mV837.1 mV1.287 V1.511 V
872.2 mV409 mV872.2 mV1.127 V
893.1 mV199.1 mV631.8 mV893.1 mV
988.9 mV37.15 mV73 mV114.8 mV
1 V32.74 mV62.95 mV96.3 mV
1.2 V3.085 mV4.702 mV6.323 mV
1.4 V133.3 µV190.3 µV252.9 µV
1.6 V6.412 µV9.44 µV12.64 µV
1.8 V260.6 nV345.9 nV443.9 nV

Measured with ngspice 42 on SKY130 at 1.8 V. The run is the lab of this lesson.

Five Regions Along the Curve

A transfer curve plots the output of a gate against a slowly changing input. G9.1 read one switching point from it. The curve holds more: it has five regions.

Which Transistor Does What Along the CurveThe same inverter in five input ranges. A transistor is off, works as a current source, or works as a resistor.
Which transistor does what along the curveVDD1.8 VMPMNinout
  1. VDD · supply1.8 Vvdd → VDD
  2. MP · PMOS transistorgate → n1 · source → VDD · drain → n2
  3. MN · NMOS transistorgate → n1 · drain → n2 · source → 0
  4. gnd · groundgnd → 0
  5. in · portterminal → n1
  6. out · portterminal → n2
  1. Region A: the input is low

    MN is off. MP is fully on and works as a small resistor to VDD. The output sits at the supply and no current flows.

  2. Region B: MN starts to conduct

    MN is on weakly and works as a current source. MP is still a resistor, so the output drops only a little. The first unity-gain point lies here.

    small current

  3. Region C: both are current sources

    Both transistors are saturated. A tiny change of the input moves the output a long way. The supply current peaks here: 28.5 µA with a 2 µm PMOS.

    peak current

  4. Region D: MP runs out of drive

    MP is on weakly and works as a current source. MN is now a resistor to ground, so the output is near 0 V. The second unity-gain point lies here.

    small current

  5. Region E: the input is high

    MP is off. MN is fully on and holds the output at ground. Again no current flows.

Read the circuit as text
  • MP PMOS transistor: gate → n1, source → VDD, drain → n2
  • MN NMOS transistor: gate → n1, drain → n2, source → 0
  • in port: terminal → n1
  • out port: terminal → n2

Current flows from VDD to ground only in regions B, C and D, while both transistors conduct.

RegionNMOSPMOSOutput
Aoffresistorat the supply
Bcurrent sourceresistorfalls slowly
Ccurrent sourcecurrent sourcefalls steeply
Dresistorcurrent sourcefalls slowly
Eresistoroffat ground

The textbook names: "current source" is the saturation region, "resistor" is the linear region.

In region C the inverter is an amplifier. On the middle curve the steepest slope is -11.9. A change of 10 mV at the input moves the output by more than 100 mV.

The Switching Threshold Follows the Width Ratio

The switching threshold is the input voltage at which the output equals the input. It lies in region C, where the two currents are equal.

A wider PMOS carries more current at the same gate voltage. The NMOS then needs a higher input to match it. So a wider PMOS moves the threshold up.

PMOS / NMOS widthThresholdVILVIHLow marginHigh margin
1 µm / 1 µm0.837 V0.703 V0.939 V0.634 V0.811 V
2 µm / 1 µm0.872 V0.742 V0.989 V0.669 V0.759 V
3 µm / 1 µm0.893 V0.766 V1.019 V0.692 V0.728 V
4 µm / 1 µm0.906 V0.783 V1.035 V0.712 V0.711 V
8 µm / 1 µm0.945 V0.825 V1.093 V0.756 V0.652 V

Measured at 1.8 V. The first three rows are the lab. The margins are explained in the next section.

The move is small. Doubling the PMOS adds 35 mV. Going from 1 µm to 8 µm adds 108 mV. The threshold depends on the ratio only weakly.

The lower rows also show that the threshold can pass 0.9 V. A threshold at half the supply is a choice, not a law.

Noise Margins from the Unity-Gain Points

Noise is any unwanted voltage on a wire. A gate must not pass it on larger than it came in. Where the slope of the curve is flatter than −1, noise shrinks. Where it is steeper, noise grows.

The two points with a slope of exactly −1 are the unity-gain points. They mark the ends of the safe input ranges.

Two Gates and the Noise Between ThemThe levels of the 2 µm / 1 µm inverter. The driver guarantees its output levels. The receiver states the input levels it accepts.
  • I/O
  • Interconnect
  • Source
  • Data
CallValueReturnWaiting
Two gates and the noise between themThe levels of the 2 µm / 1 µm inverter. The driver guarantees its output levels. The receiver states the input levels it accepts. io Driver output 1: at least 1.748 V.0: at most 0.073 V interconnect Wire carries the level source Noise coupling, supply ripple io Receiver input 1: at least 0.989 V.0: at most 0.742 V levellevel + noiseadds
  1. io Driver output1: at least 1.748 V. 0: at most 0.073 V
    • level → Wire
  2. interconnect Wirecarries the level
    • level + noise → Receiver input
  3. source Noisecoupling, supply ripple
    • adds → Wire
  4. io Receiver input1: at least 0.989 V. 0: at most 0.742 V
  1. A logic 0 on the wire

    The driver sends at most 0.073 V. The receiver accepts up to 0.742 V as a 0. The gap is the low noise margin: 0.669 V.

    Follow the calls, values and waits
    1. data level: Driver output → Wire
    2. data level: Wire → Receiver input
  2. A logic 1 on the wire

    The driver sends at least 1.748 V. The receiver needs 0.989 V or more for a 1. The gap is the high noise margin: 0.759 V.

    Follow the calls, values and waits
    1. data level: Driver output → Wire
    2. data level: Wire → Receiver input
Read the diagram as text
  • Driver output: 1: at least 1.748 V. 0: at most 0.073 V
  • Wire: carries the level
  • Noise: coupling, supply ripple
  • Receiver input: 1: at least 0.989 V. 0: at most 0.742 V
  • Driver output → Wire: level
  • Wire → Receiver input: level + noise
  • Noise → Wire: adds

Low margin = VIL − VOL. High margin = VOH − VIH. Noise smaller than the margin is not passed on.

Widening the PMOS trades one margin for the other. At 1 µm the margins are 0.634 V and 0.811 V. At 4 µm they are 0.712 V and 0.711 V: almost equal.

A chain of gates is as safe as its smaller margin. So the best ratio for noise is the one that makes the two margins equal.

A Lower Supply Shrinks Every Margin

Chips lower the supply to save power. The transfer curve keeps its shape, but every level scales down with it.

DC sweepThe Same Inverter on Three SuppliesPMOS 2 µm, NMOS 1 µm. The supply is 1.8 V, 1.2 V or 0.9 V. The input sweeps to 1.8 V in each case.
  • v(ya), 1.8 V
  • v(yb), 1.2 V
  • v(yc), 0.9 V
00.5 V1.0 V1.5 V2.0 VOutput voltage00.2 V0.4 V0.6 V0.8 V1.0 V1.2 V1.4 V1.6 V1.8 VInput voltage v(in)1.8 V: threshold 0.872 V1.2 V: threshold 0.606 V0.9 V: threshold 0.488 V00.5 V1.0 V1.5 V2.0 VOutput voltage00.5 V1.0 V1.5 VInput voltage v(in)1.8 V: threshold 0.872 V1.2 V: threshold 0.606 V0.9 V: threshold 0.488 V
  1. Input voltage v(in) 488.3 mVv(ya), 1.8 V = 1.8 V · v(yb), 1.2 V = 1.198 V · v(yc), 0.9 V = 488.4 mV

    On 0.9 V the inverter switches at 0.488 V. Its margins are 0.422 V low and 0.331 V high.

  2. Input voltage v(in) 605.9 mVv(ya), 1.8 V = 1.797 V · v(yb), 1.2 V = 605.9 mV · v(yc), 0.9 V = 2.028 mV

    On 1.2 V it switches at 0.606 V. Its margins are 0.521 V and 0.499 V.

  3. Input voltage v(in) 872.2 mVv(ya), 1.8 V = 872.2 mV · v(yb), 1.2 V = 112.2 µV · v(yc), 0.9 V = 370.5 nV

    On 1.8 V it switches at 0.872 V. Its margins are 0.669 V and 0.759 V.

Read the plot as a table
Input voltage v(in)v(ya), 1.8 Vv(yb), 1.2 Vv(yc), 0.9 V
0 V1.8 V1.2 V900 mV
200 mV1.8 V1.2 V900 mV
400 mV1.8 V1.2 V896.8 mV
488.3 mV1.8 V1.198 V488.4 mV
600 mV1.797 V677.3 mV2.517 mV
605.9 mV1.797 V605.9 mV2.028 mV
800 mV1.629 V590.7 µV3.285 µV
872.2 mV872.2 mV112.2 µV370.5 nV
1 V62.95 mV9.02 µV10.28 nV
1.2 V4.702 mV135.4 nV1.388 nV
1.4 V190.3 µV2.064 nV1.029 nV
1.6 V9.44 µV1.237 nV890.6 pV
1.8 V345.9 nV1.296 nV872.5 pV

Measured with ngspice 42 on SKY130. Each copy has its own supply source.

SupplyThresholdLow marginHigh marginSteepest slopePeak supply current
1.8 V0.872 V0.669 V0.759 V-11.928.5 µA
1.2 V0.606 V0.521 V0.499 V-12.9406.2 nA
0.9 V0.488 V0.422 V0.331 V-12.620.8 nA

Measured: PMOS 2 µm, NMOS 1 µm. The peak current is the largest current from the supply during the sweep.

The slope stays near -13, so the gate still restores levels. The margins fall with the supply. On 0.9 V the high margin is 0.331 V, less than half its value on 1.8 V.

The current through both transistors falls much faster: from 28.5 µA to 20.8 nA. Near 0.9 V the transistors are barely on in region C. G9.9 returns to this current.

Asked in interviews
  1. How are the noise margins of an inverter defined?

    Find the two points of the transfer curve where the slope is −1. Their inputs are VIL and VIH. Their outputs are VOH and VOL. The low margin is VIL − VOL and the high margin is VOH − VIH.

  2. What sets the switching threshold of a CMOS inverter?

    The ratio of the PMOS strength to the NMOS strength, and the supply. A stronger PMOS moves the threshold up. A stronger NMOS moves it down. The dependence on the ratio is weak.

  3. Why does the inverter draw current only in the middle of the curve?

    At the two ends one transistor is off, so no path joins the supply to ground. In regions B, C and D both conduct. The current peaks near the switching threshold.

Try It

Each inverter gives five lines. vm2 = 8.721794e-1 is the threshold of the 2 µm inverter: 0.872 V. vil and vih are the inputs at the unity-gain points. voh and vol are the outputs there.

Work out the margins of inverter 2 by hand: 0.742 − 0.073 = 0.669 V low and 1.748 − 0.989 = 0.759 V high.

Change W=3 to W=4 on the line that starts with XP3, then run. The threshold becomes 0.906 V and the two margins become 0.712 V and 0.711 V.

SPICEngspice 42 · simulator service
Edit the netlist, then run it
Expected measurements: vm1 = 8.370250e-01 vil1 = 7.034968e-01 vih1 = 9.394829e-01 voh1 = 1.750745e+00 vol1 = 6.918122e-02 vm2 = 8.721794e-01 vil2 = 7.423111e-01 vih2 = 9.888794e-01 voh2 = 1.748126e+00 vol2 = 7.297387e-02 vm3 = 8.931425e-01 vil3 = 7.655908e-01 vih3 = 1.018932e+00 voh3 = 1.746750e+00 vol3 = 7.346890e-02

Check Yourself

ConceptWhere on the transfer curve are VIL and VIH read?
ConceptA driver has VOH = 1.70 V and VOL = 0.10 V. The receiver has VIH = 1.00 V and VIL = 0.75 V. What is the high noise margin?
ConceptThe PMOS of an inverter is widened from 1 µm to 3 µm. What does the measured curve do?
ConceptThe supply of an inverter is lowered from 1.8 V to 0.9 V. Which statement matches the measurement?
Predict the outputThe same program with other levels. Predict the exact line: the low margin, then the high margin, in millivolts.
module tb;
  int voh = 1100, vol = 50;   // what the driver guarantees, in mV
  int vih = 700, vil = 500;   // what the receiver needs, in mV
  initial $display("%0d %0d", vil - vol, voh - vih);
endmodule

Common Mistakes

Wrong Read the noise margins at the switching threshold.

At the threshold the gain is about 12, so noise there is amplified. The margins end earlier, at the unity-gain points.

Fix Take VIL and VIH where the slope of the curve is −1, and VOH and VOL at those same points.

Wrong Subtract the wrong pair: VIH − VOL or VOH − VIL.

Each margin compares one level of the driver with the limit of the receiver on the same side.

Fix Low margin = VIL − VOL. High margin = VOH − VIH.

Before
nml = vih - vol;   // mixes the low and the high side
nmh = voh - vil;
After
nml = vil - vol;   // low side only
nmh = voh - vih;   // high side only

Wrong Expect a PMOS twice as wide to move the threshold to half the supply.

The threshold moves slowly with the ratio: from 0.837 V at 1 µm to 0.872 V at 2 µm. It reaches 0.906 V at 4 µm.

Fix Measure the threshold for the ratio you chose. Do not assume it.

Wrong Widen the PMOS until the low margin is as large as possible.

Every step that adds to the low margin takes from the high one. At 8 µm the high margin is down to 0.652 V.

Fix Size for the smaller of the two margins. Here they are equal near a ratio of 4.

Remember

  • The transfer curve has five regions. Both transistors conduct only in the middle three.
  • The switching threshold is where output equals input. A wider PMOS moves it up, slowly.
  • VIL and VIH are the inputs where the slope is −1.
  • Low margin = VIL − VOL. High margin = VOH − VIH.
  • A lower supply scales the curve down and shrinks both margins.

Practice

Report a problem with this page