C6 · Lesson 41 · A two-stage CMOS op amp
Seven transistors and a capacitor, designed from the specifications
Put together the pieces of this course and you have an op amp. A five-transistor OTA (lesson 7) gives gain and a differential input; a common-source stage with a current-source load (lesson 4) gives more gain and a low-impedance output; a Miller capacitor across the second stage (lesson 39) makes the whole thing stable in feedback. This two-stage CMOS op amp is the most common amplifier in integrated circuits. This lesson analyzes it and shows how its specifications (gain, bandwidth, slew rate, phase margin, power) map onto currents, overdrives and one capacitor.
- A two-stage op amp at transistor level, connected as a follower with a 10 pF load, stepping between 1.5 V and 1.8 V. Its compensation capacitor is 2.2 pF.
- The output settles cleanly, with slight overshoot: about 65° of phase margin.
- Shrink toward 0.3 pF: the response gets faster but rings longer and longer, as the second pole approaches the crossover. Raise it to 10 pF: very stable but slow, limited by slew rate.
Predict
A two-stage op amp has = 0.1 mS, = 1 mS and a 10 pF load. What compensation capacitor puts its second pole at 2.2 times its gain-bandwidth (about 65° of margin)?
2.2 pF. GBW is and the second pole , so their ratio is ; setting it to 2.2 gives . With the second stage's ten times the first's, that's the designer's rule of thumb .
Name it
The circuit
- First stage: NMOS pair , with tail current , PMOS mirror load , . Gain .
- Second stage: PMOS common source with an NMOS current source (here an ideal current source) carrying . Gain .
- Compensation: from the first stage's output to the op amp's output, with an optional nulling resistor.
The input that drives the mirror's diode side () is the inverting input, because the second stage inverts.
Performance
Slew rate: the smaller of (the first stage charging ) and (the second stage charging the load).
Systematic offset: for the first stage's output to sit exactly at the voltage that makes carry , the current densities must match: .
Output swing: from about to , nearly rail to rail.
Power: , plus the bias circuit.
A design procedure
- Choose from the load for the phase margin: for about 65°.
- Set from the slew rate: .
- Set from the GBW: , which fixes the input pair's overdrive, .
- Set (and ) to put where step 1 assumed.
- Check the gain, swing, common-mode range and power.
Worked example
Analyze a design with a 20 µA tail, = 100 µA, all overdrives 0.2 V, λ = 0.05 V⁻¹, = 10 pF and a 3.3 V supply.
Show the solution
- First stage. and = 1 MΩ, so = 100.
- Second stage. = 1 mS and = 100 kΩ, so = 100.
- DC gain. , 80 dB.
- Compensation. gives GBW = 7.2 MHz and = 15.9 MHz: 66° of margin.
- Slew rate. Internally = 9.1 V/µs, and at the output = 8.2 V/µs, so 8.2 V/µs.
- Power. 0.40 mW.
Answer a gain of (80 dB), GBW = 7.2 MHz with 66° of margin, a slew rate of 8.2 V/µs and 0.40 mW of power.
Worked example
A spec asks for GBW = 10 MHz and SR = 10 V/µs into 5 pF. Find , the tail current and the first stage's overdrive, assuming .
Show the solution
- Compensation capacitor.
- Tail current. The slew rate sets it:
- Input transconductance. The GBW sets it:
- Overdrive.
Answer = 1.1 pF, an 11 µA tail and a first-stage overdrive of 0.16 V.
Worked example
The first example's op amp (20 µA tail, = 100 µA, 0.2 V overdrives, 3.3 V supply) has its output stage between M6 and M7. What range can its output cover, and what power does it draw?
Show the solution
- Lowest output. It can fall until M7, the current sink, runs out of overdrive at 0.2 V.
- Highest output. It can rise until M6 does, at 3.3 − 0.2 = 3.1 V: nearly rail to rail, because only one device sits on each side of the output.
- Power. The supply carries 20 + 100 = 120 µA (plus the bias reference), so
- Why two stages. A two-stage design is chosen over a single cascoded stage for exactly that swing; the cascode's stack would have lost several overdrives.
Answer the output covers 0.2 V to 3.1 V, and the amplifier draws 0.40 mW.
Check
A two-stage op amp has = 0.05 mS with 0.5 MΩ at the first stage's output, and = 5 mS with 0.5 MΩ at the second's. What is its DC gain in dB?
Check
What puts the second pole at 2.2 × GBW for = 0.05 mS, = 0.75 mS and = 20 pF?
Write units the way you normally would: 1.5 pF and 0.0015 nF are the same answer.
Check
A two-stage op amp has a 10 µA tail, = 0.5 pF, = 500 µA and = 50 pF. How fast can its output stage slew the load?
Write units the way you normally would: 1.5 V/µs, 1500 mV/µs and 0.0015 kV/µs are the same answer.
Check
A two-stage op amp with = 0.5 pF must have GBW = 1 MHz. What does it need?
Write units the way you normally would: 1.5 µS, 1500 nS and 0.0015 mS are the same answer.
Check
What tail current gives an internal slew rate of 1 V/µs with = 0.5 pF?
Write units the way you normally would: 1.5 µA, 1500 nA and 0.0015 mA are the same answer.
Check
For zero systematic offset, with = 2, = 4 and = 40 (same lengths, in µm of width), how wide must be?
Write units the way you normally would: 1.5 µm, 1500 nm and 0.0015 mm are the same answer.
Check
What power does a two-stage op amp on 3.3 V with a 10 µA tail and 500 µA in its second stage draw (ignoring bias)?
Write units the way you normally would: 1.5 mW, 1500 µW and 0.0015 W are the same answer.
Check
A two-stage CMOS op amp on 3.3 V has a 10 µA tail and 200 µA in its output stage, all overdrives 0.25 V.
(a)
What peak-to-peak output range does it have?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
(b)
What power does it draw, ignoring the bias reference?
Check
A two-stage op amp must reach gain-bandwidth G and slew rate S into = L, with = 0.22L and .
Step 1
What's ?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What tail current does the slew rate need?
Step 3
What does the GBW need?
Step 4
What first-stage overdrive results, ?
Explain why
Why does a two-stage op amp need a compensation capacitor when a single-stage OTA driving a capacitor doesn't?
A single-stage OTA has only one high-impedance node, its output, so with a capacitive load it has one dominant pole and its phase lag never goes much past 90°: it's stable in any feedback connection. A two-stage op amp has two high-impedance nodes, the first stage's output and the final output, each giving a pole at a fairly low frequency. Together they can add 180° of lag while the loop gain is still large, so it would oscillate in a follower. The Miller capacitor across the second stage splits those poles apart, making one very low and pushing the other above the crossover frequency, so the phase lag at crossover stays well short of 180°.
Practice
Keep practicing
11 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.