---
title: LNAs and mixers
heading: Inductively degenerated amplifiers, input matching, noise and frequency conversion
eyebrow: S2 · Lesson 47 · LNAs and mixers
xp: 50
---

::: hook
The first two blocks of a radio receiver decide its sensitivity. The low-noise amplifier must present a clean 50 Ω to the antenna, add almost no noise, and give enough gain that everything after it hardly matters. The mixer then multiplies the amplified signal by a local oscillator to move it down to a frequency where filtering and conversion are easy. Both are analog circuits with a twist: the LNA uses inductors to create a real input resistance from a transistor's capacitance, and the mixer is deliberately a nonlinear (switching) circuit.
:::

::: play
- The curve is the minimum noise figure of an inductively degenerated LNA against operating frequency relative to the transistor's $f_T$, using $F_\text{min} \approx 1 + 2.3(\gamma/\alpha)(f/f_T)$ with γ/α set by the slider.
- At a tenth of $f_T$ the noise figure is under a decibel; near $f_T$ it climbs past 5 dB.
- That's why RF front ends use transistors with $f_T$ ten or more times the carrier.
:::

```sim plot
view: graph
x: r = 0.01..1 log
y: N = 0..8 dB
slider: g = 0.67..2 step 0.01 = 1
plot: 10*log(1 + 2.3*g*r) | label: minimum noise figure
```

::: predict
## A transistor with $f_T$ = 50 GHz is used in an inductively degenerated LNA. What source inductance $L_s$ makes its input resistance 50 Ω?

- [x] About 0.16 nH
- [ ] About 1.6 nH
- [ ] About 16 nH
- [ ] It can't be matched without a resistor

::: reveal
The degeneration inductor makes the input look like $g_mL_s/C_{gs} = \omega_TL_s$, a real resistance with no resistor's thermal noise. $L_s = 50/(2\pi \times 50\text{ GHz}) = 0.16$ nH, a fraction of a millimeter of bond wire or a small on-chip spiral.
:::
:::

::: nameit
## Inductively degenerated common source

An inductor $L_s$ in the source of a common-source transistor makes the input impedance
$$Z_\text{in} = j\omega(L_g + L_s) + \frac{1}{j\omega C_{gs}} + \omega_TL_s$$
Choosing $L_s = R_s/\omega_T$ gives a real part equal to the source resistance, and $L_g$ resonates the rest with $C_{gs}$ at the carrier: $\omega_0^2(L_g + L_s)C_{gs} = 1$. At resonance the input network's Q multiplies the transconductance: the stage's effective transconductance is $G_m = \omega_T/(2\omega_0R_s)$.

## Noise

Matched this way, the LNA's minimum noise figure is about $1 + 2.3(\gamma/\alpha)(\omega_0/\omega_T)$: low as long as the transistor is fast compared with the carrier.

## Mixers

A Gilbert cell steers a transconductor's current between two loads with the local oscillator's square wave, multiplying the signal by ±1. Its conversion gain is $\frac{2}{\pi}g_mR_L$, the $2/\pi$ being the square wave's fundamental. Mixing also converts the **image**, the frequency on the LO's other side, to the same IF, so the image must be filtered first or cancelled with quadrature mixers.
:::

::: example
## For $f_T$ = 50 GHz, a 2.4 GHz carrier and $C_{gs}$ = 100 fF, find $L_s$ and $L_g$ for a 50 Ω match.

::: solution
1. **Source inductor.**
   $$\begin{aligned} L_s &= \frac{50\ \Omega}{2\pi \times 50\ \text{GHz}} \\ &= 0.159\ \text{nH} \end{aligned}$$
2. **Resonance.** With $\omega_0 = 2\pi \times 2.4$ GHz and $C_{gs}$ = 100 fF:
   $$\begin{aligned} L_g + L_s &= \frac{1}{\omega_0^2C_{gs}} \\ &= 44.0\ \text{nH} \end{aligned}$$
3. **Gate inductor.**
   $$\begin{aligned} L_g &= 44.0 - 0.16 \\ &= 43.8\ \text{nH} \end{aligned}$$
4. **In practice.** That's too big for a good on-chip inductor, so it's often partly off-chip or the transistor is made larger.

**Answer:** $L_s$ = 0.159 nH and $L_g$ = 43.8 nH.
:::
:::

::: example
## What effective transconductance and voltage gain does that LNA give into a 200 Ω load?

::: solution
1. **Effective transconductance.**
   $$\begin{aligned} G_m &= \frac{\omega_T}{2\omega_0R_s} \\ &= \frac{50}{2 \times 2.4 \times 50}\ \text{S} \\ &= 0.21\ \text{S} \end{aligned}$$
2. **Voltage gain.** Into 200 Ω:
   $$\begin{aligned} A_v &= G_m \times 200\ \Omega \\ &= 41.7 \end{aligned}$$
   or 32.4 dB.
3. **Where the gain comes from.** The input network's resonance boosts the gate voltage by its Q.

**Answer:** $G_m$ = 0.21 S and a voltage gain of 41.7, or 32.4 dB.
:::
:::

::: example
## A Gilbert mixer has $g_m$ = 10 mS and 1 kΩ loads. What is its conversion gain?

::: solution
1. **Conversion gain.**
   $$\begin{aligned} A_c &= \frac{2}{\pi} \times 10\ \text{mS} \times 1\ \text{k}\Omega \\ &= 6.4 \end{aligned}$$
   or 16.1 dB.
2. **Why only 2/π.** Only the LO's fundamental mixes the signal to the IF; the harmonics mix other bands, which a front-end filter must keep out.

**Answer:** a conversion gain of 6.4, or 16.1 dB.
:::
:::

::: check
kind: parts
given: f = 20 | 50 | 200; R = 50 | 75

## An LNA transistor has $f_T$ = {f} GHz and the source is {R} Ω.

::: part
answer: R/(2*pi*f*1e9)*1e12
unit: pH
tolerance: 0.5%

### What source inductance makes the input real part match?

::: misses
- [any] $L_s = R_s/\omega_T$.
:::
:::

::: part
answer: 2*pi*f*1e9*R/(2*pi*f*1e9)
unit: Ω
tolerance: 0.5%

### What input resistance does that give?

::: misses
- [any] $\omega_TL_s$.
:::
:::
:::

::: check
kind: parts
given: f = 0.9 | 2.4 | 5.8; C = 50 | 100 | 300; L = 0.1 | 0.3

## An LNA works at {f} GHz with $C_{gs}$ = {C} fF and $L_s$ = {L} nH.

::: part
answer: 1/((2*pi*f*1e9)^2*C*1e-15)*1e9
unit: nH
tolerance: 0.5%

### What total gate-plus-source inductance resonates the input?

::: misses
- [any] $1/(\omega_0^2C_{gs})$.
:::
:::

::: part
answer: 1/((2*pi*f*1e9)^2*C*1e-15)*1e9 - L
unit: nH
tolerance: 0.5%

### What gate inductance is needed?

::: misses
- [any] Total less $L_s$.
:::
:::
:::

::: check
kind: parts
given: t = 20 | 50 | 100; f = 1 | 2.4 | 5; R = 100 | 300

## An LNA's transistor has $f_T$ = {t} GHz, works at {f} GHz from 50 Ω, and drives {R} Ω.

::: part
answer: t/(2*f*50)
unit: S
tolerance: 0.5%

### What is its effective transconductance?

::: misses
- [any] $\omega_T/(2\omega_0R_s)$.
:::
:::

::: part
answer: 20*log(t/(2*f*50)*R)
unit: dB
tolerance: 0.5%

### What voltage gain does it give?

::: misses
- [any] $G_mR_L$ in dB.
:::
:::
:::

::: check
kind: parts
given: g = 0.67 | 1 | 1.5; f = 1 | 2.4 | 10; t = 30 | 100

## An LNA has γ/α = {g} at {f} GHz with a {t} GHz transistor.

::: part
answer: 10*log(1 + 2.3*g*f/t)
unit: dB
tolerance: 0.5%

### What minimum noise figure does it reach?

::: misses
- [any] $1 + 2.3(\gamma/\alpha)(f/f_T)$.
:::
:::

::: part
answer: 2.3*g*f/(10^(0.5/10) - 1)
unit: GHz
tolerance: 0.5%

### What $f_T$ would bring it to 0.5 dB?

::: misses
- [any] Solve for $f_T$.
:::
:::
:::

::: check
kind: parts
given: g = 2 | 10 | 20; R = 0.5 | 1 | 2; s = 900 | 2400; i = 10 | 70

## A Gilbert mixer has $g_m$ = {g} mS and {R} kΩ loads; it mixes a {s} MHz signal with a low-side LO to a {i} MHz IF.

::: part
answer: 2/pi*g*R
tolerance: 0.5%

### What is its conversion gain?

::: misses
- [g*R] Only the square wave's fundamental, $2/\pi$, mixes to the IF.
- [any] $\frac2\pi g_mR_L$.
:::
:::

::: part
answer: s - 2*i
unit: MHz
tolerance: 0.5%

### Where is the image?

::: misses
- [any] LO − IF = signal − 2 IF.
:::
:::
:::

::: check
kind: choice

## Why does an inductively degenerated LNA use $L_s$ to set its input resistance rather than a 50 Ω resistor across the input?

- [ ] Resistors don't work at gigahertz
- [x] A resistor adds its own thermal noise, at least 3 dB of noise figure, while the inductor creates a real input impedance from $\omega_TL_s$ without noise
- [ ] The inductor gives more bandwidth
- [ ] It's cheaper

::: misses
- [1] They do; the problem is their noise.
- [3] The resonant match is actually narrowband.
- [4] Inductors take more area, not less.
:::
:::

::: check
kind: derivation
vars: t = 1e10..1e12, w = 1e9..1e11, R = 25..100, C = 1e-14..1e-12

## An LNA transistor has $\omega_T$ = t and input capacitance C, works at w from source resistance R.

::: step
answer: R/t

### What source inductance matches the real part?
:::

::: step
answer: 1/(w^2*C) - R/t

### What gate inductance resonates the input?
:::

::: step
answer: t/(2*w*R)

### What effective transconductance results?
:::

::: right
Right. A faster transistor needs less degeneration and gives more gain at the same frequency.
:::
:::

::: check
kind: python

## Write `lna_design(fT, f0, Cgs, Rs=50)`: return a dict with `Ls` and `Lg` (henries), `Gm` (siemens) and `Fmin_db` (with γ/α = 1).

```python starter
import math

def lna_design(fT, f0, Cgs, Rs=50):
    return {}
```

```python solution
import math

def lna_design(fT, f0, Cgs, Rs=50):
    wT, w0 = 2 * math.pi * fT, 2 * math.pi * f0
    Ls = Rs / wT
    Lg = 1 / (w0 * w0 * Cgs) - Ls
    Gm = wT / (2 * w0 * Rs)
    F = 1 + 2.3 * f0 / fT
    return {'Ls': Ls, 'Lg': Lg, 'Gm': Gm, 'Fmin_db': 10 * math.log10(F)}
```

```python tests
d = lna_design(50e9, 2.4e9, 100e-15)
assert abs(d['Ls'] - 0.159e-9) < 1e-12, "0.16 nH."
assert abs(d['Lg'] - 43.82e-9) < 0.02e-9, "43.8 nH."
assert abs(d['Gm'] - 0.2083) < 1e-4, "0.21 S."
assert abs(d['Fmin_db'] - 0.454) < 0.01, "0.45 dB at f/fT = 0.048."
```

::: right
Right. Four lines give the first cut of an LNA; layout parasitics and the inductors' own losses then eat into the noise figure.
:::
:::

::: explain
## How does an inductor in a transistor's source create a real input resistance without adding noise?

::: model
With an inductor in the source, the transistor's drain current flows through it and produces a voltage that rises with frequency. Looking into the gate, the gate-source capacitance and the source inductor interact so that the current through $C_{gs}$, multiplied by the transconductance, appears across the inductor in phase with the input current. The input therefore sees a resistance equal to $g_mL_s/C_{gs}$, or $\omega_TL_s$. No physical resistor dissipates the power: it goes into the transistor's output, so no thermal noise from a resistor is added, unlike matching with a real 50 Ω resistor.
:::
:::

::: practice
::: check
given: f = 20 | 30 | 50 | 80 | 100 | 150 | 200
answer: 50/(2*pi*f*1e9)*1e12
unit: pH
tolerance: 0.5%

## Source inductance for 50 Ω with $f_T$ = {f} GHz?

::: misses
- [any] $50/\omega_T$.
:::
:::

::: check
given: t = 40 | 80; f = 2 | 5
answer: t/(2*f*50)
unit: S
tolerance: 0.5%

## Effective $G_m$ with $f_T$ = {t} GHz at {f} GHz from 50 Ω?

::: misses
- [any] $\omega_T/(2\omega_0R_s)$.
:::
:::

::: check
given: g = 5 | 15; R = 0.5 | 2
answer: 2/pi*g*R
tolerance: 0.5%

## Gilbert mixer gain with {g} mS into {R} kΩ?

::: misses
- [any] $\frac2\pi g_mR_L$.
:::
:::
:::
