HW3 · P2: Two-Stage Op-Amp (Baker Example)

ENEE 411 Homework 3, Problem 2, which describes how the two-stage Miller op-amp operates on short-channel Table 9.2 at VDD = 1 V in a 50 nm process. Stage 1 is the NMOS pair M1/M2 with the PMOS active mirror M3/M4, biased by the cascode tail M6T/M6B; the mirror folds both currents so Gm1 = gm1, giving Av1 = gm1*(ro2||ro4). Stage 2 is a PMOS common-source device M7 with an NMOS cascode sink M8T/M8B, whose high output resistance leaves Rout2 at roughly ro7, so Av2 = gm7*ro7 is about 50, the PMOS intrinsic gain. With the Table 9.2 values (gm = 150 uA/V, ron = 167 k, rop = 333 k), stage 1 comes out near 17 with the simple mirror and stage 2 near 50 with the cascode load, for a total open-loop gain of about 835, or roughly 58 dB. The Miller capacitor Cc splits the poles and sets the dominant one, with fun = gm1/(2pi*Cc), and the nulling resistor Rz = 1/gm7, about 6.7 k, cancels the right-half-plane zero. The 24 slides include a real MOSFET-symbol schematic, a pole-splitting figure, a SPICE .ac and .tran plan, three traps, and two checks.

Subject: Analog CMOS IC Design · 52 slides · diagram-first lesson

Open the interactive version of this deck · Homework for this lesson

What this lesson covers

The lesson, slide by slide

1. HW3 · P2 The Two-Stage Op-Amp

Title

ENEE 411 · Baker example · Lecture 8

Describe how it works: a diff-pair gain stage, a common-source gain stage, and a Miller capacitor with a nulling resistor that together make it fast and stable.

2. What you will be able to do

Objectives

This is the most-built amplifier in analog CMOS, and Lecture 8's multistage template. By the end you can:

3. What survived from HW3 · P1: Differential Amplifier (Baker 22.16)?

Warm-up

Discussion prompt

Before we open HW3 · P2: Two-Stage Op-Amp (Baker Example): without looking back, what was the main idea of HW3 · P1: Differential Amplifier (Baker 22.16), and what could you do by the end of it that you could not do before?

Hint: One sentence for the idea, one for the skill. If the second one is blank, that is the part to revisit.

Answer:

ENEE 411 Homework 3, Problem 1 (Baker 22.16), long-channel Table 9.1. The 5-transistor OTA (NMOS pair 10/2, PMOS active-mirror load 20/2, 10 uA tail) worked in full course notation.

4. Table 9.2 - the short-channel process

Concept

This problem uses the 50 nm short-channel set (Lecture 4a, Table 9.2). The unlabeled NMOS 50/2 and PMOS 100/2 are exactly the table's reference sizes at ID = 10 uA, so we can read the parameters straight off.

parameterNMOSPMOS
VDD1 V1 V
VTH0.28 V0.28 V
VGS / VSG0.35 V0.35 V
gm at ID=10uA150 uA/V150 uA/V
ro at ID=10uA167 kohm333 kohm
gm*ro (intrinsic gain)2550
lambda0.6 /V0.3 /V

Notice the intrinsic gain is small (25, 50) - that is the whole reason this op-amp needs two gain stages. A short-channel device alone cannot make enough gain.

5. Fill in: NMOS for Table 9.2 - the short-channel process

Comparison

Comparison matrix

From Table 9.2 - the short-channel process: refill the NMOS column from what you know. The rest of the table is as it appeared.

parameterNMOSPMOS
VDD1 V1 V
VTH0.28 V0.28 V
VGS / VSG0.35 V0.35 V
gm at ID=10uA150 uA/V150 uA/V
ro at ID=10uA167 kohm333 kohm
gm*ro (intrinsic gain)2550
lambda0.6 /V0.3 /V

6. The circuit, block by block

Concept

Figure (svg): Two-stage op-amp schematic. Left (stage 1): from VDD, two PMOS M3 (diode-connected) and M4 form a current mirror; below them the NMOS input pair M1 (gate vm) and M2 (gate vp) share a tail node fed by a cascode current source M6 (biased by Vbias3 and Vbias4) to ground. The M2/M4 drain is node A. Right (stage 2): node A drives the gate of PMOS M7 whose source is VDD and drain is vout; an NMOS cascode current sink M8 pulls vout to ground. A compensation branch of resistor Rz in series with capacitor Cc connects node A to vout.

Stage 1 (diff pair + mirror) -> node A -> Stage 2 (M7 common-source). Cc + Rz bridge A to vout.

Stage 1 is the active-load diff pair: NMOS input M1/M2, PMOS mirror M3/M4, biased by the cascode tail M6T/M6B. It turns the differential input into a single-ended voltage at node A.

Stage 2 is a PMOS common-source M7 (gate at node A) loaded by the NMOS cascode sink M8T/M8B. It adds a second big slug of gain and produces vout.

Cc in series with Rz bridges node A to vout - that branch is the entire stability story (parts later).

7. What an op-amp needs from each stage

Intuition

Lecture 8's template: an op-amp chains stages with complementary jobs.

Because a short-channel stage makes only a modest gain (~17 with a simple load, up to ~50 with a cascode load), you chain two and multiply to reach a usable open-loop gain.

8. Break it if you can: What an op-amp needs from each stage

Counterexample

Discussion prompt

Lecture 8's template: an op-amp chains stages with complementary jobs.

That is stated as though it always holds. Do one of two things: produce a case where it fails, or say precisely what rules such a case out. "It just does" is not on the menu.

Hint: Hunt at the extremes first — zero, one, negative, empty, equal. If every extreme survives, the reason they survive is the proof.

Answer:

Because a short-channel stage makes only a modest gain (~17 with a simple load, up to ~50 with a cascode load), you chain two and multiply to reach a usable open-loop gain.

9. Rebuild the recipe: Recipe: analyze any two-stage op-amp

Ranking

Put in order

These are the steps of Recipe: analyze any two-stage op-amp, scrambled. Put them back in order before the next slide shows you.

  1. Bias: trace the reference (Fig. 20.47) to each branch current; read gm, ro from Table 9.2.
  2. Stage gains: Av1 = gm1*(ro2||ro4) (simple mirror load); Av2 = gm7*ro7 (cascode sink, so its resistance drops out).
  3. Open-loop gain: Av = Av1 * Av2 (gains multiply).
  4. Uncompensated poles: one at node A, one at vout - dangerously close.
  5. Add Cc: Miller-multiplies at node A, splitting the poles; sets fun = gm1/(2*pi*Cc).
  6. Add Rz = 1/gm7: cancels the right-half-plane zero the feedforward through Cc creates.

Why: This is the order the recipe itself gives. Recalling the sequence without the slide in front of you is the difference between recognising the method and being able to run it — most of what goes wrong in practice is a step done out of turn.

10. Recipe: analyze any two-stage op-amp

Pattern

  1. Bias: trace the reference (Fig. 20.47) to each branch current; read gm, ro from Table 9.2.
  2. Stage gains: Av1 = gm1*(ro2||ro4) (simple mirror load); Av2 = gm7*ro7 (cascode sink, so its resistance drops out).
  3. Open-loop gain: Av = Av1 * Av2 (gains multiply).
  4. Uncompensated poles: one at node A, one at vout - dangerously close.
  5. Add Cc: Miller-multiplies at node A, splitting the poles; sets fun = gm1/(2*pi*Cc).
  6. Add Rz = 1/gm7: cancels the right-half-plane zero the feedforward through Cc creates.

11. Where does it stop working: Recipe: analyze any two-stage op-amp

Edge cases

Discussion prompt

Recipe: analyze any two-stage op-amp works on the cases you have just seen. Push it to the edge: what is the most degenerate input it still handles — empty, zero, one item, everything equal — and what is the first case where it stops being true? Name the case, not just "it breaks".

Hint: Try the smallest legal input, then the largest, then the one where two things collide. Methods are specified at their edges; the middle takes care of itself.

Answer:

  1. Bias: trace the reference (Fig. 20.47) to each branch current; read gm, ro from Table 9.2.
  2. Stage gains: Av1 = gm1*(ro2||ro4) (simple mirror load); Av2 = gm7*ro7 (cascode sink, so its resistance drops out).
  3. Open-loop gain: Av = Av1 * Av2 (gains multiply).
  4. Uncompensated poles: one at node A, one at vout - dangerously close.
  5. Add Cc: Miller-multiplies at node A, splitting the poles; sets fun = gm1/(2*pi*Cc).
  6. Add Rz = 1/gm7: cancels the right-half-plane zero the feedforward through Cc creates.

12. Stage 1 The active-load diff pair

Section

differential to single-ended

13. Guess the shape of the answer: Stage 1 - the mirror's factor of two

Estimation

Predict first

M1's signal current is id = gm1*(vid/2). The diode-connected M3 turns it into a voltage; M4 copies that current and pushes it into node A (Lecture 8). M2 simultaneously pulls its own id from node A.

Commit before you compute: what does Stage 1 - the mirror's factor of two come out to? A rough magnitude and the right form is enough — the point is to have something concrete to be wrong about.

Correct: The two currents add

Why: A prediction you can defend turns the computation into a check rather than a leap of faith — and an answer that contradicts it is caught on the spot. M4 delivers +id and M2 delivers +id into node A, so the node sees 2(gm1vid/2) = gm1*vid.

14. Stage 1 - the mirror's factor of two

Worked example

M1's signal current is id = gm1*(vid/2). The diode-connected M3 turns it into a voltage; M4 copies that current and pushes it into node A (Lecture 8). M2 simultaneously pulls its own id from node A.

The two currents add

Why: M4 delivers +id and M2 delivers +id into node A, so the node sees 2(gm1vid/2) = gm1*vid. The mirror's 'factor of 2' makes the single-ended output carry the FULL pair transconductance with no loss of gain.

\[ G_{m1}=g_{m1}\quad(\text{not } g_{m1}/2) \]

15. Stage 1 - the mirror's factor of two — line by line

Picture it

Animation

Shows: Each line of the worked example "Stage 1 - the mirror's factor of two", appearing one at a time.

The same working the example does, in the order a tutor would write it.

Takeaway: M4 delivers +id and M2 delivers +id into node A, so the node sees 2(gm1vid/2) = gm1*vid. The mirror's 'factor of 2' makes the single-ended output carry the FULL pair transconductance with no loss of gain.

16. What has to be given first: Stage 1 - the gain Av1

Missing information

Discussion prompt

Node A is high-impedance: ro2 (from M2) in parallel with ro4 (from M4). Using Table 9.2 (ro_n = 167 k, ro_p = 333 k):

What do you need to know — or decide — before the first line can be written? List everything the problem has to hand you.

Hint: Anything you would have to invent to get started is a thing the problem must supply.

Answer:

Av1 = gm1*(ro2||ro4) = 150 uA/V * 111 kohm = 16.7. One short-channel stage gives a gain of about 17.

17. Stage 1 - the gain Av1

Worked example

Node A is high-impedance: ro2 (from M2) in parallel with ro4 (from M4). Using Table 9.2 (ro_n = 167 k, ro_p = 333 k):

\[ R_{out1}=r_{o2}\,\|\,r_{o4}=167k\,\|\,333k=\frac{(167)(333)}{500}k=111\,k\Omega \]

Multiply by Gm1 = gm1

Why: Av1 = gm1*(ro2||ro4) = 150 uA/V * 111 kohm = 16.7. One short-channel stage gives a gain of about 17.

\[ A_{v1}=g_{m1}(r_{o2}\,\|\,r_{o4})\approx 16.7 \]

18. Stage 1 - the gain Av1 — line by line

Picture it

Animation

Shows: Each line of the worked example "Stage 1 - the gain Av1", appearing one at a time.

The same working the example does, in the order a tutor would write it.

Takeaway: Av1 = gm1*(ro2||ro4) = 150 uA/V * 111 kohm = 16.7. One short-channel stage gives a gain of about 17.

19. Something is wrong here: halving the first-stage gm

Anomaly

Predict first

A student writes this, and it looks reasonable:

Assuming the single-ended output only gets half the pair's transconductance.

It is wrong. Say what breaks — and say it before you turn the page.

Correct: True for a resistively loaded pair read single-ended - but this pair has an ACTIVE mirror, which folds the other half back in.

The current mirror adds the second half at node A.

Why: True for a resistively loaded pair read single-ended - but this pair has an ACTIVE mirror, which folds the other half back in.

20. Trap: halving the first-stage gm

Trap

The trap

Assuming the single-ended output only gets half the pair's transconductance.

Write Gm1 = gm1/2

Why: True for a resistively loaded pair read single-ended - but this pair has an ACTIVE mirror, which folds the other half back in.

The fix

The current mirror adds the second half at node A.

Write Gm1 = gm1

Why: The mirror's factor of 2 recovers the full transconductance, so Av1 = gm1*(ro2||ro4). This is the whole point of an active load.

21. Stage 2 The common-source booster

Section

and the total gain

22. Complete the line: Stage 2 - the gain Av2

Fill the middle

Fill in the blanks

From Stage 2 - the gain Av2 — finish the line. Write what belongs on the right of the equals sign before you look.

A_g_{m7}\,r_{o7}\approx 50 = ___

Why: Producing the right-hand side unprompted is the difference between recognising this line and being able to use it. Av2 = gm7*ro7 = 150 uA/V * 333 kohm = 50 - the full intrinsic gain gm*ro of the PMOS (Table 9.2).

23. Stage 2 - the gain Av2

Worked example

M7 is a PMOS common-source amp: node A drives its gate, and the NMOS cascode sink M8T/M8B loads its drain. A cascode sink has a very high output resistance (~gm*ro*ro), so it does NOT limit the gain - the output resistance at vout is set by M7's own ro7:

\[ R_{out2}=r_{o7}\,\|\,R_{casc,M8}\approx r_{o7}=333\,k\Omega\quad(R_{casc,M8}\gg r_{o7}) \]

So Av2 reaches the PMOS intrinsic gain

Why: Av2 = gm7*ro7 = 150 uA/V * 333 kohm = 50 - the full intrinsic gain gm*ro of the PMOS (Table 9.2). The cascode sink exists precisely so its resistance does not drag this down. (A simple, non-cascode sink would give ro7||167k and only ~17.)

\[ A_{v2}=g_{m7}\,r_{o7}\approx 50 \]

Note the sign

Why: A common-source stage inverts (negative gain). Stage 1 also inverts, so the op-amp's vp/vm polarities come out correct overall.

24. Stage 2 - the gain Av2 — line by line

Picture it

Animation

Shows: Each line of the worked example "Stage 2 - the gain Av2", appearing one at a time.

The same working the example does, in the order a tutor would write it.

Takeaway: A common-source stage inverts (negative gain). Stage 1 also inverts, so the op-amp's vp/vm polarities come out correct overall.

25. Guess the shape of the answer: Total open-loop gain

Estimation

Predict first

Cascaded voltage gains multiply - the output of stage 1 is the input of stage 2:

Commit before you compute: what does Total open-loop gain come out to? A rough magnitude and the right form is enough — the point is to have something concrete to be wrong about.

Correct: Express in dB

Why: A prediction you can defend turns the computation into a check rather than a leap of faith — and an answer that contradicts it is caught on the spot. 20*log10(835) = 58 dB. Stage 1's simple-mirror load holds it to ~17, but stage 2's cascode load lets it reach the full PMOS intrinsic gain of 50 - so the product is ~835, not the ~280 you'd get treating both loads as simple devices. CONFIRM in SPICE (.ac, no load cap); the exact value depends on the Fig. 20.47 bias current.

26. Total open-loop gain

Worked example

Cascaded voltage gains multiply - the output of stage 1 is the input of stage 2:

\[ A_{OL}=A_{v1}\cdot A_{v2}=16.7\times 50\approx 835 \]

Express in dB

Why: 20*log10(835) = 58 dB. Stage 1's simple-mirror load holds it to ~17, but stage 2's cascode load lets it reach the full PMOS intrinsic gain of 50 - so the product is ~835, not the ~280 you'd get treating both loads as simple devices. CONFIRM in SPICE (.ac, no load cap); the exact value depends on the Fig. 20.47 bias current.

27. Say it in words: Total open-loop gain

Translation

\( A_{OL}=A_{v1}\cdot A_{v2}=16.7\times 50\approx 835 \)

Draw it

Translate both ways. First write the expression above as a sentence with no symbols in it at all. Then cover it, and write your sentence back as notation. If the two versions disagree, the disagreement is the thing to fix.

28. Something is wrong here: adding the stage gains

Anomaly

Predict first

A student writes this, and it looks reasonable:

Treating the cascade as if the gains add because the stages are 'in series'.

It is wrong. Say what breaks — and say it before you turn the page.

Correct: Confuses cascading with summing.

Each stage scales the previous output, so the gains multiply.

Why: Confuses cascading with summing. 17 + 50 = 67 badly under-counts the real gain.

29. Trap: adding the stage gains

Trap

The trap

Treating the cascade as if the gains add because the stages are 'in series'.

Write Av = Av1 + Av2

Why: Confuses cascading with summing. 17 + 50 = 67 badly under-counts the real gain.

The fix

Each stage scales the previous output, so the gains multiply.

Write Av = Av1 * Av2

Why: 17 * 50 = 835 (~58 dB). Multiplying is exactly why two modest stages reach a usable open-loop gain.

30. Break it on purpose: adding the stage gains

Break the constraint

Discussion prompt

The rule this trap just fixed:

Each stage scales the previous output, so the gains multiply.

Now break it on purpose. Build a case that violates it and follow the consequences until something visibly fails. Where does the failure first show up — and would you have noticed it if you had not been looking?

Hint: The dangerous rules are the ones whose violation still produces an answer. If yours fails loudly, try to find one that fails quietly.

Answer:

Confuses cascading with summing. 17 + 50 = 67 badly under-counts the real gain.

31. Compensation Cc and Rz

Section

why it is stable

32. Why it needs compensating

Intuition

Two gain stages means two high-impedance nodes - node A and vout - each with a pole. Uncompensated, those poles sit close together.

In a feedback loop, two nearby poles each add up to 90 degrees of phase lag near the unity-gain frequency. Together they can reach 180 degrees while the gain is still above 1 - which is the recipe for oscillation.

The fix: force one pole to be dominant (far below the others) so the phase has fallen back before the gain reaches unity. That is what Cc does.

33. By analogy: Why it needs compensating

Analogy

Discussion prompt

Explain Why it needs compensating by analogy to something with no Analog CMOS IC Design in it at all — a queue, a recipe, a map, a bank balance, whatever fits. Then say where your analogy breaks.

Hint: An analogy that never breaks is not an analogy, it is the same idea wearing a hat. Find the seam — that is the part that is actually new.

Answer:

Two gain stages means two high-impedance nodes - node A and vout - each with a pole. Uncompensated, those poles sit close together.

34. Miller pole-splitting

Intuition

Figure (svg): Two frequency axes. Top, before compensation: poles p1 and p2 sit close together at a middling frequency. Bottom, after adding Cc: p1 has moved far to the left to a low frequency while p2 has moved far to the right to a high frequency. The poles have split apart, leaving one dominant low-frequency pole.

Cc pushes p1 down and p2 up - one clean dominant pole.

Connect Cc from vout back to node A. Stage 2's gain Av2 makes that capacitor look huge at node A - it appears as Cc*(1+|Av2|) (the Miller effect).

That enormous effective capacitance drags the first pole p1 way down in frequency:

\[ p_1\approx\frac{1}{2\pi R_{out1}(1+A_{v2})C_c} \]

And because Cc now ties the output node's motion to M7's current, the second pole p2 is pushed up to p2 ~ gm7/(2*pi*CL). The poles split - exactly the dominant-pole response we wanted.

35. Break it if you can: Miller pole-splitting

Counterexample

Discussion prompt

Connect Cc from vout back to node A. Stage 2's gain Av2 makes that capacitor look huge at node A - it appears as Cc*(1+|Av2|) (the Miller effect).

That is stated as though it always holds. Do one of two things: produce a case where it fails, or say precisely what rules such a case out. "It just does" is not on the menu.

Hint: Hunt at the extremes first — zero, one, negative, empty, equal. If every extreme survives, the reason they survive is the proof.

36. What has to be given first: The unity-gain (gain-bandwidth) frequency

Missing information

Discussion prompt

With one dominant pole, the gain-bandwidth product is the input transconductance driving the Miller capacitor:

What do you need to know — or decide — before the first line can be written? List everything the problem has to hand you.

Hint: Anything you would have to invent to get started is a thing the problem must supply.

Answer:

gm1 = 150 uA/V. For a representative Cc = 1 pF: fun = 150 uA/V /(2pi1 pF) = 23.9 MHz. Bigger Cc = slower but more stable; Cc is the designer's stability knob.

37. The unity-gain (gain-bandwidth) frequency

Worked example

With one dominant pole, the gain-bandwidth product is the input transconductance driving the Miller capacitor:

\[ f_{un}=\frac{g_{m1}}{2\pi C_c} \]

Put a number on it

Why: gm1 = 150 uA/V. For a representative Cc = 1 pF: fun = 150 uA/V /(2pi1 pF) = 23.9 MHz. Bigger Cc = slower but more stable; Cc is the designer's stability knob.

38. The unity-gain (gain-bandwidth) frequency — line by line

Picture it

Animation

Shows: Each line of the worked example "The unity-gain (gain-bandwidth) frequency", appearing one at a time.

The same working the example does, in the order a tutor would write it.

Takeaway: gm1 = 150 uA/V. For a representative Cc = 1 pF: fun = 150 uA/V /(2pi1 pF) = 23.9 MHz. Bigger Cc = slower but more stable; Cc is the designer's stability knob.

39. Guess the shape of the answer: The nulling resistor Rz

Estimation

Predict first

Cc also lets the input feed forward straight to the output, creating a right-half-plane (RHP) zero at gm7/(2*pi*Cc). A RHP zero adds phase lag - the opposite of what a normal zero does - eating your phase margin.

Commit before you compute: what does The nulling resistor Rz come out to? A rough magnitude and the right form is enough — the point is to have something concrete to be wrong about.

Correct: Choose Rz = 1/gm7

Why: A prediction you can defend turns the computation into a check rather than a leap of faith — and an answer that contradicts it is caught on the spot. Setting Rz = 1/gm7 = 1/(150 uA/V) = 6.67 kohm sends the zero to infinity (the feedforward current exactly cancels M7's forward current).

40. The nulling resistor Rz

Worked example

Cc also lets the input feed forward straight to the output, creating a right-half-plane (RHP) zero at gm7/(2*pi*Cc). A RHP zero adds phase lag - the opposite of what a normal zero does - eating your phase margin.

Put a resistor Rz in series with Cc. The zero moves to:

\[ f_z=\frac{1}{2\pi C_c\left(\tfrac{1}{g_{m7}}-R_z\right)} \]

Choose Rz = 1/gm7

Why: Setting Rz = 1/gm7 = 1/(150 uA/V) = 6.67 kohm sends the zero to infinity (the feedforward current exactly cancels M7's forward current). Make Rz a bit larger and the zero moves into the LEFT half-plane, ADDING phase margin.

41. Work backwards from the answer: The nulling resistor Rz

Reverse engineer

Discussion prompt

Work backwards. The example finished here:

Choose Rz = 1/gm7

What was it asked to do, and what must it have been given? Reconstruct the problem from its answer.

Hint: Every quantity in the result had to enter somewhere. Account for each one.

Answer:

Cc also lets the input feed forward straight to the output, creating a right-half-plane (RHP) zero at gm7/(2*pi*Cc). A RHP zero adds phase lag - the opposite of what a normal zero does - eating your phase margin.

42. Something is wrong here: leaving out Rz

Anomaly

Predict first

A student writes this, and it looks reasonable:

Adding Cc for the dominant pole but omitting Rz.

It is wrong. Say what breaks — and say it before you turn the page.

Correct: The feedforward path through Cc leaves a RHP zero near fun.

Pair Cc with a nulling resistor Rz.

Why: The feedforward path through Cc leaves a RHP zero near fun. It adds phase lag exactly where you need margin - the op-amp rings or is only conditionally stable.

43. Trap: leaving out Rz

Trap

The trap

Adding Cc for the dominant pole but omitting Rz.

Rely on Cc alone

Why: The feedforward path through Cc leaves a RHP zero near fun. It adds phase lag exactly where you need margin - the op-amp rings or is only conditionally stable.

The fix

Pair Cc with a nulling resistor Rz.

Set Rz = 1/gm7 = 6.67 kohm

Why: Cancels the RHP zero, so the phase keeps falling cleanly through unity gain and the phase margin survives. Cc + Rz together are the complete compensator.

44. Which of these survive contact with HW3 · P2: Two-Stage Op-Amp (Baker Example)?

Two truths and a lie

Sort into buckets

Some of these hold up and some are the exact mistakes this lesson is built to prevent. Sort them.

Holds up
Notice the intrinsic gain is small (25, 50) - that is the whole reason this op-amp needs two gain stages. A short-channel device alone cannot make enough gain.; Lecture 8's template: an op-amp chains stages with complementary jobs.; Two gain stages means two high-impedance nodes - node A and vout - each with a pole. Uncompensated, those poles sit close together.
Breaks
Assuming the single-ended output only gets half the pair's transconductance.; Treating the cascade as if the gains add because the stages are 'in series'.
sound
These are stated as this lesson states them — each one survives the edge cases HW3 · P2: Two-Stage Op-Amp (Baker Example) puts it through.
flawed
Each of these is lifted from a trap in this deck: reasonable-sounding, and wrong in a way that only shows up once you rely on it.

45. Describe the operation in SPICE

Concept

The problem says hand calculation AND SPICE. Run three analyses and compare to the hand numbers:

analysiswhat to readexpect
.opnode A and vout DC, branch currentsevery device saturated
.ac (1Hz-1GHz)DC gain, fun, phase margin~58 dB, fun=gm1/(2pi*Cc), PM>60deg
.tran (small step)settling, no ringingclean single-pole settling

Then sweep Rz around 1/gm7 and watch the RHP zero move and the phase margin change - that is the most convincing way to describe the operation.

46. Fill in: expect for Describe the operation in SPICE

Comparison

Comparison matrix

From Describe the operation in SPICE: refill the expect column from what you know. The rest of the table is as it appeared.

analysiswhat to readexpect
.opnode A and vout DC, branch currentsevery device saturated
.ac (1Hz-1GHz)DC gain, fun, phase margin~58 dB, fun=gm1/(2pi*Cc), PM>60deg
.tran (small step)settling, no ringingclean single-pole settling

47. Rule out three: Check: the open-loop gain

Elimination

Eliminate the wrong options

The two-stage open-loop DC gain is closest to:

3 of these 4 are wrong. Strike them one at a time, and say what rules each one out before you strike the next. The survivor is the answer.

  • A. ~835 (58 dB)
  • B. ~280 (49 dB)
  • C. ~67 (37 dB)
  • D. ~17 (25 dB)

Survives elimination: A

Why: Cascaded gains multiply: Av = Av1Av2 = 1750 = 835, i.e. 58 dB. Stage 1's simple mirror caps it at ~17, but stage 2's cascode sink lets that stage reach the full PMOS intrinsic gain gm*ro = 50.

48. Check: the open-loop gain

Check

Stage 1 (simple-mirror load) gives Av1 = gm(ro2||ro4) ~ 17. Stage 2 (cascode sink load) gives Av2 = gm7ro7 ~ 50. What is the op-amp's open-loop DC gain?

Check your understanding

The two-stage open-loop DC gain is closest to:

  • A. ~835 (58 dB) (correct)
  • B. ~280 (49 dB)
  • C. ~67 (37 dB)
  • D. ~17 (25 dB)

Answer: A

Why: Cascaded gains multiply: Av = Av1Av2 = 1750 = 835, i.e. 58 dB. Stage 1's simple mirror caps it at ~17, but stage 2's cascode sink lets that stage reach the full PMOS intrinsic gain gm*ro = 50.

Why B tempts people
Treats the cascode sink M8 as a SIMPLE device (ro8 = 167k), so Av2 = gm7(ro7||167k) ~ 17 and the product is 1717 = 280. The cascode makes the sink resistance >> ro7, so Av2 reaches 50, not 17.
Why C tempts people
Added the stage gains (17+50) instead of multiplying. Cascaded stages multiply because each scales the previous output.
Why D tempts people
That is a single stage. The whole reason for two stages is to multiply two of them together.

49. Rule out three: Check: what Rz cancels

Elimination

Eliminate the wrong options

The nulling resistor Rz = 1/gm7 is there to:

3 of these 4 are wrong. Strike them one at a time, and say what rules each one out before you strike the next. The survivor is the answer.

  • A. Cancel the right-half-plane zero from the Cc feedforward path
  • B. Set the dominant pole frequency
  • C. Increase the DC open-loop gain
  • D. Lower the output resistance of stage 2

Survives elimination: A

Why: Cc lets the input feed forward to the output, making a RHP zero at gm7/(2piCc) that subtracts phase margin. Rz = 1/gm7 pushes that zero to infinity (or into the LHP), restoring the margin.

50. Check: what Rz cancels

Check

The Miller capacitor Cc creates a feedforward path. Why do we add Rz in series with it?

Check your understanding

The nulling resistor Rz = 1/gm7 is there to:

  • A. Cancel the right-half-plane zero from the Cc feedforward path (correct)
  • B. Set the dominant pole frequency
  • C. Increase the DC open-loop gain
  • D. Lower the output resistance of stage 2

Answer: A

Why: Cc lets the input feed forward to the output, making a RHP zero at gm7/(2piCc) that subtracts phase margin. Rz = 1/gm7 pushes that zero to infinity (or into the LHP), restoring the margin.

Why B tempts people
The dominant pole is set by Cc and the Miller effect (p1 ~ 1/(2piRout1Av2*Cc)), not by Rz. Rz only moves the zero.
Why C tempts people
Rz does not change the DC gain - at DC the capacitor Cc is open, so the compensation branch carries no current and the gain is still Av1*Av2.
Why D tempts people
Output resistance of stage 2 is set by ro7 (the cascode sink M8 barely loads it), not by the compensation network. Rz acts on the zero, not the output impedance.

51. Connect it up: HW3 · P2: Two-Stage Op-Amp (Baker Example)

Connect it up

Draw it

One page, no notation unless you need it: draw how these connect — Stage 1 The active-load diff pair · Stage 2 The common-source booster · Compensation Cc and Rz. Put an arrow wherever one of them is what makes another possible, and label the arrow with why.

52. What you can do now

Recap

quantityresult
stage 1 gain (simple load)~17
stage 2 gain (cascode load)~50
open-loop gain~835 (~58 dB)
fungm1/(2piCc)
Rz1/gm7 ~ 6.7 kohm

Next in HW3: P3, the three-stage op-amp - one more gain stage, a per-output-node cutoff calculation, and a supply-independent bias you confirm at VDD = 1 V and 1.2 V.

Sources

  1. R. J. Baker, CMOS: Circuit Design, Layout, and Simulation, 4th ed., the two-stage op-amp example (Ch. 24), biasing from Fig. 20.47. — Wiley-IEEE Press, 2019.
  2. ENEE 411 Lecture 4a Table 9.2 (short-channel, 50 nm): VDD=1V, VTHN=VTHP=0.28V, KP set, scale=50nm, ref @ID=10uA: gmn=gmp=150uA/V, ron=167kohm, rop=333kohm, gm*ro=25(N)/50(P), lambda_n=0.6, lambda_p=0.3. Unlabeled NMOS 50/2, PMOS 100/2 are the table's reference sizes. — Course lecture notes, 2026.
  3. ENEE 411 Lecture 8 (Operational Amplifiers): first stage = active-load diff pair (the mirror's factor of 2 gives Gm1=gm1, single-ended with no loss of gain); second stage = common-source; open-loop gain = product of the stage gains. Notation and framing matched to the course. — Course lecture notes, 2026.
  4. Stage 1 gain gm*(ron||rop)~17 (simple PMOS mirror load); stage 2 gain gm7*ro7~50 (cascode NMOS sink makes Rout2~ro7, the PMOS intrinsic gain); total ~835 (~58 dB). Rz=1/gm7=6.7k, fun=gm1/(2pi*Cc), Miller pole-split from the Table 9.2 reference values. — Author verification, 2026-06-28. The cascode sink/tail (M6T/M6B, M8T/M8B) and wide-swing cascode bias (Fig. 20.22/20.47) are read from the homework schematic; exact bias current and gain confirmed by SPICE (.ac, no load cap).

Want this taught 1-on-1? Alexander tutors Analog CMOS IC Design — $55/session, free consultation.

Book on Wyzant · Text (657) 465-8108