Biasing a Stage in Practice
Set the operating point of an amplifier stage so that it holds across process corners. Then bring the signal in without disturbing it.
You Will Be Able To
- Explain why a fixed gate voltage does not hold an operating point across corners.
- Choose between a mirror, a replica loop and a feedback resistor to bias a common-source stage.
- Predict the low corner that a coupling capacitor adds, from the resistance it sees.
- Set the current and the gate voltage of a common-gate stage and of a follower.
- Lesson
- E9.8
- Time
- 35 min
- Runs on
- ngspice
- Check
- 5 questions
A common-source stage was biased with a fixed 0.7815 V, which centres its output at 0.90 V in the typical corner. In the sf corner the same voltage puts the output at 0.53 V, and an 80 mV sine flattens at 0.12 V.
- fixed gate voltage
- replica bias
- Time 2.75 µsfixed gate voltage = 1.121 V · replica bias = 1.423 V
Top of the swing: 1.42 V with the replica, 1.12 V with the fixed gate.
- Time 3.25 µsfixed gate voltage = 119.2 mV · replica bias = 321.3 mV
Bottom: the replica stage reaches 0.32 V. The fixed-gate stage flattens at 0.12 V.
Read the plot as a table
| Time | fixed gate voltage | replica bias |
|---|---|---|
| 0 s | 529.6 mV | 900.7 mV |
| 500 ns | 547.9 mV | 918.8 mV |
| 1 µs | 528.8 mV | 899.9 mV |
| 1.5 µs | 547.1 mV | 918 mV |
| 2 µs | 528 mV | 899.1 mV |
| 2.5 µs | 546.3 mV | 917.2 mV |
| 2.75 µs | 1.121 V | 1.423 V |
| 3 µs | 527.2 mV | 898.4 mV |
| 3.25 µs | 119.2 mV | 321.3 mV |
| 3.5 µs | 545.6 mV | 916.5 mV |
| 4 µs | 526.6 mV | 897.7 mV |
The fixed-gate output sits 0.37 V too low, so its lower half has no room.
The transistor changed and the bias did not follow it. A good bias network measures a transistor and sets the gate from that.
Four Ways to Set the Gate
Each stage below is the E3.2 amplifier. The signal enters through C1, so the bias network alone sets the DC gate voltage.
- Source
- Device
- Neutral
- Analysis
- Nothing measured
The fixed voltage holds the gate still. The transistor changes with the corner, so the output level moves.
- A transistor inside
The other three contain a transistor of the same kind. The gate voltage moves with it.
- Level by design
Only the replica loop holds the output level itself.
Read the diagram as text
- Fixed voltage: 0.7815 V from a source
- Current mirror: 25 µA into a diode-connected copy
- Replica loop: an amplifier around a copy
- Feedback resistor: 1 MΩ from drain to gate
- The gate voltage: level moves by 0.63 V
- The current: level moves by 34 mV
- The output level: level does not move
- Drain equal to gate: level moves by 76 mV
- Fixed voltage → The gate voltage: holds
- Current mirror → The current: holds
- Replica loop → The output level: holds
- Feedback resistor → Drain equal to gate: holds
The level is the DC output across the four corners.
Read the circuit as text
- V_B voltage source (0.7815 V): + →
n1, − →0 - R_B resistor (1 MΩ): pin 1 →
n2, pin 2 →n1 - C_1 capacitor (10 pF): pin 1 →
n2, pin 2 →n3 - v_in voltage source: + →
n3, − →0 - M1 NMOS transistor (2/0.15): gate →
n2, drain →n4, source →0 - R_D resistor (36 kΩ): pin 1 →
VDD, pin 2 →n4 - out port: terminal →
n4
Nothing here knows what the transistor does.
| Corner | Output level | Gain |
|---|---|---|
| tt | 0.900 V | 7.31 |
| ss | 1.157 V | 6.59 |
| ff | 0.640 V | 7.25 |
| sf | 0.530 V | 7.40 |
The level moves by 0.63 V.
- M0 finds the voltage
M0 is diode-connected. Its gate settles where it carries exactly IREF, in any corner.
25 µA
- M1 copies it
RB passes that voltage to M1. No DC current flows in RB, so nothing is lost across it.
- The copy is not exact
M1 has 0.86 V on its drain and M0 only 0.79 V. M1 carries 26.2 µA, so the level is 42 mV low.
26.2 µA
Read the circuit as text
- I_REF current source (25 µA): + →
VDD, − →n1 - M0 NMOS transistor (2/0.15): gate →
n1, drain →n1, source →0 - R_B resistor (1 MΩ): pin 1 →
n2, pin 2 →n1 - C_1 capacitor (10 pF): pin 1 →
n2, pin 2 →n3 - v_in voltage source: + →
n3, − →0 - M1 NMOS transistor (2/0.15): gate →
n2, drain →n4, source →0 - R_D resistor (36 kΩ): pin 1 →
VDD, pin 2 →n4 - out port: terminal →
n4
M0 turns a reference current into the right gate voltage.
| Corner | Output level | Gain |
|---|---|---|
| tt | 0.858 V | 7.37 |
| ss | 0.873 V | 7.40 |
| ff | 0.840 V | 7.28 |
| sf | 0.839 V | 7.40 |
The level moves by 34 mV.
- Sense the copy
The amplifier compares the drain of MR with VDD/2.
- Correct the gate
If the drain is too high, the amplifier raises the gate. MR then draws more current and its drain falls.
- Share the gate
M1 gets the same gate voltage and has the same load. Its drain also sits at VDD/2.
Read the circuit as text
- R_DR resistor (36 kΩ): pin 1 →
VDD, pin 2 →n1 - M_R NMOS transistor (2/0.15): gate →
n2, drain →n1, source →0 - amp op-amp: −in →
n3, +in →n1, out →n2 - VDD/2 port: terminal →
n3 - R_B resistor (1 MΩ): pin 1 →
n4, pin 2 →n2 - C_1 capacitor (10 pF): pin 1 →
n4, pin 2 →n5 - v_in voltage source: + →
n5, − →0 - M1 NMOS transistor (2/0.15): gate →
n4, drain →n6, source →0 - R_D resistor (36 kΩ): pin 1 →
VDD, pin 2 →n6 - out port: terminal →
n6
MR and RDR are a copy of the stage. The amplifier is an ideal gain of 1000.
| Corner | Output level | Gain |
|---|---|---|
| tt | 0.901 V | 7.31 |
| ss | 0.901 V | 7.35 |
| ff | 0.901 V | 7.24 |
| sf | 0.901 V | 7.32 |
The level does not move.
- A diode at DC
No DC current flows in RF, so the drain sits at the gate voltage. The stage finds its own VGS.
Read the circuit as text
- R_F resistor (1 MΩ): pin 1 →
n1, pin 2 →n2 - C_1 capacitor (10 pF): pin 1 →
n2, pin 2 →n3 - v_in voltage source: + →
n3, − →0 - M1 NMOS transistor (2/0.15): gate →
n2, drain →n1, source →0 - R_D resistor (36 kΩ): pin 1 →
VDD, pin 2 →n1 - out port: terminal →
n1
No bias network: the stage sets its own gate.
| Corner | Output level | Gain |
|---|---|---|
| tt | 0.796 V | 7.25 |
| ss | 0.828 V | 7.28 |
| ff | 0.764 V | 7.13 |
| sf | 0.752 V | 7.29 |
The level follows VGS and moves by 76 mV.
Why the Fixed Voltage Fails
- Gate voltage 745.5 mVv(out) = 902 mV
The replica loop finds the gate voltage that gives VDD/2 in this corner: 0.746 V.
- Gate voltage 781.5 mVv(out) = 639.7 mV
The fixed voltage was right for tt. Here it lands lower on the curve.
Read the plot as a table
| Gate voltage | v(out) |
|---|---|
| 600 mV | 1.667 V |
| 650 mV | 1.496 V |
| 700 mV | 1.218 V |
| 745.5 mV | 902 mV |
| 750 mV | 869.3 mV |
| 781.5 mV | 639.7 mV |
| 800 mV | 506.6 mV |
| 850 mV | 189.6 mV |
| 900 mV | 90.66 mV |
The curve is steep: 36 mV at the gate moves the output by 0.26 V.
Near the bias point the curve has a slope of about −7. A corner shifts the whole curve sideways with the threshold voltage. A fixed gate voltage cannot follow that shift.
The other three networks each contain a transistor of the same kind. A corner shifts that transistor too, and the gate voltage moves with it.
| Network | What it fixes | What it costs |
|---|---|---|
| Mirror | The current | A reference current; a small copy error |
| Replica | The output level | A second stage and an amplifier |
| Feedback | Drain equal to gate | A level you cannot choose; a loaded input |
The gain stays within ±1.2 % for all three across the four corners.
AC Coupling and Its Corner
The coupling capacitor blocks DC, so the source cannot disturb the bias. It also blocks slow signals. The corner is 1/(2π·R·C1), where R is the resistance from the gate node to AC ground.
- mirror bias
- feedback bias
- Frequency 15.86 kHzmirror bias = 14.37 dB · feedback bias = -1.212 dB
Mirror bias: C1 sees RB = 1 MΩ. The corner is 15.9 kHz.
- Frequency 131.7 kHzmirror bias = 17.32 dB · feedback bias = 14.23 dB
Feedback bias: the corner is 131.7 kHz, 8.3 times higher.
Read the plot as a table
| Frequency | mirror bias | feedback bias |
|---|---|---|
| 100 Hz | -26.62 dB | -45.15 dB |
| 1 kHz | -6.638 dB | -25.15 dB |
| 10 kHz | 11.93 dB | -5.179 dB |
| 15.86 kHz | 14.37 dB | -1.212 dB |
| 100 kHz | 17.28 dB | 12.87 dB |
| 131.7 kHz | 17.32 dB | 14.23 dB |
| 1 MHz | 17.38 dB | 17.17 dB |
| 10 MHz | 17.38 dB | 17.24 dB |
| 100 MHz | 17.38 dB | 17.24 dB |
Same capacitor, same resistor value, two corners.
RF joins the gate to the drain, and the drain moves 7.3 times as far the other way. So RF carries 8.3 times the current of a grounded resistor. Seen from the gate it looks like RF/(1 + |A|), about 121 kΩ.
Biasing a Common Gate
- The sink sets the current
M2 is the output of a mirror. It fixes the current, so the output level is VDD − I·RD = 0.95 V.
23.6 µA
- The divider sets the gate
The gate only needs a quiet DC voltage that leaves both transistors in saturation. CG holds it still for signals.
- The signal enters at the source
The source is a low-resistance node, about 1/gm. CC sees only a few kilohms there.
Read the circuit as text
- R_D resistor (36 kΩ): pin 1 →
VDD, pin 2 →n1 - M1 NMOS transistor (2/0.15): gate →
gate, drain →n1, source →source - M2 NMOS transistor (4/0.5): gate →
n2, drain →source, source →0 - Vbn port: terminal →
n2 - R_1 resistor (100 kΩ): pin 1 →
VDD, pin 2 →gate - R_2 resistor (200 kΩ): pin 1 →
gate, pin 2 →0 - C_G capacitor (10 pF): pin 1 →
gate, pin 2 →0 - C_C capacitor (10 pF): pin 1 →
n3, pin 2 →source - v_in voltage source: + →
n3, − →0 - out port: terminal →
n1
gate= 1.20 Vsource= 0.35 V
Vbn comes from a diode-connected 4/0.5 transistor carrying 25 µA.
The source sits one VGS below the gate, at 0.35 V. The gain from the source to the output is 7.61.
The same 10 pF that gave 15.9 kHz at a gate gives a corner of 3.44 MHz here. A low-resistance node needs a much larger coupling capacitor.
Biasing a Follower
- Current from the sink, level from the gate
M2 fixes the current. The output then sits one VGS below the gate: 1.2 − 0.81 = 0.39 V.
Read the circuit as text
- M1 NMOS transistor (2/0.15): gate →
n1, drain →VDD, source →out - M2 NMOS transistor (4/0.5): gate →
n2, drain →out, source →0 - Vbn port: terminal →
n2 - R_B resistor (1 MΩ): pin 1 →
n1, pin 2 →n3 - 1.2 V port: terminal →
n3 - C_1 capacitor (10 pF): pin 1 →
n1, pin 2 →n4 - v_in voltage source: + →
n4, − →0 - out port: terminal →
out
out= 0.39 V
The gate voltage comes from a 100 kΩ and 200 kΩ divider.
A follower has no gain to protect, so its bias has one job: put the output where the next stage needs it. Here VGS is 0.81 V, more than the 0.78 V of the common-source stage, because the body effect raises the threshold.
The gain is 0.854 and the corner is 14.9 kHz. C1 sees RB plus the divider, 1.07 MΩ.
- common gate
- follower
- Frequency 14.93 kHzcommon gate = -29.64 dB · follower = -4.38 dB
The follower takes its signal at a gate. Its corner is low.
- Frequency 3.443 MHzcommon gate = 14.61 dB · follower = -1.37 dB
The common gate takes its signal at a source. Its corner is 231 times higher.
Read the plot as a table
| Frequency | common gate | follower |
|---|---|---|
| 100 Hz | -73.12 dB | -44.85 dB |
| 1 kHz | -53.12 dB | -24.86 dB |
| 10 kHz | -33.12 dB | -6.457 dB |
| 14.93 kHz | -29.64 dB | -4.38 dB |
| 100 kHz | -13.12 dB | -1.466 dB |
| 1 MHz | 6.528 dB | -1.371 dB |
| 3.443 MHz | 14.61 dB | -1.37 dB |
| 10 MHz | 17.14 dB | -1.37 dB |
| 100 MHz | 17.62 dB | -1.372 dB |
| 1 GHz | 17.59 dB | -1.554 dB |
The node resistance sets the corner.
Asked in interviews
Why not bias a gate from a resistor divider on the supply?
The drain current is a steep function of the gate voltage, and the threshold moves with process and temperature. Here a fixed 0.7815 V moved the output from 0.53 V to 1.16 V across corners. A mirror or a replica moves the gate with the transistor.
What does a replica bias fix that a mirror does not?
A mirror fixes the current, and the drain voltages of its two transistors differ, so the copy is a few percent off. A replica loop has the same load as the stage and servoes its drain. The stage output then sits at the target in every corner.
How do you size a coupling capacitor?
Find the resistance from its node to AC ground and set 1/(2π·R·C) below the lowest signal frequency. A feedback resistor counts as RF/(1 + |A|). A source node counts as about 1/gm.
Try It
The netlist holds the same stage four times. Only the lines that set the gate differ.
The op run gives each output level. The let lines copy those values into the AC plot, because meas reads only vectors of an analysis.
The AC run gives the gain at 10 MHz, in the middle of the band. It also finds the low corner of the mirror and the feedback stage.
Predict before each change. Change .lib sky130 tt to ss, then to ff: which output levels move, and which way? Set RF to 10meg: where does fc_feedback go?
Run the netlist to draw its plots here.
out_fixed = 9.001190e-01 out_mirror = 8.576550e-01 out_replica = 9.007814e-01 out_feedback = 7.956576e-01 vg_mirror = 7.872822e-01 vg_replica = 7.814094e-01 gain_fixed = 7.310775e+00 gain_mirror = 7.366212e+00 gain_replica = 7.309810e+00 gain_feedback = 7.245104e+00 fc_mirror = 1.585857e+04 fc_feedback = 1.312216e+05Check Yourself
Common Mistakes
Wrong Tune a gate voltage in the typical corner and build it from a divider on the supply.
The threshold moves with process, so the same voltage gave 0.53 V at sf and 1.16 V at ss.
Fix Derive the gate voltage from a transistor of the same kind: a mirror, a replica loop or feedback.
R1 vdd g 1.0185meg
R2 g 0 781.5kIREF vdd b 25u
XM0 b b 0 0 sky130_fd_pr__nfet_01v8 W=2 L=0.15
RB b g 1megWrong Size the coupling capacitor of a feedback-biased stage from RF alone.
The gain multiplies the current in RF, so the capacitor sees about RF/(1 + |A|) and the corner is 8.3 times higher.
Fix Divide RF by 1 + |A| first, or bias the gate through a resistor to a quiet node.
Wrong Expect a mirror-biased stage to sit exactly at the level computed from IREF·RD.
The two transistors have different drain voltages, so the copy was 4.7 % high and the level 42 mV low.
Fix Use a replica with the same load when the level matters, or longer transistors when the current matters.
Remember
- A fixed gate voltage does not follow the transistor. Here the output moved from 0.53 V to 1.16 V across corners.
- A mirror fixes the current, a replica loop fixes the output level, and a feedback resistor ties the drain to the gate.
- All three held the gain within ±1.2 % over four corners. The fixed voltage lost 10 % at ss.
- A coupling capacitor adds a corner at 1/(2π·R·C). R is 1 MΩ at a gate, RF/(1 + |A|) with feedback, and about 1/gm at a source.
- A common gate and a follower take their current from a mirror sink. The gate voltage only places the levels.