S26 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

S2 · Lesson 6 · Stage lab

Small-signal stages, cascodes, followers and time constants, in Python

Hand analysis of a single stage is quick but error-prone once body effect, ro and degeneration all appear at once. Analog designers keep a small toolbox of exact expressions in a script and check their hand estimates against it before going to the simulator. This lab builds that toolbox: the degenerated common-source stage, the cascode's output resistance, the source follower's gain, and the open-circuit time-constant estimate compared with a stage's exact poles.

  • The curve is a degenerated common-source stage's gain against its source resistor, from the exact small-signal result with gm = 2 mS, gmb = 0.3 mS and ro = 50 kΩ into a 20 kΩ load.
  • With no degeneration the gain is gm(ro∥RL), 28.6; degeneration trades gain for linearity and output resistance.
  • The dashed line is the simple estimate RL/RS, which the exact curve approaches only when gmRS is large and ro is far above RL.

Predict

The common-source stage (gm = 2 mS, gmb = 0.3 mS, ro = 50 kΩ) gets RS = 1 kΩ and drives 20 kΩ. What gain does it have?

Name it

The formulas

  • Degenerated CS: Gm=gm1+(gm+gmb)RS+RS/ro, Rout=ro+(1+(gm+gmb)ro)RS, gain −Gm(Rout∥RL).
  • Cascode output resistance: the same Rout with RS replaced by the resistance below the cascode device.
  • Source follower: A=gm/(gm+gmb+1/ro+1/RL).
  • Open-circuit time constants: for a CS stage with Cgs, Cgd and Cdb, b1=RsCgs+[Rs(1+gmRL)+RL]Cgd+RLCdb, and the exact denominator 1+b1s+b2s2 has b2=RsRL(CgsCgd+CgsCdb+CgdCdb).

Check

Write cs_stage(gm, gmb, ro, RS, RL): return (gain, Gm, Rout) for the degenerated common-source stage.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Write cascode_rout(gm, gmb, ro, Rbelow) and follower_gain(gm, gmb, ro, RL).

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Write cs_poles(Rs, gm, RL, Cgs, Cgd, Cdb): return (the open-circuit time-constant estimate 1/b1, and the exact poles p1<p2 of 1+b1s+b2s2), all in rad/s.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Write pair_cmrr(gm, Rtail, mismatch): the CMRR (as a ratio) of a differential pair with per-side gm, tail resistance Rtail and fractional load mismatch, 2gmRtail/mismatch; and cmrr_db(x).

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 the simple gain estimate RL/RS for a degenerated common-source stage often disagree badly with the exact result?