CMOS Op Amps
When designing op amps, CMOS devices have two advantages over bipolar transistors:
- There’s no current input, at least not at DC.
- When the transistor is fully turned on, there’s only a simple resistance between the drain and the source (not some complex cancellation of two junctions, resulting in an offset voltage and a resistance).
A Folded-Cascode CMOS Op Amp
Let’s start by looking at a simple CMOS design (Figure 10-16).
Figure 10-16. Op amp with folded-cascode input stage and a simple (and limited) output stage. [click to enlarge]
As in the bipolar op amp design of Figure 10-11, a folded-cascode input stage is used. This time, the stage uses NMOS transistors (M5 and M6) for the differential input pair.
The primary current (I1) is mirrored by the PMOS transistors M1 through M4 and also the NMOS transistors M7 through M10. These current mirrors use the circuit of Figure 4-24, so the operating current for the input pair is a constant 20 μA.
The four transistors M1-M4 also steer M11/M12 and M13/14, producing two more accurate currents of 20 μA each.
Circuit Operation Explained
The drains of the input transistors are connected to the sources of M12 and M14, which have a potential about 200 mV below the positive supply (V+). The input stage in Figure 10-16 has a limited common-mode range. It will work up to about 100 mV above the positive rail but not below about –0.8 V (that’s about 0.7 V above the negative rail).
At balance (In+ = In–), the input pair diverts half of the 20 μA current produced in M11 and M13. Put a different way, M12 and M14 are left with only half the current—about 10 μA each. The current out of M12 is mirrored in M15/M16 and opposed to that flowing out of M14.
With a large input signal, the two currents become unbalanced. Each can vary between 0 and 20 μA. The voltage created by this imbalance is amplified by the output stage (M18 and a simple pull-up current source, M17). The idle current of the output stage is set by the ratio of the channel widths of M1 to M17 (60 μA).
Miller Compensation and Output Swing
The circuit is compensated with a single 1 pF capacitor, utilizing the Miller effect of M18. This works well as long as the load capacitance is small. At 10 pF, the stability is marginal when connected as a buffer. As Figure 10-17 shows, however, the op amp is very stable if the closed-loop gain is never lower than 10. This is true even with a load capacitance as high as 50 pF.
Figure 10-17. Phase margin becomes critical with a capacitive load unless the closed-loop gain is 40 dB or larger. [click to enlarge]
With a load resistance greater than 25 kΩ (60 μA) the output can move rail-to-rail. More precisely, it can move to within about 100 mV of each rail. Figure 10-18 shows the output swing.

Figure 10-18. Output swing of the CMOS folded-cascode op amp.
Other Considerations
All CMOS examples in this chapter assume a split power supply of 3 V total, or ±1.5 V. They are operational down to ±0.8 V, though with reduced performance.
You need to be aware of the changing open-loop gain. With the input centered between the supply voltages, it is about 100 dB. As the output moves close to either supply, there is a marked drop: the open-loop gain is 66 dB at –1.4 V and 60 dB at +1.4 V.
This can be improved by making the output devices larger. What can’t be improved is a fundamental dependence of loop gain on the load impedance. The lower the load, the lower the loop gain.
A Rail-to-Rail CMOS Op Amp
Let's convert the wimpy output stage into a true rail-to-rail one with a higher output current capability. The resulting circuit is shown in Figure 10-19.
Figure 10-19. Op amp with a more capable rail-to-rail output stage. [click to enlarge]
The trick to designing a rail-to-rail output is in the biasing of the two output transistors. You want a small but well-controlled idle current to minimize any uneven behavior as the output signal is switched from one transistor to the other. In this circuit, there are eight transistors whose only job is to set this idle current.
Let’s follow M25 and M26—two diode-connected NMOS devices fed by the current source M24. At the gate of M23, we then have a DC potential of about 1.2 V above the negative rail.
There’s a second path from this node to V–. It goes through M23 and M29, which are also NMOS transistors. M29 is one of the output transistors. Its current depends on the current supplied by M24 (which is derived from I1 through M1 and M2. The channel dimensions of M23, M25, M26, and M29 also impact the current of M29.
An identical arrangement is provided for M27 by M19 to M22. With the dimensions shown, the idle current amounts to 70 μA.
In this circuit, we also have two higher-performance current mirrors:
- M15 to M18 to get the maximum open-loop gain.
- M5 to M8 to get the highest possible common-mode rejection.
The common mode rejection is now 98 dB, compared to 94 dB in Figure 10-16. The output stage is capable of supplying a peak current of 1 mA and can get within 100 mV of the rails with a 5 kΩ load. This performance can be further improved by making M27 and M29 wider.
Limitations
Though capable of a much higher current without wasting idle power, this rail-to-rail output has the same weaknesses as the previous one. First, it’s very sensitive to capacitive load. Secondly, the open-loop gain is fundamentally related to the load impedance:
- 105 dB with no load.
- 101 dB with a 100 kΩ load.
- 88 dB with a 10 kΩ load.
- 68 dB with a 1 kΩ.
This gain variation, alas, is an unpleasant fact of rail-to-rail outputs.
In Figure 10-20, we can see the clipping of the sine wave as the output approaches the two voltage supply rails for a 5 kΩ load.

Figure 10-20. Output signal swing limits with a 5 kΩ load.
Larger input transistors are also used in this circuit, which reduces the white noise to 23 nV/√Hz (28 nV/√Hz in the previous circuit).
CMOS Op Amp With PMOS Inputs
Figure 10-21 shows the next circuit we’ll examine. Here, the polarity of the input stage is reversed, and the current mirror for the second stage (M11 to M14) is designed to have the highest possible output impedance, resulting in an increased loop gain.
Figure 10-21. CMOS op amp with PMOS inputs. [click to enlarge]
Note that the primary current, I1, has been arbitrarily reduced to 5 μA. The lower operating current level has only a minor effect on the sizes of most devices. They still need to be large to obtain satisfactory matching—much larger than a 0.35 μm process or the higher-voltage transistors of a 0.18 μm process would allow. The idle current of the output stage is now reduced to 10 μA.
The open-loop gain of this circuit is 107 dB at low frequency and with no load. Capacitive loading is still a problem, but much reduced if the minimum closed-loop gain is higher than 1. As before, the closed loop gain is a function of load impedance.
The input operating range now extends from about +0.8 V to 150 mV below the negative rail. If a single supply is used, the inputs can function at or below ground level. Because of the large dimensions used for the input transistors, the white noise level is a relatively low 21 nV/√Hz. Note, however, that they’re run at twice the level of I1.
A CMOS Op Amp With Rail-to-Rail Input Swing
Now, let's extend the operating range of the input by using both PMOS and NMOS transistors. Figure 10-22 illustrates the result.
Figure 10-22. Op amp with rail-to-rail inputs and output. [click to enlarge]
This circuit uses both PMOS and NMOS differential pairs. The NMOS differential pair takes over when the DC level at the inputs reaches about +0.8 V and the PMOS devices get cut off. There are three voltage regions for the input now:
- Within 0.8 V of the negative rail, only the PMOS devices amplify.
- From about –0.8 V to +0.8 V at the inputs, both pairs amplify.
- Within 0.8 V of the positive rail, only the NMOS devices amplify.
When both pairs are active, the open-loop gain reaches its maximum of 120 dB. When the common-mode level is either high or low, the loop gain drops by 10 dB. Many schemes have been offered in the literature that hold this gain more constant by allowing only one pair to operate at a time. These schemes require adding another dozen devices.
For most applications, the benefits of this measure are limited. In fact, simultaneous operation of both pairs increases performance. Noise, for example, drops to 20 nV/√Hz, compared to 30 nV/√Hz when only one pair is amplifying.
The two input stages work with the second stage (M11 to M18) as folded cascodes. The lower part of the second stage (M15 to M18) is a current mirror derived from M1 to M4, set here at about 10 μA.
The upper part (M11 to M14) mirrors the current again so that the currents cancel at M19/M23 if there’s no input signal. M19 and M23 set the bias current of the output transistors (M27 and M28). If there is an input signal, one or both input stages change the currents in the second stage. The result is a net positive or negative current through M19/M23, which is then translated into a larger current at the output.
As a final note, the random nature of the offset voltage is a common problem in op amps with two separate input stages. Suppose one pair has an offset voltage of +5 mV and the other has an offset voltage of –5 mV. As the signal moves from one stage to the other, this causes a jump of 10 mV, creating distortion.




