---
title: Problem set 2
heading: "Problem set 2: mirrors, loads and differential pairs"
eyebrow: C6 · Problem set 2
type: problems
---

::: hook
These problems use lessons 3 to 8: current mirrors and Widlar sources, active loads and cascodes, the differential pair and the mirror-loaded OTA, and the mirror and pair lab. Take $V_T$ = 25.85 mV unless a problem says otherwise.
:::

::: pool
pick: 12

::: check
kind: parts
given: I = 0.1 | 1; b = 50 | 150; VA = 30 | 100; V = 2 | 10

## A BJT mirror with β = {b} and $V_A$ = {VA} V copies {I} mA, its output at {V} V and its $V_{BE}$ 0.7 V.

::: part
answer: I/(1 + 2/b)*(1 + V/VA)/(1 + 0.7/VA)
unit: mA
tolerance: 0.5%

### What does it deliver?

::: misses
- [I/(1 + 2/b)] Include the Early effect's difference between the two sides.
- [any] $\frac{I_\text{ref}}{1 + 2/\beta}\cdot\frac{1 + V_{CE2}/V_A}{1 + V_{BE}/V_A}$.
:::
:::

::: part
answer: VA/(I/(1 + 2/b)*(1 + V/VA)/(1 + 0.7/VA))
unit: kΩ
tolerance: 1%

### About what's its output resistance?

::: misses
- [any] $r_o = \frac{V_A}{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: 25.85*ln(Iref*1000/Io)/Io
unit: kΩ
tolerance: 0.5%

### What emitter resistor?

::: misses
- [25.85*log(Iref*1000/Io)/Io] Use the natural logarithm.
- [any] $R_E = \frac{V_T}{I_O}\ln\frac{I_\text{ref}}{I_O}$.
:::
:::

::: part
answer: 25.85*ln(Iref*1000/Io)
unit: mV
tolerance: 0.5%

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

::: misses
- [any] $I_OR_E$.
:::
:::
:::

::: check
kind: parts
given: W1 = 2 | 4; W2 = 8 | 20; I = 10 | 100; l = 0.02 | 0.1; V = 0.6 | 1.5; Vo = 1 | 3

## A MOSFET mirror's reference device ({W1} µm wide, $V_{GS}$ = {V} V) carries {I} µA; its output device is {W2} µm wide, at {Vo} V; λ = {l} V⁻¹.

::: part
answer: I*W2/W1*(1 + l*Vo)/(1 + l*V)
unit: µA
tolerance: 0.5%

### What does the output carry?

::: misses
- [I*W2/W1] Include channel-length modulation.
- [any] $I_\text{ref}\frac{W_2}{W_1}\cdot\frac{1 + \lambda V_{DS2}}{1 + \lambda V_{GS}}$.
:::
:::

::: part
answer: 1/(l*I*W2/W1*(1 + l*Vo)/(1 + l*V)*1e-6)/1000
unit: kΩ
tolerance: 1%

### About what's its output resistance?

::: misses
- [any] $\frac{1}{\lambda I_O}$.
:::
:::
:::

::: check
kind: parts
given: I = 0.05 | 0.5; VAn = 50 | 100; VAp = 30 | 60

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

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

### What's the resistance at its output?

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

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

### What's its gain?

::: misses
- [VAn*VAp/(VAn + VAp)/0.02585] A common-emitter stage inverts.
- [any] $-g_m(r_{o1} \parallel r_{o2})$, independent of the current.
:::
:::
:::

::: check
kind: parts
given: g = 0.5 | 2; ro = 100 | 500; s = 0.1 | 1

## A MOSFET cascode has $g_m$ = {g} mS and $r_o$ = {ro} kΩ in both devices.

::: part
answer: g*ro*ro/1000
unit: MΩ
tolerance: 0.5%

### About what's its output resistance?

::: misses
- [g*ro/1000] It's $g_mr_o$ times $r_o$.
- [any] $g_mr_o^2$.
:::
:::

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

### What gain does it give with a matching cascoded load?

::: misses
- [-g*ro*ro] The matched load halves it.
- [any] $-\frac12(g_mr_o)^2$.
:::
:::
:::

::: check
kind: parts
given: V = 1.2 | 1.8 | 3.3; ov = 0.1 | 0.2

## A telescopic cascode on {V} V stacks five devices, each needing {ov} V of overdrive: three below the output, two above.

::: part
answer: 3*ov
unit: V
tolerance: 0.5%

### What's the lowest output?

::: misses
- [any] Three overdrives.
:::
:::

::: part
answer: V - 5*ov
unit: V
tolerance: 0.5%

### What peak-to-peak swing remains?

::: misses
- [any] $V_{DD} - 5v_{OV}$.
:::
:::
:::

::: check
kind: parts
given: I = 0.5 | 2; RC = 2.2 | 10; RSS = 20 | 200

## A BJT pair has a {I} mA tail with {RSS} kΩ of output resistance and {RC} kΩ collector loads.

::: part
answer: 0.5*I/2/0.02585*RC
tolerance: 0.5%

### What's its single-ended differential gain?

::: misses
- [I/2/0.02585*RC] Taken from one collector, it's half.
- [any] $\frac12g_mR_C$ with $g_m = \frac{I/2}{V_T}$.
:::
:::

::: part
answer: 0.5*I/2/0.02585*RC/(RC/(2*RSS))
tolerance: 0.5%

### What's its CMRR?

::: misses
- [any] $\frac{A_d}{|A_{cm}|}$ with $A_{cm} = -\frac{R_C}{2R_{SS}}$.
:::
:::
:::

::: check
kind: parts
given: K = 5 | 20 | 50; I = 0.2 | 1; v = 0.02 | 0.05

## A MOSFET pair with K = {K} mA/V² has a {I} mA tail.

::: part
answer: sqrt(I/K)
unit: V
tolerance: 0.5%

### What's its overdrive at balance?

::: misses
- [sqrt(2*I/K)] Each side carries half the tail: $\frac I2 = \frac K2V_{OV}^2$.
- [any] $V_{OV} = \sqrt{I/K}$.
:::
:::

::: part
answer: I/2 + I/sqrt(I/K)*v/2*sqrt(1 - (v/2/sqrt(I/K))^2)
unit: mA
tolerance: 0.5%

### What does one side carry with {v} V of differential input?

::: misses
- [any] $\frac I2 + \frac{I}{V_{OV}}\frac{v_{id}}{2}\sqrt{1 - \left(\frac{v_{id}/2}{V_{OV}}\right)^2}$.
:::
:::
:::

::: check
kind: parts
given: f = 0.7 | 0.9 | 0.99; ov = 0.1 | 0.3

## A bipolar pair and a MOSFET pair ($V_{OV}$ = {ov} V) are driven differentially.

::: part
answer: 25.85*ln(f/(1 - f))
unit: mV
tolerance: 0.5%

### What input puts {f} of the bipolar pair's tail on one side?

::: misses
- [any] $V_T\ln\frac{f}{1 - f}$.
:::
:::

::: part
answer: sqrt(2)*ov*1000
unit: mV
tolerance: 0.5%

### What input switches the MOSFET pair fully?

::: misses
- [any] $\sqrt2V_{OV}$.
:::
:::
:::

::: check
kind: parts
given: I = 20 | 200; ov = 0.15 | 0.25; l = 0.02 | 0.08; C = 0.5 | 2

## A five-transistor OTA has a {I} µA tail, input overdrive {ov} V, λ = {l} V⁻¹ and drives {C} pF.

::: part
answer: 2/(l*ov)
tolerance: 0.5%

### What's its gain?

::: misses
- [1/(l*ov)] $r_{o2} \parallel r_{o4}$ is half of one $r_o$, and $g_{m1}$ uses half the tail.
- [any] $\frac{2}{\lambda v_{OV}}$.
:::
:::

::: part
answer: I/ov*1e-6/(2*pi*C*1e-12)/1e6
unit: MHz
tolerance: 0.5%

### What's its gain-bandwidth product?

::: misses
- [any] $\frac{g_{m1}}{2\pi C_L}$.
:::
:::
:::

::: check
kind: parts
given: I = 50 | 200; C = 1 | 5; m = 1 | 2; ov = 0.1 | 0.3

## An OTA with a {I} µA tail drives {C} pF; its inputs run at {ov} V of overdrive and its mirror is mismatched by {m}%.

::: part
answer: I/C
unit: V/µs
tolerance: 0.5%

### What's its slew rate?

::: misses
- [I/2/C] All of the tail can reach the output when slewing.
- [any] $\frac{I}{C_L}$.
:::
:::

::: part
answer: I/2*m/100/(I/ov)*1000
unit: mV
tolerance: 0.5%

### What input offset does the mismatch cause?

::: misses
- [any] $\frac{\Delta I}{g_{m1}}$ with $\Delta I = \frac I2\cdot\text{mismatch}$.
:::
:::
:::

::: check
kind: parts
given: VAn = 40 | 80; VAp = 20 | 50

## A BJT OTA has NPN inputs ($V_A$ = {VAn} V) and a PNP mirror ($V_A$ = {VAp} V).

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

### What's its gain?

::: misses
- [any] $\frac{V_{An}V_{Ap}}{(V_{An} + V_{Ap})V_T}$, at any tail current.
:::
:::

::: part
answer: 20*log(VAn*VAp/((VAn + VAp)*0.02585))
unit: dB
tolerance: 0.5%

### In decibels?

::: misses
- [any] $20\log A_d$.
:::
:::
:::

::: check
kind: parts
given: b = 30 | 80 | 200

## A BJT mirror has β = {b}.

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

### What's the base-current error of a simple mirror?

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

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

### And with a beta helper?

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

::: check
kind: parts
given: Iref = 0.5 | 1 | 2; Io = 10 | 50 | 200

## A Widlar source must deliver {Io} µA from a {Iref} mA reference.

::: part
answer: 25.85*ln(Iref*1000/Io)/Io
unit: kΩ
tolerance: 0.5%

### What emitter resistor?

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

::: part
answer: 1 + ln(Iref*1000/Io)
tolerance: 0.5%

### By what factor, $1 + g_mR_E$, does that resistor raise the output transistor's output resistance?

::: misses
- [ln(Iref*1000/Io)] Add 1.
- [any] $g_mR_E = \frac{I_O}{V_T}R_E = \ln\frac{I_\text{ref}}{I_O}$.
:::
:::
:::

::: check
kind: parts
given: Iref = 0.1 | 1; VA = 50 | 150; V = 5 | 10 | 20

## A MOSFET mirror (λ = 1/{VA} V⁻¹) copies {Iref} mA one to one, with $V_{GS}$ = 0.8 V on the reference.

::: part
answer: Iref*(1 + V/VA)/(1 + 0.8/VA)
unit: mA
tolerance: 0.5%

### What does it deliver with its output at {V} V?

::: misses
- [Iref] The output's $V_{DS}$ differs from the reference's.
- [any] $I_\text{ref}\frac{1 + \lambda V_{DS}}{1 + \lambda V_{GS}}$.
:::
:::

::: part
answer: (V - 0.8)/VA*100
unit: %
tolerance: 2%

### About what percentage error is that?

::: misses
- [any] Roughly $\lambda(V_{DS} - V_{GS})$.
:::
:::
:::
:::
