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.
- v(y1), PMOS 1 µm
- v(y2), PMOS 2 µm
- v(y3), PMOS 3 µm
- 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.
- 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.
- 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.
- 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.
- 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.
- 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 µm | v(y2), PMOS 2 µm | v(y3), PMOS 3 µm |
|---|---|---|---|
| 0 V | 1.8 V | 1.8 V | 1.8 V |
| 200 mV | 1.8 V | 1.8 V | 1.8 V |
| 300 mV | 1.8 V | 1.8 V | 1.8 V |
| 400 mV | 1.8 V | 1.8 V | 1.8 V |
| 600 mV | 1.795 V | 1.797 V | 1.798 V |
| 742.3 mV | 1.692 V | 1.748 V | 1.766 V |
| 800 mV | 1.32 V | 1.629 V | 1.696 V |
| 837 mV | 837.1 mV | 1.287 V | 1.511 V |
| 872.2 mV | 409 mV | 872.2 mV | 1.127 V |
| 893.1 mV | 199.1 mV | 631.8 mV | 893.1 mV |
| 988.9 mV | 37.15 mV | 73 mV | 114.8 mV |
| 1 V | 32.74 mV | 62.95 mV | 96.3 mV |
| 1.2 V | 3.085 mV | 4.702 mV | 6.323 mV |
| 1.4 V | 133.3 µV | 190.3 µV | 252.9 µV |
| 1.6 V | 6.412 µV | 9.44 µV | 12.64 µV |
| 1.8 V | 260.6 nV | 345.9 nV | 443.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.
- 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.
- 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
- 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
- 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
- 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.
| Region | NMOS | PMOS | Output |
|---|---|---|---|
| A | off | resistor | at the supply |
| B | current source | resistor | falls slowly |
| C | current source | current source | falls steeply |
| D | resistor | current source | falls slowly |
| E | resistor | off | at 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 width | Threshold | VIL | VIH | Low margin | High margin |
|---|---|---|---|---|---|
| 1 µm / 1 µm | 0.837 V | 0.703 V | 0.939 V | 0.634 V | 0.811 V |
| 2 µm / 1 µm | 0.872 V | 0.742 V | 0.989 V | 0.669 V | 0.759 V |
| 3 µm / 1 µm | 0.893 V | 0.766 V | 1.019 V | 0.692 V | 0.728 V |
| 4 µm / 1 µm | 0.906 V | 0.783 V | 1.035 V | 0.712 V | 0.711 V |
| 8 µm / 1 µm | 0.945 V | 0.825 V | 1.093 V | 0.756 V | 0.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.
- I/O
- Interconnect
- Source
- Data
- 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
- data level: Driver output → Wire
- data level: Wire → Receiver input
- 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
- data level: Driver output → Wire
- 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.
- v(ya), 1.8 V
- v(yb), 1.2 V
- v(yc), 0.9 V
- 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.
- 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.
- 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 V | v(yb), 1.2 V | v(yc), 0.9 V |
|---|---|---|---|
| 0 V | 1.8 V | 1.2 V | 900 mV |
| 200 mV | 1.8 V | 1.2 V | 900 mV |
| 400 mV | 1.8 V | 1.2 V | 896.8 mV |
| 488.3 mV | 1.8 V | 1.198 V | 488.4 mV |
| 600 mV | 1.797 V | 677.3 mV | 2.517 mV |
| 605.9 mV | 1.797 V | 605.9 mV | 2.028 mV |
| 800 mV | 1.629 V | 590.7 µV | 3.285 µV |
| 872.2 mV | 872.2 mV | 112.2 µV | 370.5 nV |
| 1 V | 62.95 mV | 9.02 µV | 10.28 nV |
| 1.2 V | 4.702 mV | 135.4 nV | 1.388 nV |
| 1.4 V | 190.3 µV | 2.064 nV | 1.029 nV |
| 1.6 V | 9.44 µV | 1.237 nV | 890.6 pV |
| 1.8 V | 345.9 nV | 1.296 nV | 872.5 pV |
Measured with ngspice 42 on SKY130. Each copy has its own supply source.
| Supply | Threshold | Low margin | High margin | Steepest slope | Peak supply current |
|---|---|---|---|---|---|
| 1.8 V | 0.872 V | 0.669 V | 0.759 V | -11.9 | 28.5 µA |
| 1.2 V | 0.606 V | 0.521 V | 0.499 V | -12.9 | 406.2 nA |
| 0.9 V | 0.488 V | 0.422 V | 0.331 V | -12.6 | 20.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
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.
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.
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.
Run the netlist to draw its plots here.
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-02Check Yourself
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.
nml = vih - vol; // mixes the low and the high side
nmh = voh - vil;nml = vil - vol; // low side only
nmh = voh - vih; // high side onlyWrong 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.