---
title: Midterm exam
heading: "Midterm exam: building blocks, frequency response and feedback"
eyebrow: C6 · Midterm exam
type: problems
---

::: hook
Twelve problems from the first half of the course: amplifier models, current mirrors, active loads and cascodes, differential pairs and the OTA, high-frequency models and the Miller effect, wideband stages, feedback and its topologies, op-amp configurations, instrumentation amplifiers, integrators and filters, precision rectifiers and log amplifiers. Give yourself two hours, work without the lessons open, and write out your reasoning before checking each answer. Use $V_T$ = 25.85 mV. "Another set" deals a different exam.
:::

::: pool
pick: 12

::: check
kind: parts
given: Rs = 2 | 50; Ri = 20 | 500; A = 50 | 500; Ro = 0.05 | 1; RL = 0.6 | 8

## An amplifier ($R_i$ = {Ri} kΩ, open-circuit gain {A}, $R_o$ = {Ro} kΩ) sits between a {Rs} kΩ source and a {RL} kΩ load.

::: 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: A/Ro
unit: mS
tolerance: 0.5%

### What is its short-circuit transconductance?

::: misses
- [any] $A/R_o$.
:::
:::
:::

::: check
kind: parts
given: Iref = 0.1 | 1; beta = 50 | 200; VA = 40 | 120; VCE = 1 | 10

## A BJT mirror (β = {beta}, $V_A$ = {VA} V) copies {Iref} mA to an output at $V_{CE}$ = {VCE} V.

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

### What does it copy?

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

::: part
answer: VA/(Iref/(1 + 2/beta)*(1 + VCE/VA)/(1 + 0.7/VA))
unit: kΩ
tolerance: 0.5%

### What is its output resistance at that current?

::: misses
- [any] $V_A/I_O$.
:::
:::
:::

::: check
kind: parts
given: gm = 0.5 | 4; ro = 40 | 300

## A MOSFET with $g_m$ = {gm} mS and $r_o$ = {ro} kΩ is used three ways.

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

### With an active load of equal $r_o$, what gain?

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

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

### Stacked as a cascode with a twin, what output resistance?

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

::: check
kind: parts
given: I = 0.2 | 2; RC = 5 | 20; REE = 20 | 200

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

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

### What is its single-ended differential gain?

::: misses
- [any] $\frac12g_mR_C$, $g_m = I/2V_T$.
:::
:::

::: part
answer: 20*log(I/(2*0.02585)*REE)
unit: dB
tolerance: 0.5%

### What is its single-ended CMRR?

::: misses
- [any] $g_mR_{EE}$ in dB.
:::
:::
:::

::: check
kind: parts
given: I = 20 | 200; Vov = 0.1 | 0.25; lam = 0.04 | 0.1; CL = 1 | 10

## A five-transistor OTA has a {I} µA tail, input overdrive {Vov} V, λ = {lam} V⁻¹ and a {CL} pF load.

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

### What is its gain-bandwidth?

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

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

### What is its slew rate?

::: misses
- [any] $I/C_L$.
:::
:::
:::

::: check
kind: parts
given: IC = 0.2 | 2; tau = 10 | 60; Cje = 0.2 | 1; Cmu = 0.1 | 0.5

## A BJT at {IC} mA has $\tau_F$ = {tau} ps, $C_{je}$ = {Cje} pF and $C_\mu$ = {Cmu} pF.

::: part
answer: tau*1e-12*IC/0.02585*1e-3*1e12 + Cje
unit: pF
tolerance: 0.5%

### What is $C_\pi$?

::: misses
- [any] $\tau_Fg_m + C_{je}$.
:::
:::

::: part
answer: IC/0.02585*1e-3/(2*pi*(tau*1e-12*IC/0.02585*1e-3 + (Cje + Cmu)*1e-12))/1e9
unit: GHz
tolerance: 0.5%

### What is $f_T$?

::: misses
- [any] $g_m/(2\pi(C_\pi + C_\mu))$.
:::
:::
:::

::: check
kind: parts
given: gm = 2 | 10; RL = 2 | 10; Cgs = 1 | 5; Cgd = 0.1 | 1; Rs = 1 | 20

## A CS stage ($g_m$ = {gm} mS, $R_L'$ = {RL} kΩ, $C_{gs}$ = {Cgs} pF, $C_{gd}$ = {Cgd} pF) is driven from {Rs} kΩ.

::: part
answer: Cgs + Cgd*(1 + gm*RL)
unit: pF
tolerance: 0.5%

### What is its Miller input capacitance?

::: misses
- [any] $C_{gs} + C_{gd}(1 + g_mR_L')$.
:::
:::

::: part
answer: 1/(2*pi*(Cgs*Rs*1000 + Cgd*(Rs*1000*2 + 1000/gm) + Cgs*1000/gm + Cgd*RL*1000)*1e-12)/1e6
unit: MHz
tolerance: 0.5%

### Made into a cascode with an identical device, what is its $f_H$?

::: misses
- [any] Four time constants, Miller factor 2.
:::
:::
:::

::: check
kind: parts
given: A = 1e3 | 1e5; b = 0.01 | 0.1; Ri = 0.5 | 5; Ro = 20 | 200

## An amplifier ($R_i$ = {Ri} MΩ, $R_o$ = {Ro} Ω, A = {A}) is placed in feedback with β = {b}.

::: part
answer: Ri/(1 + A*b)*1e6
unit: Ω
tolerance: 0.5%

### With shunt mixing at the input, what is the input resistance?

::: misses
- [any] $\div(1 + A\beta)$.
:::
:::

::: part
answer: Ro*(1 + A*b)/1000
unit: kΩ
tolerance: 0.5%

### With series sensing at the output, what is the output resistance?

::: misses
- [any] $\times(1 + A\beta)$.
:::
:::
:::

::: check
kind: parts
given: Rf = 10 | 100; Rg = 1 | 10; vin = 0.05 | 0.5

## An op amp is wired with $R_f$ = {Rf} kΩ and $R_g$ = {Rg} kΩ, fed {vin} V.

::: part
answer: (1 + Rf/Rg)*vin
unit: V
tolerance: 0.5%

### As a non-inverting amplifier, what is the output?

::: misses
- [any] $(1 + R_f/R_g)v_\text{in}$.
:::
:::

::: part
answer: -Rf/Rg*vin
unit: V
tolerance: 0.5%

### As an inverting amplifier ($R_g$ as the input resistor), what is the output?

::: misses
- [any] $-R_f/R_g\,v_\text{in}$.
:::
:::
:::

::: check
kind: parts
given: G = 10 | 100 | 1000; R2 = 24.7 | 50; Vexc = 5 | 10; dR = 0.05 | 0.2

## An instrumentation amplifier ($R_2$ = {R2} kΩ, unity second stage) must have gain {G}; it reads a bridge on {Vexc} V whose arm changes by {dR}%.

::: part
answer: 2*R2/(G - 1)*1000
unit: Ω
tolerance: 0.5%

### What $R_G$?

::: misses
- [any] $2R_2/(G - 1)$.
:::
:::

::: part
answer: G*Vexc*dR/100/4
unit: V
tolerance: 0.5%

### What does it output?

::: misses
- [any] $G \cdot V_\text{exc}\Delta R/(4R)$.
:::
:::
:::

::: check
kind: parts
given: V = 0.2 | 1; R = 10 | 100; C = 10 | 100; Vsat = 10 | 12

## An integrator (R = {R} kΩ, C = {C} nF) starts at 0 V with a steady {V} V at its input; its output saturates at −{Vsat} V.

::: part
answer: -V/(R*1e3*C*1e-9)/1000
unit: V/ms
tolerance: 0.5%

### How fast does its output ramp?

::: misses
- [any] $-V/(RC)$.
:::
:::

::: part
answer: Vsat/(V/(R*1e3*C*1e-9))*1000
unit: ms
tolerance: 0.5%

### When does it saturate?

::: misses
- [any] $V_\text{sat}$ over the slope.
:::
:::
:::

::: check
kind: parts
given: f0 = 500 | 2000; R3 = 100 | 470; C = 10 | 22; R1 = 50 | 159

## A multiple-feedback band-pass has $R_3$ = {R3} kΩ, $R_1$ = {R1} kΩ and two {C} nF capacitors, tuned to {f0} Hz.

::: part
answer: pi*f0*R3*1e3*C*1e-9
tolerance: 0.5%

### What is its Q?

::: misses
- [any] $\pi f_0R_3C$.
:::
:::

::: part
answer: -R3/(2*R1)
tolerance: 0.5%

### What is its center gain?

::: misses
- [any] $-R_3/(2R_1)$.
:::
:::
:::

::: check
kind: parts
given: vin = 0.02 | 2; R = 10 | 100; IS = 1 | 100

## A log amplifier has R = {R} kΩ and a transistor with $I_S$ = {IS} fA.

::: part
answer: -0.02585*ln(vin/(R*1000*IS*1e-15))
unit: V
tolerance: 0.2%

### What does it output for {vin} V?

::: misses
- [any] $-V_T\ln\frac{v_\text{in}}{RI_S}$.
:::
:::

::: part
answer: vin/R*1000
unit: µA
tolerance: 0.5%

### What collector current flows?

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

::: check
kind: parts
given: Vov = 0.1 | 0.3; I = 0.1 | 0.4; VDD = 3.3 | 5; RD = 2 | 5; Vt = 0.4 | 0.6

## A MOSFET differential pair on {VDD} V has a {I} mA tail, {Vov} V of overdrive, {RD} kΩ loads and $V_t$ = {Vt} V.

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

### At what differential input is it fully switched?

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

::: part
answer: VDD - I/2*RD + Vt
unit: V
tolerance: 0.5%

### What is its highest input common-mode voltage?

::: misses
- [any] $V_{DD} - \frac I2R_D + V_t$.
:::
:::
:::

::: check
kind: parts
given: I = 1 | 4; RC = 3.3 | 6.8; RSS = 30 | 300

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

::: part
answer: I/2/0.02585
unit: mS
tolerance: 0.5%

### What's each transistor's $g_m$?

::: misses
- [any] $\frac{I/2}{V_T}$.
:::
:::

::: part
answer: 20*log(0.5*I/2/0.02585*RC/(RC/(2*RSS)))
unit: dB
tolerance: 0.5%

### What's its CMRR, single-ended?

::: misses
- [any] $\frac{\frac12g_mR_C}{R_C/2R_{SS}}$.
:::
:::
:::

::: check
kind: parts
given: g = 2 | 6; R = 3 | 8; Cgs = 1.5 | 4; Cgd = 0.3 | 0.7; Rs = 2 | 15

## A CS stage: $g_m$ = {g} mS, $R_D$ = {R} kΩ, $C_{gs}$ = {Cgs} pF, $C_{gd}$ = {Cgd} pF, {Rs} kΩ source.

::: part
answer: Cgs + Cgd*(1 + g*R)
unit: pF
tolerance: 0.5%

### What's the Miller input capacitance?

::: misses
- [any] $C_{gs} + C_{gd}(1 + g_mR_D)$.
:::
:::

::: part
answer: 1/(2*pi*Rs*1000*(Cgs + Cgd*(1 + g*R))*1e-12)/1e6
unit: MHz
tolerance: 0.5%

### What input corner does Miller's estimate give?

::: misses
- [any] $\frac{1}{2\pi R_sC_\text{in}}$.
:::
:::
:::
:::
