C641 of 57
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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 Cc is 2.2 pF.
  • The output settles cleanly, with slight overshoot: about 65° of phase margin.
  • Shrink Cc 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 gm1 = 0.1 mS, gm6 = 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)?

Name it

The circuit

  • First stage: NMOS pair M1, M2 with tail current I5, PMOS mirror load M3, M4. Gain A1=gm1(ro2∥ro4).
  • Second stage: PMOS common source M6 with an NMOS current source M7 (here an ideal current source) carrying I7. Gain A2=gm6(ro6∥ro7).
  • Compensation: Cc 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 (M1) is the inverting input, because the second stage inverts.

Performance

A0=A1A2GBW=gm12πCcf2≈gm62πCL

Slew rate: the smaller of I5/Cc (the first stage charging Cc) and I7/(CL+Cc) (the second stage charging the load).

Systematic offset: for the first stage's output to sit exactly at the voltage that makes M6 carry I7, the current densities must match: (W/L)6(W/L)4=2(W/L)7(W/L)5.

Output swing: from about vOV7 to VDD−vOV6, nearly rail to rail.

Power: VDD(I5+I7), plus the bias circuit.

A design procedure

  1. Choose Cc from the load for the phase margin: Cc≈2.2gm1gm6CL for about 65°.
  2. Set I5 from the slew rate: I5=SR⋅Cc.
  3. Set gm1 from the GBW: gm1=2πGBW⋅Cc, which fixes the input pair's overdrive, vOV=I5/gm1.
  4. Set gm6 (and I7) to put f2 where step 1 assumed.
  5. Check the gain, swing, common-mode range and power.

Worked example

Analyze a design with a 20 µA tail, I7 = 100 µA, all overdrives 0.2 V, λ = 0.05 V⁻¹, CL = 10 pF and a 3.3 V supply.

Show the solution
  1. First stage. gm1=2×10μA0.2V=0.1mS and ro2∥ro4 = 1 MΩ, so A1 = 100.
  2. Second stage. gm6 = 1 mS and ro6∥ro7 = 100 kΩ, so A2 = 100.
  3. DC gain. A0=104, 80 dB.
  4. Compensation. Cc=2.2×0.1×10pF=2.2pF gives GBW = 7.2 MHz and f2 = 15.9 MHz: 66° of margin.
  5. Slew rate. Internally 20μA2.2pF = 9.1 V/µs, and at the output 100μA12.2pF = 8.2 V/µs, so 8.2 V/µs.
  6. Power. 0.40 mW.

Answer a gain of 104 (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 Cc, the tail current and the first stage's overdrive, assuming gm6=10gm1.

Show the solution
  1. Compensation capacitor. Cc=0.22×5pF=1.1pF
  2. Tail current. The slew rate sets it: 10V/μs×1.1pF=11μA
  3. Input transconductance. The GBW sets it: gm1=2π×10MHz×1.1pF=69μS
  4. Overdrive. vOV=11μA69μS=0.16V

Answer Cc = 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, I7 = 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
  1. Lowest output. It can fall until M7, the current sink, runs out of overdrive at 0.2 V.
  2. 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.
  3. Power. The supply carries 20 + 100 = 120 µA (plus the bias reference), so 3.3V×120μA=0.40mW
  4. 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 gm1 = 0.05 mS with 0.5 MΩ at the first stage's output, and gm6 = 5 mS with 0.5 MΩ at the second's. What is its DC gain in dB?

Check

What Cc puts the second pole at 2.2 × GBW for gm1 = 0.05 mS, gm6 = 0.75 mS and CL = 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, Cc = 0.5 pF, I7 = 500 µA and CL = 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 Cc = 0.5 pF must have GBW = 1 MHz. What gm1 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 Cc = 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 (W/L)4 = 2, (W/L)5 = 4 and (W/L)7 = 40 (same lengths, in µm of width), how wide must M6 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 CL = L, with Cc = 0.22L and gm6=kgm1.

Step 1

What's Cc?

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°.

Explain why

Why does a two-stage op amp need a compensation capacitor when a single-stage OTA driving a capacitor doesn't?

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.