Diode-Connected and Triode Loads, and the Inverter as an Amplifier

Put three transistor loads on one driver at the same current. Measure the gain each gives and what each costs.

You Will Be Able To

  • Predict the gain of a diode-loaded stage from two transconductances and the body effect.
  • Explain why a triode load gives more gain over a smaller input range.
  • Find the gain of a self-biased inverter from the gm and ro of both devices.
  • Measure how the bias current and gain of an inverter amplifier follow its supply.
Lesson
E9.4
Time
35 min
Runs on
ngspice
Check
5 questions

An inverter with a feedback resistor made a cheap amplifier that drew 10.1 µA at 1.8 V. With the supply 10 % off, it drew 28.5 µA at 1.98 V and 2.3 µA at 1.62 V.

DC sweepThe Bias Current of an Inverter Amplifier Follows Its SupplyNMOS 10/1 and PMOS 13/1 with 100 MΩ from output to input.
010 µA20 µA30 µA40 µA50 µABias current1.5 V1.6 V1.7 V1.8 V1.9 V2.0 V2.1 VSupply−10 %nominal+10 %2.3 µA10.1 µA28.5 µA010 µA20 µA30 µA40 µA50 µABias current1.6 V1.8 V2.0 VSupply−10 %nominal+10 %2.3 µA10.1 µA28.5 µA
Read the plot as a table
Supplybias current
1.5 V735.4 nA
1.6 V1.939 µA
1.7 V4.714 µA
1.8 V10.1 µA
1.9 V18.86 µA
2 V31.27 µA
2.1 V47.29 µA

Twelve times more current from one end of the supply range to the other.

Nothing but the supply sets this current. Each simple load in this lesson has a cost like this one.

Gain as a Ratio of Transconductances

Three Loads and What Sets Each GainArrows run from the driver to each load, then to what sets its gain.
  • Device
  • Load
  • Neutral
  • Structure
  • Analysis
Three loads and what sets each gainArrows run from the driver to each load, then to what sets its gain. device Driver M1 NMOS 10/1, about 10µA load Diode load gain 1.51 load Triode load gain 20.3 device Inverter gain 231.9 neutral A ratio of twotransconductances driver over load neutral A trioderesistance 127 kΩ neutral Twotransconductancesthat add into 800 kΩ stage Astage Cstage Eset by sizesset by the supplyboth devices amplify
  1. device Driver M1NMOS 10/1, about 10 µA
    • stage A → Diode load
    • stage C → Triode load
    • stage E → Inverter
  2. load Diode loadgain 1.51
    • set by sizes → A ratio of two transconductances
  3. neutral A ratio of two transconductancesdriver over load
  4. load Triode loadgain 20.3
    • set by the supply → A triode resistance
  5. neutral A triode resistance127 kΩ
  6. device Invertergain 231.9
    • both devices amplify → Two transconductances that add
  7. neutral Two transconductances that addinto 800 kΩ
  1. Diode load

    The gain is gm1/(gm2 + gmb2). Sizes set this ratio, and it is low: 1.51.

  2. Triode load

    The load acts as a resistor of 127 kΩ. The gain is 20.3, but that resistance follows the supply.

  3. Inverter

    The input drives both gates, so gmn and gmp add. They work into 800 kΩ: a gain of 231.9.

Read the diagram as text
  • Driver M1: NMOS 10/1, about 10 µA
  • Diode load: gain 1.51
  • Triode load: gain 20.3
  • Inverter: gain 231.9
  • A ratio of two transconductances: driver over load
  • A triode resistance: 127 kΩ
  • Two transconductances that add: into 800 kΩ
  • Driver M1 → Diode load: stage A
  • Driver M1 → Triode load: stage C
  • Driver M1 → Inverter: stage E
  • Diode load → A ratio of two transconductances: set by sizes
  • Triode load → A triode resistance: set by the supply
  • Inverter → Two transconductances that add: both devices amplify

Each load has a cost: low gain, a narrow input range, or a current set by the supply.

Stage A: An NMOS Diode LoadThe body of M2 is the substrate, at ground. The symbol does not show it.
Stage A: an NMOS diode load+VDD1.8 VM2W/L = 2/1M1W/L = 10/1vin​0.65 Voutout0.859 V
  1. VDD · supply1.8 Vvdd → VDD
  2. M2 · NMOS transistorW/L = 2/1gate → VDD · drain → VDD · source → out
  3. M1 · NMOS transistorW/L = 10/1gate → n1 · drain → out · source → 0
  4. gnd · groundgnd → 0
  5. v_in · voltage source0.65 V+ → n1 · − → 0
  6. g2 · groundgnd → 0
  7. out · portterminal → out
  1. A diode-connected load

    The gate of M2 is tied to its drain. Such a device is always in saturation. Seen from its source it looks like a resistor of 1/(gm2 + gmb2).

  2. Bias

    With 0.65 V on its gate, M1 draws 9.7 µA through M2. The output rests at 0.859 V.

    ID = 9.7 µA

  3. Signal

    M1 turns vin into a current gm1·vin. That current flows in the small resistance of M2, so the gain is about gm1/(gm2 + gmb2).

    gm1·vin

Read the circuit as text
  • M2 NMOS transistor (W/L = 2/1): gate → VDD, drain → VDD, source → out
  • M1 NMOS transistor (W/L = 10/1): gate → n1, drain → out, source → 0
  • v_in voltage source (0.65 V): + → n1, − → 0
  • out port: terminal → out
  • out = 0.859 V

Both transistors carry the same current.

Loadgm1gm of loadgmb of loadgm1/gm2With gmb, gdsAC run
NMOS diode 2/1, body at ground168.1 µS94.8 µS15.0 µS1.771.5091.512
PMOS diode 4/1, own well164.3 µS69.9 µSnone2.352.3102.319

Both at 0.65 V of input. The last two columns agree within 0.4 %.

The body effect costs stage A 15 % of its gain. The output is the source of M2, and its body stays at ground.

Stage B of the lab uses a PMOS diode load. It sits in its own well, tied to its source, so it has no gmb term. Its gain is the ratio of an NMOS gm to a PMOS gm, so the two mobilities enter as well as the sizes. The lab measures 2.32 for stage B.

Why It Is Linear and Low

DC sweepThree Loads on the Same DriverAll three carry about 10 µA at 0.65 V of input.
  • A: diode load
  • C: triode load
  • D: inverter
00.5 V1.0 V1.5 V2.0 VOutput voltage0.4 V0.5 V0.6 V0.7 V0.8 V0.9 V1.0 VInput voltagebias, 0.65 V00.5 V1.0 V1.5 V2.0 VOutput voltage0.4 V0.6 V0.8 V1.0 VInput voltagebias, 0.65 V
  1. Input voltage 650 mVA: diode load = 859.4 mV · C: triode load = 1.216 V · D: inverter = 1.426 V

    At the bias point the slopes are 1.51, 20.4 and 177, in the order A, C, D.

  2. Input voltage 700 mVA: diode load = 776.7 mV · C: triode load = 53.7 mV · D: inverter = 22.67 mV

    Only 50 mV later the triode stage sits at 54 mV and the inverter at 23 mV. Both have lost their gain.

  3. Input voltage 850 mVA: diode load = 474.8 mV · C: triode load = 17.8 mV · D: inverter = 751.4 µV

    The diode stage still amplifies. Its slope is 1.98 at 0.75 V and 2.11 at 0.85 V, while its current rises from 39 µA toward 124 µA.

Read the plot as a table
Input voltageA: diode loadC: triode loadD: inverter
400 mV1.121 V1.799 V1.8 V
500 mV1.033 V1.783 V1.798 V
600 mV927.9 mV1.63 V1.774 V
650 mV859.4 mV1.216 V1.426 V
700 mV776.7 mV53.7 mV22.67 mV
800 mV580.1 mV22.77 mV2.232 mV
850 mV474.8 mV17.8 mV751.4 µV
900 mV371 mV14.68 mV261.6 µV
1 V235.1 mV10.98 mV30.87 µV

More gain means a smaller input range.

In the square law, gm = √(2·µCox·(W/L)·ID). Both devices of stage A carry the same current, so the current cancels in the ratio. The gain is √((W/L)1/(W/L)2) = 2.24, less the body effect.

The run agrees once M1 is in strong inversion. From 0.75 V to 0.9 V the gain stays between 1.98 and 2.11. At the 10 µA bias M1 is in moderate inversion, and the gain is 1.51.

The gain is low because it grows only with the square root of the size ratio. A load a quarter as wide (0.5/1) raises the gain from 1.51 to 3.28. The output then rests 0.19 V lower, because the narrow load needs more gate voltage.

The Triode Load

Stage C uses a PMOS with its gate at ground. It is always on and works in the triode region, as a resistor made from a transistor.

Stage C at 0.65 VValue
Current10.0 µA
Drop across the load0.584 V
Small-signal resistance ron of the load127 kΩ
gm1·(ron ‖ ro1)19.8
Gain from the AC run20.3

The formula uses the operating-point values and lands 2.4 % under the run.

A poly resistor of 127 kΩ would need about 390 squares of the film in E9.3. This load is one small transistor.

The cost shows in the transfer plot. The load resistance depends on VDD − |Vth| and on the process. The gain also collapses once M1 leaves saturation, 50 mV above the bias point.

The Inverter as an Amplifier

Stage E: A Self-Biased InverterRF sets the bias. CC keeps the DC level of the source away.
Stage E: a self-biased inverter+VDD1.8 VM2W/L = 13/1M1W/L = 10/1RF​100 MΩCC​1 µFvin​outin0.653 Vout0.653 V
  1. VDD · supply1.8 Vvdd → VDD
  2. M2 · PMOS transistorW/L = 13/1gate → in · source → VDD · drain → out
  3. M1 · NMOS transistorW/L = 10/1gate → in · drain → out · source → 0
  4. gnd · groundgnd → 0
  5. R_F · resistor100 MΩpin 1 → out · pin 2 → in
  6. C_C · capacitor1 µFpin 1 → in · pin 2 → n1
  7. v_in · voltage source+ → n1 · − → 0
  8. g2 · groundgnd → 0
  9. out · portterminal → out
  1. Self-bias

    No DC current flows in RF, so the input rests at the output voltage. The stage settles where its transfer curve crosses Vout = Vin: 0.653 V and 10.1 µA.

    I = 10.1 µA

  2. Both devices amplify

    A rising input makes M1 pull down harder and M2 pull up less. Both changes move the output the same way, so the transconductances add.

    (gmn + gmp)·vin

Read the circuit as text
  • M2 PMOS transistor (W/L = 13/1): gate → in, source → VDD, drain → out
  • M1 NMOS transistor (W/L = 10/1): gate → in, drain → out, source → 0
  • R_F resistor (100 MΩ): pin 1 → out, pin 2 → in
  • C_C capacitor (1 µF): pin 1 → in, pin 2 → n1
  • v_in voltage source: + → n1, − → 0
  • out port: terminal → out
  • in = 0.653 V
  • out = 0.653 V

The same two transistors as a logic inverter, held at the steep point of the curve.

In E3.3 the PMOS is a current source with a fixed gate, and only the NMOS amplifies. Here the input drives both gates.

Stage E at 1.8 VValue
gmn173.2 µS
gmp116.8 µS
ron ‖ rop ‖ RF800 kΩ
(gmn + gmp)·(ron ‖ rop ‖ RF)231.9
Gain from the AC run231.9

The PMOS adds 67 % to the transconductance for no extra current.

Supply Sensitivity

DC sweepThe Gain of the Self-Biased Inverter Against Its SupplyGain from the operating point: (gmn + gmp)·(ron ‖ rop ‖ RF).
180190200210220230240Gain1.5 V1.6 V1.7 V1.8 V1.9 V2.0 V2.1 VSupply−10 %nominal+10 %180190200210220230240Gain1.6 V1.8 V2.0 VSupply−10 %nominal+10 %
Read the plot as a table
Supplygain
1.5 V190.3
1.6 V214.9
1.7 V230.9
1.8 V231.9
1.9 V220.3
2 V202.7
2.1 V184.2

The gain moves far less than the current in the first figure.

SupplyBias currentGain, AC run
1.62 V2.33 µA219.0
1.80 V10.10 µA231.9
1.98 V28.50 µA206.4

A supply change of ±10 %.

The supply is the only thing that sets the two gate drives, so the current follows it steeply. With more current gm rises and ro falls, so the gain changes little.

The current sets the power, the bandwidth and the noise, and here all three move with the supply. The mirror load of E3.3 takes its current from a reference.

Asked in interviews
  1. What is the gain of a common-source stage with a diode-connected load?

    About −gm1/gm2, a ratio of two transconductances. With equal currents the square law gives √((W/L)1/(W/L)2). A mobility ratio joins it if the devices differ in type. An NMOS load with its body at ground loses more: the gain is gm1/(gm2 + gmb2).

  2. Why is that gain low?

    It grows with the square root of the size ratio. A higher ratio also needs a larger gate voltage on the load, which uses up the output range. Here a load four times narrower raised the gain from 1.51 to 3.28.

  3. Why does an inverter have more gain than a current-source-loaded stage at the same current?

    The input drives both gates, so both devices amplify. The gain is (gmn + gmp)·(ron ‖ rop). Here the PMOS adds 67 % to the transconductance.

  4. What is the weak point of the inverter amplifier?

    Its bias current is set by the supply alone. Here ±10 % of supply moves the current from 2.3 µA to 28.5 µA. Supply noise also reaches the output, because the PMOS source is the supply.

Try It

Part 1 sweeps the input and reads each stage at 0.65 V. It also finds where the inverter's output equals its input.

Part 2 builds each gain from the operating-point values: gm, gmb and gds. Part 4 measures the same gains with an AC run.

Part 3 sweeps the supply of the self-biased inverter. No input source is needed: RF finds the bias at every supply value.

Predict before each change. Tie the body of XM2A to oa: where does gain_a land? Set RF to 1meg: what happens to gain_180?

SPICEngspice 42 · simulator service
Edit the netlist, then run it
Expected measurements: id_a = 9.714265e-06 id_b = 9.432985e-06 id_c = 1.000640e-05 vo_a = 8.594430e-01 vo_b = 5.505675e-01 vo_c = 1.215707e+00 vo_d = 1.426403e+00 v_trip = 6.533675e-01 i_trip = 1.009704e-05 gm1 = 1.680568e-04 gm2_n = 9.483418e-05 gmb2_n = 1.495895e-05 ratio_a = 1.772112e+00 formula_a = 1.508621e+00 gm1_b = 1.642973e-04 gm2_p = 6.991455e-05 ratio_b = 2.349973e+00 formula_b = 2.310358e+00 r_on = 1.271655e+05 formula_c = 1.983443e+01 i_162 = 2.334870e-06 i_180 = 1.009936e-05 i_198 = 2.849787e-05 gmn = 1.731723e-04 gmp = 1.168213e-04 r_out = 7.998393e+05 formula_e = 2.319483e+02 gain_a = 1.512321e+00 gain_b = 2.318505e+00 gain_c = 2.031848e+01 gain_180 = 2.318911e+02 gain_162 = 2.190223e+02 gain_198 = 2.063695e+02

Check Yourself

Predict the outputThe lab prints gain_b = 2.318505e+00 for stage B. Here both of its transistors are doubled with m=2, at the same input. Type the line meas prints (format: gain_b = 1.234567e+00).
* stage B of the lab with both transistors doubled (m=2)
.lib sky130 tt
VDD vdd 0 1.8
VIN in 0 DC 0.65 AC 1
XM1B ob in 0 0 sky130_fd_pr__nfet_01v8 W=10 L=1 m=2
XM2B ob ob vdd vdd sky130_fd_pr__pfet_01v8 W=4 L=1 m=2
.control
ac dec 5 100 10k
meas ac gain_b FIND vm(ob) AT=1k
.endc
.end
ConceptRead the transfer plot. The input rests at 0.70 V, 50 mV above the bias point. Which stage still amplifies?
ConceptA diode-loaded stage in strong inversion has a gain of 2. It must reach 6 at the same current. What does the square law ask for?
ConceptIn stage E the PMOS gate is moved from the input to a fixed bias that keeps the current at 10.1 µA. About what gain is left?
ConceptThe supply of the self-biased inverter rises from 1.8 V to 1.98 V. What does the lab measure?

Common Mistakes

Wrong Write the gain of an NMOS diode-loaded stage as gm1/gm2.

The source of the load moves while its body stays at ground, so gmb2 adds to gm2.

Fix Use gm1/(gm2 + gmb2). In the lab the plain ratio is 1.77 and the measured gain is 1.51.

Wrong Raise the bias current of a diode-loaded stage to get more gain.

Both transconductances rise together, so their ratio stays the same in strong inversion.

Fix Change the size ratio. In the run the gain stays between 1.98 and 2.11 while the current triples.

Wrong Drive a self-biased inverter amplifier straight from a DC source.

The source then sets the input level, and a few millivolts of error times the gain pushes the output to a rail.

Fix Couple the signal through a capacitor. In the lab, 0.650 V on the input leaves the output at 1.43 V, not 0.653 V.

Before
VIN ie 0 DC 0.65 AC 1
RF oe ie 100meg
After
VAC src 0 DC 0 AC 1
CC src ie 1u
RF oe ie 100meg

Remember

  • A diode-loaded stage has a gain of gm1/(gm2 + gmb2): a ratio, set by sizes, low and linear.
  • An NMOS diode load with its body at ground loses gain to the body effect: 1.77 became 1.51 here.
  • A triode load is a small resistor-like transistor: gain 20.3 here, over a narrow input range.
  • A self-biased inverter has a gain of (gmn + gmp)·(ron ‖ rop): 231.9 here.
  • The supply alone sets the inverter's current: 2.3 µA to 28.5 µA over ±10 %.

Practice

Report a problem with this page