Skip to content
Microelectronics

The two-stage CMOS op-amp and Miller compensation

Two-stage structure and gain, Miller compensation with the gain-bandwidth product proved, pole splitting and phase margin, the right-half-plane zero, cascode and gain boosting.

Inside almost every chip, even digital ones, there are analogue circuits: voltage references, converters, regulators, radio receivers. Their main building block is the integrated operational amplifier, designed with rules different from those of the discrete op-amp seen in Applied Electronics, because every transistor can be sized but intrinsic gains are low and parasitic capacitances are everywhere. In this lesson we look at the two-stage CMOS op-amp, its gain, Miller compensation with the proof of the gain-bandwidth product, the second pole and the phase margin, the right-half-plane zero and higher-gain circuits.

The two-stage op-amp

The most classic structure has:

  • a differential first stage (Applied Electronics lesson on the differential pair): an input transistor pair with a current-mirror active load, converting the input voltage difference into current with transconductance g_{m1} into an output resistance R_1;
  • a common-source second stage, with transconductance g_{m2} and output resistance R_2, providing the rest of the gain and the output swing.

The DC gain is

    \[ A_0 = g_{m1}R_1\cdot g_{m2}R_2 \]

With intrinsic gains g_mr_o of 20-50 per stage in modern processes (lesson on the nanometre MOSFET), 60-70 dB is reached.

Small-signal model of the two-stage amplifier with Miller compensation
The first stage, transconductance g m1, drives the intermediate node with resistance R 1; the second, inverting with transconductance g m2, drives the output with R 2 and the load C L. Capacitor C c connects the output to the intermediate node.

Miller compensation

Each stage has a pole, and two close poles would give, in feedback, a poorly damped or unstable system. So a capacitor C_c is connected between the input and the output of the second stage. Because of the Miller effect, seen from the intermediate node the capacitor looks multiplied by the second stage’s gain, (1 + g_{m2}R_2)C_c: a huge capacitance, which creates a low-frequency dominant pole.

Theorem. With Miller compensation the amplifier’s gain-bandwidth product is

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

independent of the second stage and of the output resistances.

Proof. The dominant pole is at the intermediate node, with resistance R_1 and effective capacitance g_{m2}R_2C_c (neglecting the 1 compared with the gain): \omega_{p1} \approx 1/(R_1g_{m2}R_2C_c). The gain-bandwidth product is the DC gain times the dominant pole frequency:

    \[ A_0\,\omega_{p1} = g_{m1}R_1g_{m2}R_2\cdot\frac{1}{R_1g_{m2}R_2C_c} = \frac{g_{m1}}{C_c} \]

and dividing by 2\pi gives the formula in hertz. ∎

The result is convenient: the output resistances, which vary a lot with process and temperature, cancel, and the crossover frequency depends only on a transconductance and a capacitor, both well controlled. Example. With g_{m1} = 1 mS and C_c = 2 pF, GBW \approx 80 MHz.

The second pole and phase margin

Compensation also has a less obvious effect: at high frequencies C_c shorts the second stage, which behaves like a diode of conductance g_{m2}, and the second pole moves up, to about

    \[ \omega_{p2} \approx \frac{g_{m2}}{C_L} \]

(this is “pole splitting”). For the amplifier used as a follower to be stable with a good phase margin (lesson on the Nyquist criterion), the second pole must lie beyond the gain-bandwidth product: with \omega_{p2} \approx 2.2\,\omega_{GBW} the margin is about 60°. The design rule follows: g_{m2}/C_L \ge 2.2\,g_{m1}/C_c: the second stage must have a large transconductance, and therefore consume current, all the more the heavier the capacitive load.

The right-half-plane zero

Capacitor C_c also offers a direct path from the intermediate node to the output, which at high frequencies carries the signal with the opposite sign to that of the second stage. This produces a right-half-plane zero at \omega_z = g_{m2}/C_c, adding phase lag like that of the boost converter (Power Electronics lesson on converter control). It is moved or eliminated with a nulling resistor in series with C_c, of value about 1/g_{m2}, or by isolating the direct path with a follower.

Higher-gain amplifiers

When 60-70 dB is not enough, for instance in precision converters, the following are used:

  • the cascode (lesson on current mirrors): a series transistor that multiplies the output resistance by its intrinsic gain, bringing a single stage to 60 dB. The telescopic and folded-cascode op-amps thus achieve high gains with a single stage, compensated by the load capacitance itself, but they have a reduced output swing, because many series transistors use up voltage headroom;
  • gain boosting: a small auxiliary amplifier that regulates the cascode, for gains of 100 dB and more.

With 0.8-1 V supplies the signal swing keeps shrinking, and analogue design in advanced processes has become a balancing act between gain, speed, noise and available voltages. Many functions then move into the digital domain, where small transistors are an advantage: this is the trend of oversampled converters with digital processing (Digital Signal Processing lesson on multirate processing).

Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
0
Would love your thoughts, please comment.x
()
x