S2 · Lesson 23 · Rail-to-rail and low-voltage design
Complementary input pairs, constant transconductance and swing to the rails
On a 5 V supply an op amp could waste a volt here and there; on 1.2 V every stacked transistor's 0.15 V of saturation headroom and every of half a volt matters. A single NMOS input pair can't accept inputs near ground, a PMOS pair can't accept them near the supply, and a cascoded output can't swing anywhere near the rails. This lesson builds the standard low-voltage answers: put two complementary pairs in parallel so one always works, keep their combined transconductance constant so the loop's bandwidth doesn't wander, and drive the output with common-source devices that swing to within an overdrive of each rail.
- The curves show the transconductance of an NMOS input pair, a PMOS pair, and their sum, against the input's common-mode voltage on a supply of .
- The NMOS pair turns on above about 0.55 V; the PMOS pair works below V. In the middle both conduct and the total doubles.
- Lower the supply: the overlap shrinks, and below about 1.1 V a gap opens in the middle where neither pair works.
Predict
A complementary input stage has both pairs on in the middle of its range and only one near each rail. With no correction, how does its total transconductance vary across the range?
Where both pairs conduct, their transconductances add: twice the value near either rail. A feedback amplifier's unity-gain frequency is proportional to , so its bandwidth and phase margin would change with the input level. Constant- circuits steer extra current into whichever pair is working alone.
Name it
Input range of one pair
An NMOS pair needs its gate at least above ground. At the top, the pair stays saturated only while its gate is no more than above its drain. On low supplies that leaves a window of a few hundred millivolts.
Complementary pairs
An NMOS and a PMOS pair in parallel cover the whole range if (each needs its tail transistor too). Below that supply a dead zone opens in the middle.
Constant transconductance
In strong inversion . Where only one pair is on, giving it four times its normal current doubles its to match the middle region, where both pairs share. Current switches driven by the common-mode level do the steering (in weak inversion, where , doubling the current suffices).
Output swing
Common-source output transistors, a PMOS to the supply and an NMOS to ground, can each pull the output to within their own of a rail: a rail-to-rail output loses only about of the supply.
Worked example
An NMOS input pair on 1.2 V has = 0.55 V ( = 0.4 V), a tail needing 0.15 V, and diode-connected PMOS loads with = 0.55 V. What common-mode range does it accept?
Show the solution
- Bottom of the range.
- The drains. The loads hold them at
- Top of the range. So the gate may rise to
- The window. A 0.35 V window on a 1.2 V supply: unusable as a follower, which needs the input to track the output across most of the range.
Answer it accepts 0.70 V to 1.05 V, a 0.35 V window.
Worked example
What supply does a complementary input stage need for both pairs to overlap everywhere, with = 0.55 V for each type and 0.15 V per tail?
Show the solution
- Add up the stack. Both gate-source voltages and both tails must fit:
- Below that. On a lower supply there's a band in the middle where neither pair conducts.
- What designers do then. They switch to a single pair with a charge-pumped tail, or bulk-driven or subthreshold inputs.
Answer a 1.4 V supply.
Worked example
A rail-to-rail output stage's common-source transistors need 0.1 V each to stay saturated. How much of a 1.2 V supply can its output swing over, and how does that compare with a cascoded class-A output?
Show the solution
- Rail-to-rail output. From 0.1 V to 1.1 V: of the supply.
- Cascoded class-A output. With two saturated devices on each side it needs about 0.3 V at each end: half the supply.
- What follows. That's why low-voltage op amps finish with a common-source class-AB stage.
Answer the output swings over 1.0 V, 83% of the supply, against 0.6 V (half the supply) for a cascoded class-A output.
Check
An NMOS input pair on 1.2 V has = 0.5 V ( = 0.45 V) and a tail needing 0.2 V; its diode-connected PMOS loads drop 0.5 V.
(a)
What is the lowest common-mode input it accepts?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
(b)
What is the highest?
Check
A complementary input stage has = 0.5 V, = 0.5 V, and tails needing 0.2 V each.
(a)
What is the lowest supply on which the pairs overlap everywhere?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
(b)
How wide is the dead zone on a 1 V supply (negative means none)?
Check
In strong inversion . A pair carries 4 times its nominal current where it works alone.
(a)
By what factor does its rise?
(b)
What current factor would raise its by 2?
Check
A rail-to-rail output on 1.2 V uses common-source devices needing 0.05 V each.
(a)
What swing can it reach?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
(b)
What share of the supply is that?
Check
A complementary input stage's single-pair is 1 mS, compensated by 2 pF; without constant- correction both pairs add in the middle.
(a)
What unity-gain frequency does it have near a rail?
Write units the way you normally would: 1.5 MHz, 1500 kHz and 0.0015 GHz are the same answer.
(b)
And in the middle of the range?
Check
Match each low-voltage problem to its usual fix.
- Acommon-source class-AB output devices
- Bcurrent steering that quadruples a lone pair's current
- Ca larger compensation capacitor
- Dsubthreshold or bulk-driven inputs
- Ea PMOS pair in parallel
Check
A complementary pair stage has = n, = p, tails needing t each, on supply V.
Step 1
Above what common-mode voltage does the NMOS pair work?
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°.
Step 2
Below what voltage does the PMOS pair work?
Step 3
How wide is the region where both work (negative is a dead zone)?
Check
Write gm_total(vcm, vdd, vgs_n=0.55, vgs_p=0.55, w=0.03, const_gm=False): the input stage's total (normalized so one pair alone gives 1) at common-mode vcm, with each pair turning on smoothly as past its threshold. With const_gm, a pair working alone gets four times the current (so times the ): scale each pair's by where is the other pair's on-fraction. Then gm_ratio(vdd, const_gm): max over min of the total across 0.1 V to vdd − 0.1 V in 1 mV steps.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Explain why
Why does an op amp's unity-gain frequency vary with input common-mode voltage in a simple complementary input stage, and why does that matter?
The unity-gain frequency of a compensated op amp is the input stage's transconductance divided by the compensation capacitance. In a complementary stage, only one pair conducts near each rail, but both conduct in the middle, so the total transconductance there is about twice as large. The bandwidth therefore doubles in the middle of the range, and since the compensation was designed for one value, the phase margin shrinks where is high and the response becomes slower than necessary where it's low. Keeping constant, by steering more current into a pair when it works alone, keeps the loop's dynamics the same whatever the input level.
Practice
Keep practicing
8 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.