C6 · Lesson 14 · Frequency response lab
Exact poles, exact corners and the time-constant estimates, in Python
Lessons 10 to 13 estimated amplifier bandwidths with Miller's theorem and open-circuit time constants: quick, and usually good to ten percent. A two-capacitor stage is small enough to solve exactly, though, and doing it shows when the estimates hold and why. In this lab you'll write the common-source stage's exact transfer function, find its poles and its true −3 dB point, and compare them with the estimates, then do the same quick analysis for the cascode and the common-gate stage.
Play
- The curves are a common-source stage's gain against frequency: the exact two-pole response with its right-half-plane zero, and the single-pole estimate from open-circuit time constants.
- They agree closely while the two poles are far apart. Add load capacitance: the second pole comes down, and the estimate starts to drift.
- Raise the source resistance: the dominant pole falls, and the time-constant estimate tracks it.
Predict
A CS stage ( = 4 mS, = 5 kΩ, = 2 pF, = 0.5 pF, 10 kΩ source) has an open-circuit time-constant estimate of 1.248 MHz. How close is its exact −3 dB frequency?
1.252 MHz, 0.3% above the estimate. The sum of time constants is exactly the coefficient of s in the denominator, which equals the sum of the reciprocal poles. When the second pole is far above the first (here 405 MHz against 1.25 MHz), it barely contributes, and the estimate is almost the dominant pole itself.
Name it
The common-source stage, exactly
With source resistance , load and capacitances , and , nodal analysis at the gate and drain gives
The poles are the roots of . Their reciprocals add to a, so the open-circuit time-constant estimate is the dominant pole whenever the other is far away. The zero at lies in the right half-plane: the signal fed forward through arrives with the wrong sign.
The exact corner
follows from the magnitudes of numerator and denominator; the −3 dB frequency is where it falls to of its DC value. It decreases steadily with frequency, so bisection on a log scale finds it.
Cascode and common gate
The cascode's time constants (lesson 13) sum to
A common-gate stage has an input pole at , usually very high, and an output pole at .
Worked example
Find the exact poles, zero and −3 dB frequency of the predict's stage.
Show the solution
- Coefficients. The denominator has
- Poles. Its roots give poles at 1.252 MHz and 405 MHz.
- Zero.
- The −3 dB point. Bisection on puts it at 1.252 MHz, the dominant pole itself.
- Compare the estimates. Miller's estimate, which ignores 's effect at the output, gave 1.27 MHz; the time constants gave 1.248 MHz.
Answer the poles are at 1.252 MHz and 405 MHz, the zero at 1.27 GHz, and the −3 dB frequency is 1.252 MHz.
Worked example
Add 1 pF of load capacitance. What happens to the poles and the estimate?
Show the solution
- New coefficients.
- Poles. They move to 1.213 MHz and 119 MHz: the second has come down by more than three times, while the first barely moved.
- The −3 dB point and the estimate. The exact point is 1.213 MHz, and the estimate is 1% low:
- How the estimate behaves. It's always conservative, and it degrades gracefully as the poles approach each other.
Answer the poles move to 1.213 MHz and 119 MHz, and the estimate of 1.201 MHz is 1% below the exact 1.213 MHz.
Worked example
The same transistor as a cascode (two identical devices) and as a common-gate stage from the 10 kΩ source. Estimate their bandwidths.
Show the solution
- Cascode time constants. so 4.80 MHz: almost four times the CS stage's, at the same gain.
- Common gate, input pole. The input sees 10 kΩ ∥ 250 Ω = 244 Ω, which with 2 pF puts a pole at 326 MHz.
- Common gate, output pole. 0.5 pF across 5 kΩ puts it at 63.7 MHz.
- Common gate, overall gain. Its input resistance of 244 Ω takes most of the 10 kΩ source's signal, so its overall gain is only about 0.5: wide bandwidth, little gain.
Answer the cascode reaches 4.80 MHz; the common-gate stage has poles at 326 MHz and 63.7 MHz but an overall gain of only about 0.5.
Check
Step 1. Write cs_coeffs(gm, RL, Rs, Cgs, Cgd, CL) returning (a, b), the coefficients of s and s² in the common-source stage's denominator.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Step 2. Write poles(a, b) returning the two pole frequencies in Hz, smaller first, from the roots of (assume they're real).
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Step 3. Write f3db(gm, RL, Rs, Cgs, Cgd, CL) returning the exact −3 dB frequency, including the right-half-plane zero, by bisection on a log scale between 1 Hz and 1 THz. Your cs_coeffs is available.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Step 4. Write cascode_tau(gm1, gm2, Rs, RL, Cgs1, Cgd1, Cgs2, Cgd2, CL) returning the cascode's sum of open-circuit time constants.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Step 5. Write cg_poles(gm, Rs, RL, Cin, Cout) returning (f_in, f_out) for a common-gate stage.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
A CS stage has = 5 mS, = 2 kΩ, a 10 kΩ source, = 3 pF and = 0.2 pF, no load capacitance.
(a)
What's the sum of time constants, in kΩ × pF = ns?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
(b)
Where's the right-half-plane zero?
Explain why
Why is the open-circuit time-constant estimate of the upper corner always a little low?
The sum of open-circuit time constants is exactly the coefficient of s in the denominator, and that coefficient equals the sum of the reciprocals of all the poles. The estimate treats that whole sum as if it belonged to a single pole. The dominant pole's own time constant is only part of it, so the estimate's pole lands slightly below the dominant pole. The other poles also roll off the response only a little near the dominant pole, so the true corner sits just above the estimate. When the poles are far apart the difference is tiny; as they approach each other the estimate becomes more conservative.
Practice
Keep practicing
2 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.