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

S2 · Lesson 20 · Designing a two-stage op amp

Gain, bandwidth, phase margin, slew rate and the nulling resistor

The two-stage Miller op amp is the workhorse of CMOS analog design: a differential pair with a mirror load, then a common-source gain stage, with a capacitor across the second stage to split the poles (lesson 13). C6 simulated one at transistor level. This lesson turns it into a design procedure: start from the specifications (gain-bandwidth, phase margin, load capacitance, slew rate), choose the compensation capacitor, size each transistor's transconductance and current by gm/ID, and deal with the right-half-plane zero with a single resistor. Every step is one of the formulas from the last six lessons.

  • The open-loop gain of a two-stage op amp (gm1 = 0.2 mS, gm6 = 2 mS, CL = 5 pF, DC gain 5000) on a Bode plot, with compensation capacitor Cc and a nulling resistor Rz in series with it.
  • With Rz = 0 the right-half-plane zero at gm6/Cc adds phase lag. At Rz=1/gm6 = 0.5 kΩ the zero goes to infinity. Larger still, it becomes a left-half-plane zero that adds phase lead.
  • Raise Cc: the unity-gain frequency falls and the phase margin improves. The readout estimates the phase margin from the poles and the zero.

Predict

A two-stage op amp's right-half-plane zero costs it phase margin. What value of the resistor in series with Cc removes the zero?

Name it

The small-signal design equations

With the first stage gm1 into resistance R1=ro2∥ro4, the second stage gm6 into R2=ro6∥ro7 and load CL:

  • DC gain A0=gm1R1⋅gm6R2=(gm/ID)12λ⋅(gm/ID)62λ with equal λ.
  • Unity-gain frequency ωu=gm1Cc.
  • Second pole p2≈gm6CL (for Cc larger than the internal node's capacitance).
  • Zero z=1Cc(1/gm6−Rz): right half plane for Rz<1/gm6.
  • Phase margin ≈90°−arctan⁡ωup2−arctan⁡ωuz (the zero's term changes sign when it moves to the left half plane).

Slew rate

On a large step the input pair switches fully and its whole tail current charges Cc: SR=ItailCc. The output stage must also supply CL: SR≤I6CL+Cc.

A procedure

  1. From CL and the phase margin, pick p2=kωu (k ≈ 2 to 3 for 60° to 70°), which sets gm6=kgm1CLCc.
  2. Pick Cc (often 0.2 to 0.5 times CL), then gm1=2πGBWCc.
  3. Choose gm/ID for each transistor (high for the input pair, for gain and low noise; moderate for the output) and get the currents.
  4. Check slew rate, swing, gain and noise; iterate.
  5. Choose Rz: at least 1/gm6, or (1+CL/Cc)/gm6 to cancel p2.
  6. Size the mirror and output transistors so their current densities match, avoiding systematic offset.

Worked example

Design for GBW = 30 MHz into CL = 5 pF with p2 = 2.2 GBW. Take Cc = 2 pF, gm/ID = 15 /V for the input pair and 10 /V for the output, and λ = 0.1 V⁻¹.

Show the solution
  1. Input transconductance. gm1=2π×30MHz×2pF=0.377mS
  2. Input current. Each input transistor carries 0.377mS15/V=25µA (tail 50 µA).
  3. Output transconductance. gm6=2.2×2π×30MHz×5pF=2.07mS
  4. Output current. 2.07mS10/V=207µA
  5. Gain. A0=150.2×100.2=75×50=3750 or 71.5 dB.
  6. Slew rate. The input stage gives 50µA2pF=25V/µs
  7. The output stage's limit. It can supply 207µA7pF=30V/µs so the input stage limits the slew rate.

Answer 25 µA in each input transistor (50 µA tail) and 207 µA in the output stage, a gain of 3750 (71.5 dB), and a slew rate of 25 V/µs set by the input stage.

Worked example

For the op amp in the sim with Cc = 1 pF, find the phase margin with Rz = 0, with Rz=1/gm6, and the Rz that cancels the second pole.

Show the solution
  1. Unity-gain frequency and second pole. ωu/2π = 31.8 MHz and p2/2π = 63.7 MHz.
  2. With Rz = 0. The zero is at gm6/Cc (318 MHz), so PM≈90−26.6−5.7=58°
  3. With Rz = 500 Ω. The zero is gone and PM ≈ 63°.
  4. Cancelling p2. That needs Rz=1+52mS=3kΩ then the margin is set by the next, higher pole and approaches 90° in this two-pole model.

Answer about 58° of phase margin with Rz = 0 and 63° with Rz=1/gm6 = 500 Ω; Rz = 3 kΩ cancels the second pole.

Worked example

The two-stage op amp's input stage tail current is 50 µA, and Cc = 1 pF. What is its slew rate, and how long does a 1 V step take to slew?

Show the solution
  1. Slew rate. The tail current is all that can charge Cc: SR=ItailCc=50V/µs
  2. Slewing a 1 V step. This comes before the linear settling even starts: 1V50V/µs=20ns
  3. What helps. Raising GBW by raising gm/ID doesn't help slewing; only more current per Cc does.

Answer the slew rate is 50 V/µs, so a 1 V step takes 20 ns to slew.

Check

A two-stage op amp has gm1 = 0.5 mS and Cc = 0.5 pF. What's its gain-bandwidth?

Write units the way you normally would: 1.5 MHz, 1500 kHz and 0.0015 GHz are the same answer.

Check

The output stage has gm6 = 3 mS and drives 2 pF. Where's the second pole?

Write units the way you normally would: 1.5 MHz, 1500 kHz and 0.0015 GHz are the same answer.

Check

A Miller op amp has gm6 = 1 mS, Cc = 0.5 pF and Rz = 0.2 kΩ. Where's the right-half-plane zero?

Write units the way you normally would: 1.5 MHz, 1500 kHz and 0.0015 GHz are the same answer.

Check

What nulling resistor puts the zero on the second pole, for gm6 = 1 mS, CL = 3 pF and Cc = 2 pF?

Write units the way you normally would: 1.5 kΩ, 1500 Ω and 0.0015 MΩ are the same answer.

Check

A two-stage op amp's input pair has a 100 µA tail and Cc = 0.5 pF. What's its slew rate?

Write units the way you normally would: 1.5 V/µs, 1500 mV/µs and 0.0015 kV/µs are the same answer.

Check

The input pair runs at gm/ID = 10 /V and the output at 6 /V, every transistor with λ = 0.2 V⁻¹. What's the DC gain?

Check

For p2 = 2.2 times the unity-gain frequency, with gm1 = 0.2 mS, CL = 8 pF and Cc = 3 pF, what gm6 is needed?

Write units the way you normally would: 1.5 mS, 1500 µS and 0.0015 S are the same answer.

Check

An op amp's unity-gain frequency is 20 MHz, its second pole 60 MHz and its right-half-plane zero 600 MHz. Estimate its phase margin.

Check

A two-stage op amp's tail current is 50 µA, its compensation capacitor 0.5 pF, and its input pair runs at gm/ID = 20 /V.

(a)

What is its slew rate?

Write units the way you normally would: 1.5 V/µs, 1500 mV/µs and 0.0015 kV/µs are the same answer.

(b)

What is its gain-bandwidth product?

Check

A two-stage op amp has tail current I, compensation capacitor C, and input pair gm/ID = e.

Step 1

What is its slew rate?

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 resistor in series with the compensation capacitor remove the right-half-plane zero?

Practice

Keep practicing

12 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.