Unit 3, Lesson 3.3 (book section 3.3.2)

CS stage with diode-connected load

A transistor replaces the load resistor. Now:

1. Replace the resistor

In some technologies it is hard to make resistors with tightly controlled values or a reasonable size (Chapter 19). So RD of the last lesson is replaced by a MOS transistor, M2, with its gate and drain tied together (Fig. 3.13).

Left: the schematic with live voltages. Right: Vout against Vin. Our numbers: VTH0 = 0.5 V, k1 = 2 mA/V², k2 = 0.5 mA/V² (ratio (W/L)1/(W/L)2 = 4), VDD = 1.8 V, γ = 0.4 V½, 2φF = 0.7 V, λ = 0. The book gives no numbers here, so these are ours.

2. The diode-connected device

With gate and drain shorted (Fig. 3.10), the device is always in saturation, because VDS = VGS. To find its small-signal impedance, apply a test voltage VX: V1 = VX and IX = VX/rO + gmVX. So VX/IX = (1/gm) || rO ≈ 1/gm.

Worked. ID = 90 µA, k2 = 0.5 mA/V²: gm2 = √(2 · 0.5 mA/V² · 90 µA) = 0.3 mS, so the device looks like 3.33 kΩ.

3. Body effect

The source of M2 is the output, while its body is grounded, so Vbs = −VX and the body adds a current gmbVX (Fig. 3.11, Eqs. 3.21 to 3.24):

VX/IX = 1/(gm + gmb + 1/rO) ≈ 1/(gm + gmb)

This is lower than 1/gm. Define η = gmb/gm. With our model, η = γ / (2 √(2φF + Vout)), about 0.17 at Vout = 0.75 V. Looking into the source with λ = γ = 0, we see 1/gm (Example 3.5).

4. The gain

With negligible channel-length modulation, the load is 1/(gm2 + gmb2), so (Eqs. 3.27 to 3.30):

Av = −gm1 / (gm2 + gmb2) = −(gm1/gm2) / (1 + η) = −√((W/L)1/(W/L)2) / (1 + η)

Drag Vin and the body slider. The lower plot is |Av|. The dotted line A marks where M1 leaves saturation. With the body effect off, the gain is exactly √4 = 2.

Worked. Ratio 4, η = 0.2: |Av| = 2 / 1.2 = 1.67 V/V. At Vin = 0.8 V our model gives 1.70 (η = 0.177).

Derivation (Eqs. 3.33, 3.34). Differentiate the large-signal relation (3.32) with respect to Vin: (W/L)1 = (W/L)2 ( −∂Vout/∂Vin − ∂VTH2/∂Vin ) (Eq. 3.33). The threshold moves only through the output, so the chain rule gives ∂VTH2/∂Vin = (∂VTH2/∂Vout)(∂Vout/∂Vin) = η ∂Vout/∂Vin. Collecting terms, ∂Vout/∂Vin = −√((W/L)1/(W/L)2) / (1 + η) (Eq. 3.34).

5. Example 3.4: the bulk as input (book p52, Fig 3.9)

The gate of M1 sits at a fixed bias Vb and the input drives the bulk instead. The drain current responds to gmbVin, so with λ = 0 the gain is Av = −gmbRD. The bulk is a weaker knob than the gate, because gmb = ηgm with η ≈ 0.2, but the input can swing below the threshold.

Redrawn after the book's Fig 3.9 with our conventions. Assumptions: M1 in saturation, λ = 0.

6. Why it is linear

Because ID1 = ID2, the gain does not depend on the bias current, as long as M1 stays in saturation. In large-signal terms (Eqs. 3.31, 3.32):

√(W/L)1 (Vin − VTH1) = √(W/L)2 (VDD − Vout − VTH2)

M1 squares the overdrive, and M2 takes the square root, like f−1(f(x)) = x. If VTH2 varied little, the characteristic would be a straight line. In our model Vout goes from 0.92 V at 0.6 V to 0.41 V at 0.9 V, with a gain between 1.68 and 1.73.

7. A PMOS load (book p56, Fig 3.16)

The diode-connected load can be a PMOS device with its well tied to its source, so the body effect disappears. The gain becomes (Eqs. 3.35 to 3.37):

Av = −√( μn (W/L)1 / μp (W/L)2 )

Equal currents make the overdrive ratio equal to the gain magnitude (Eq. 3.37): for a gain of 5 with μn = 2μp, (W/L)1 = 12.5 (W/L)2. The output cannot rise above VDD − |VTH2|: the swing pays for the gain.

Swing example (book p56). With VGS1 − VTH1 = 100 mV and |VTH2| = 0.3 V, a gain of 5 needs |VGS2| = 5 × 0.1 + 0.3 = 0.8 V, severely limiting the output swing: even with a small overdrive, the output cannot exceed VDD − |VTH2|. The swing is constrained by both the overdrive and the threshold — another trade-off from the analog design octagon (Fig. 3.3).

A paradox (Eqs. 3.37 to 3.39). Writing gm = μCox(W/L) |VGS − VTH| gives |Av| = gm1/gm2 (Eq. 3.38) = μnCox(W/L)1(VGS1−VTH1) / μpCox(W/L)2|VGS2−VTH2| (Eq. 3.39), which says the gain is inversely proportional to |VGS2 − VTH2| — seemingly opposite to Eq. 3.37, where the gain grows with it. Resolution (our words): with gm = 2ID/|VGS − VTH|, Eq. 3.39 becomes |VGS2 − VTH2| / (VGS1 − VTH1), exactly Eq. 3.37. The shared bias current ties the two devices together, so there is no contradiction.

Redrawn after Fig 3.16. Limit: M1 must stay saturated, Vout ≥ Vin − VTH.

8. Nanometer Design Note 3 (book p56)

Build the stage at 40 nm: an NMOS of 5 µm/40 nm and a PMOS of 1 µm/40 nm. The square law promises |Av| = √(2 × 5/1) = 3.16 (our arithmetic), but the simulation gives about 1.5, half of that. The square law overestimates gm at 40 nm, so trust the simulator, not the formula. In the book's dc sweep, the gain stays near 1.5 over an input range of roughly 0.4 V to 0.5 V. When M1 is off, the output reaches all the way to VDD.

9. Example 3.6: add a current source (book p57, Fig 3.17)

Add a current source IS = 0.75 I1 feeding the output node. M2 now carries only I1/4, so gm2 falls by a factor of two and the gain doubles (Eqs. 3.40 to 3.43):

Av = −√( 4 μn (W/L)1 / μp (W/L)2 )

The overdrive balance now reads |VGS2 − VTH2| / (VGS1 − VTH1) = |Av| / 4 (Eqs. 3.42, 3.43): for a gain of 5, the overdrive of M2 need be only 1.25 times that of M1, so the output swing recovers. Alternatively, for a given overdrive voltage, this circuit achieves a gain four times that of the stage in Fig. 3.16. The intuition: at a given |VGS2 − VTH2|, cutting the current by four forces (W/L)2 down by four, and gm2 = √(2 μpCox (W/L)2 ID2) falls with it.

Redrawn after Fig 3.17: most of the bias current bypasses the load device.

10. Example 3.7: differentiating the wrong equation (book p57, Eq 3.44)

Differentiating ID1 = 4 ID2 gives Av = −gm1/(4 gm2). Wrong. The factor 4 holds only at the bias point: the moment the input moves, ID1 is no longer four times the load current, so the equation cannot be differentiated. Differentiate a relation that holds for every input, or go straight to the small-signal model.

11. Input below threshold

If Vin < VTH1, M1 is off and the load current falls to zero. The overdrive of M2 goes to zero and Vout ≈ VDD − VTH2 (Fig. 3.14). With the body effect, Vout = 1.8 − 0.5 − 0.4 (√(0.7 + Vout) − √0.7), which gives 1.098 V (VTH2 = 0.70 V). Subthreshold current slowly pulls it higher, but in circuits with frequent switching we assume it stays near VDD − VTH2.

12. The whole curve: Fig 3.15 (book p55)

Below VTH1 the output rests at VDD − VTH2. In saturation it falls along an almost straight line: M1 squares the input and M2 unsquares it. Past point A (Vin = Vout + VTH) M1 slides into triode and the curve bends. Amplify on the straight part.

Our model, same shape as the book's Fig 3.15. The dashed line is VDD − VTH2 = 1.098 V.

13. Common trap

“The gain depends on the bias current.” Not here: ID1 = ID2, so it cancels. Only the W/L ratio and η matter.

14. Eq 3.45: channel-length modulation (book p58)

With channel-length modulation the load becomes 1/(gm2 + gmb2) in parallel with rO1 and rO2:

Av = −gm1 ( 1/(gm2 + gmb2) || rO1 || rO2 )

The gmb2 term is ours: book Eq. 3.45 neglects the body effect here.

Since 1/gm is usually much smaller than rO, the gain changes little. But real transistors leave the square law behind, so simulate the final design.

15. Three-step recipe

  1. Check that M1 is saturated: Vout ≥ Vin − VTH.
  2. Find η at the output level, and the ratio (W/L)1/(W/L)2.
  3. Gain = −√ratio / (1 + η).

16. Quick checks

17. Recap

  1. A diode-connected device is always saturated and acts as a resistor 1/(gm + gmb).
  2. Gain = −√((W/L)1/(W/L)2) / (1 + η).
  3. It does not depend on the bias, so the stage is fairly linear.
  4. Adding IS = 0.75 I1 makes M2 carry I1/4: gm2 halves and the gain doubles (Ex 3.6).

18. Chapter practice

Four sets of five, tagged direct, multi-step, what-if or design, with the book reference. Each question has a Tip. Open the answer only after you have tried.