---
title: Problem set 1
heading: "Problem set 1: gain stages, mirrors and active loads"
eyebrow: C6 · Problem set 1
type: problems
---

::: hook
These problems use lessons 1 to 4: amplifier models, the common-source stage, current mirrors and current sources, and active loads and cascodes. Use $V_T$ = 25.85 mV and $V_{BE}$ = 0.7 V.
:::

::: pool
pick: 12

::: check
kind: parts
given: Rs = 1 | 20; Ri = 10 | 200; A = 20 | 200; Ro = 0.1 | 2; RL = 0.5 | 10

## An amplifier ($R_i$ = {Ri} kΩ, open-circuit gain {A}, $R_o$ = {Ro} kΩ) is driven from {Rs} kΩ into {RL} kΩ.

::: part
answer: Ri/(Rs + Ri)*A*RL/(Ro + RL)
tolerance: 0.5%

### What is the overall gain?

::: misses
- [any] Two dividers around A.
:::
:::

::: part
answer: 20*log(Ri/(Rs + Ri)*A*RL/(Ro + RL))
unit: dB
tolerance: 0.5%

### In dB?

::: misses
- [any] $20\log_{10}$.
:::
:::
:::

::: check
kind: parts
given: gm = 2 | 10; RD = 2.2 | 10; RS = 0.22 | 1; RL = 4.7 | 47

## A CS stage has $g_m$ = {gm} mS, $R_D$ = {RD} kΩ and an unbypassed $R_S$ = {RS} kΩ, and drives {RL} kΩ ($r_o$ neglected).

::: part
answer: -gm*RD/(1 + gm*RS)
tolerance: 0.5%

### What is its unloaded gain?

::: misses
- [any] $-g_mR_D/(1 + g_mR_S)$.
:::
:::

::: part
answer: -gm*(RD*RL/(RD + RL))/(1 + gm*RS)
tolerance: 0.5%

### And with the load?

::: misses
- [any] $R_L$ in parallel with $R_D$.
:::
:::
:::

::: check
kind: parts
given: VDD = 12 | 15; R1 = 200 | 470; R2 = 100 | 150; f = 10 | 50

## A CS stage's gate is biased by $R_1$ = {R1} kΩ and $R_2$ = {R2} kΩ from {VDD} V, and its input coupling capacitor must pass {f} Hz (driven from a low-resistance source).

::: part
answer: VDD*R2/(R1 + R2)
unit: V
tolerance: 0.5%

### What is the gate voltage?

::: misses
- [any] A plain divider.
:::
:::

::: part
answer: 1/(2*pi*f*(R1*R2/(R1 + R2))*1e3)*1e6
unit: µF
tolerance: 0.5%

### What coupling capacitor puts the corner at {f} Hz?

::: misses
- [any] $1/(2\pi fR_\text{in})$ with $R_\text{in} = R_1 \parallel R_2$.
:::
:::
:::

::: check
kind: parts
given: VCC = 5 | 12; R = 4.3 | 22; beta = 60 | 200; VA = 30 | 100; VCE = 2 | 8

## A BJT mirror (β = {beta}, $V_A$ = {VA} V) takes its reference through {R} kΩ from {VCC} V; its output sits at $V_{CE}$ = {VCE} V.

::: part
answer: (VCC - 0.7)/R
unit: mA
tolerance: 0.5%

### What is the reference current?

::: misses
- [any] $(V_{CC} - 0.7)/R$.
:::
:::

::: part
answer: (VCC - 0.7)/R/(1 + 2/beta)*(1 + VCE/VA)/(1 + 0.7/VA)
unit: mA
tolerance: 0.2%

### What does the output carry?

::: misses
- [any] Base-current and Early corrections.
:::
:::
:::

::: check
kind: parts
given: Iref = 20 | 200; ratio = 2 | 10; lam = 0.02 | 0.1; VDS = 1 | 2.5

## A MOSFET mirror copies {Iref} µA into a device {ratio} times wider ($V_{GS}$ = 0.7 V, λ = {lam} V⁻¹), whose drain sits at {VDS} V.

::: part
answer: Iref*ratio*(1 + lam*VDS)/(1 + lam*0.7)
unit: µA
tolerance: 0.2%

### What does it copy?

::: misses
- [any] Scale by the width ratio and the λ factors.
:::
:::

::: part
answer: 1/(lam*Iref*ratio*1e-3)
unit: kΩ
tolerance: 0.5%

### What is its output resistance, using the scaled current?

::: misses
- [any] $1/(\lambda I_O)$.
:::
:::
:::

::: check
kind: parts
given: Iref = 0.5 | 2; IO = 5 | 50

## A Widlar source makes {IO} µA from a {Iref} mA reference.

::: part
answer: 0.02585*ln(Iref*1000/IO)/(IO*1e-6)/1000
unit: kΩ
tolerance: 0.5%

### What emitter resistor does it need?

::: misses
- [any] $\frac{V_T}{I_O}\ln\frac{I_\text{ref}}{I_O}$.
:::
:::

::: part
answer: 0.02585*ln(Iref*1000/IO)*1000
unit: mV
tolerance: 0.5%

### How much smaller is the output transistor's $V_{BE}$ than the reference's?

::: misses
- [any] $V_T\ln(I_\text{ref}/I_O)$.
:::
:::
:::

::: check
kind: parts
given: ID = 0.05 | 0.5; Vov = 0.15 | 0.3; lam = 0.05 | 0.1; Vt = 0.4 | 0.6

## A MOSFET cascode mirror carries {ID} mA with {Vov} V of overdrive, λ = {lam} V⁻¹ and $V_t$ = {Vt} V.

::: part
answer: 2*ID/Vov*(1/(lam*ID))^2/1000
unit: MΩ
tolerance: 0.5%

### What is its output resistance?

::: misses
- [any] $g_mr_o^2$.
:::
:::

::: part
answer: Vt + 2*Vov
unit: V
tolerance: 0.5%

### How low can its output go?

::: misses
- [any] $V_t + 2v_{OV}$.
:::
:::
:::

::: check
kind: parts
given: ID = 0.02 | 0.2; Vov = 0.1 | 0.25; lamn = 0.03 | 0.08; lamp = 0.05 | 0.1

## A CS stage at {ID} mA ({Vov} V overdrive, λ = {lamn} V⁻¹) has a PMOS current-source load with λ = {lamp} V⁻¹.

::: part
answer: 2*ID/Vov
unit: mS
tolerance: 0.5%

### What is its $g_m$?

::: misses
- [any] $2I_D/v_{OV}$.
:::
:::

::: part
answer: -2/(Vov*(lamn + lamp))
tolerance: 0.5%

### What is its gain?

::: misses
- [any] $-g_m(r_{o1} \parallel r_{o2})$; the current cancels.
:::
:::
:::

::: check
kind: parts
given: VAn = 60 | 120; VAp = 30 | 60; IC = 0.05 | 1

## An NPN CE stage at {IC} mA ($V_A$ = {VAn} V) has a PNP mirror load ($V_A$ = {VAp} V).

::: part
answer: VAn*VAp/(VAn + VAp)/IC
unit: kΩ
tolerance: 0.5%

### What resistance is at its output?

::: misses
- [any] $r_{o1} \parallel r_{o2}$.
:::
:::

::: part
answer: -VAn*VAp/((VAn + VAp)*0.02585)
tolerance: 0.5%

### What is its gain?

::: misses
- [any] $-g_m(r_{o1} \parallel r_{o2})$.
:::
:::
:::

::: check
kind: parts
given: gm = 0.5 | 2; ro = 50 | 250

## A MOSFET cascode has $g_m$ = {gm} mS and $r_o$ = {ro} kΩ per device.

::: part
answer: -gm*(gm*ro*ro)
tolerance: 0.5%

### What gain does it give with an ideal current-source load?

::: misses
- [any] $-g_mR_\text{out}$ with $R_\text{out} = g_mr_o^2$.
:::
:::

::: part
answer: -gm*ro/2
tolerance: 0.5%

### What would a single device with a simple active load of equal $r_o$ give?

::: misses
- [any] $-g_m(r_o \parallel r_o)$.
:::
:::
:::

::: check
kind: parts
given: VR = 1 | 3; Vov = 0.1 | 0.3; lam = 0.03 | 0.1

## A CS stage with {Vov} V of overdrive can afford {VR} V across a resistor load; its devices have λ = {lam} V⁻¹.

::: part
answer: -2*VR/Vov
tolerance: 0.5%

### What gain does the resistor load give?

::: misses
- [any] $-2V_{R_D}/v_{OV}$.
:::
:::

::: part
answer: -1/(lam*Vov)
tolerance: 0.5%

### What gain does a matched active load give?

::: misses
- [any] $-1/(\lambda v_{OV})$.
:::
:::
:::

::: check
kind: parts
given: Voc = 1 | 4; ratio = 0.5 | 0.8; RL = 0.6 | 10; vin = 10 | 50; iin = 1 | 20

## An amplifier's output reads {Voc} V open-circuit and {ratio} of that into {RL} kΩ; its input draws {iin} µA at {vin} mV.

::: part
answer: RL*1000*(1/ratio - 1)
unit: Ω
tolerance: 0.5%

### What is its output resistance?

::: misses
- [any] $R_L(v_{oc}/v_L - 1)$.
:::
:::

::: part
answer: vin/iin
unit: kΩ
tolerance: 0.5%

### What is its input resistance?

::: misses
- [any] $v_\text{in}/i_\text{in}$.
:::
:::
:::

::: check
kind: parts
given: Rs = 220 | 1000; RL = 2.2 | 10; Ro = 10 | 100

## A {Rs} kΩ source drives a {RL} kΩ load directly, or through a unity-gain buffer with 10 MΩ in and {Ro} Ω out.

::: part
answer: RL/(RL + Rs)*100
unit: %
tolerance: 0.5%

### What percentage of the signal arrives directly?

::: misses
- [any] $\frac{R_L}{R_L + R_s}$.
:::
:::

::: part
answer: 10000/(10000 + Rs)*RL*1000/(RL*1000 + Ro)*100
unit: %
tolerance: 0.5%

### And through the buffer?

::: misses
- [any] $\frac{R_i}{R_i + R_s}\cdot\frac{R_L}{R_L + R_o}$.
:::
:::
:::

::: check
kind: parts
given: VDD = 10 | 15; I = 0.5 | 2; RD = 2.2 | 4.7; VG = 3 | 5

## A CS stage ($V_t$ = 1 V) on {VDD} V carries {I} mA through {RD} kΩ, gate at {VG} V, source bypassed.

::: part
answer: VDD - I*RD - (VG - 1)
unit: V
tolerance: 0.5%

### How far can its drain swing down?

::: misses
- [any] $V_D - (V_G - V_t)$.
:::
:::

::: part
answer: I*RD
unit: V
tolerance: 0.5%

### And up?

::: misses
- [any] Up to $V_{DD}$: $I_DR_D$.
:::
:::
:::

::: check
kind: parts
given: b = 25 | 60 | 120

## A BJT mirror uses transistors with β = {b}.

::: part
answer: (1/(1 + 2/b) - 1)*100
unit: %
tolerance: 0.5%

### What's a simple mirror's error?

::: misses
- [any] $\frac{1}{1 + 2/\beta} - 1$.
:::
:::

::: part
answer: (1/(1 + 2/(b*(b + 1))) - 1)*100
unit: %
tolerance: 0.5%

### With a beta helper?

::: misses
- [any] $\frac{1}{1 + \frac{2}{\beta(\beta + 1)}} - 1$.
:::
:::
:::
:::
