---
title: Carrier transport lab
heading: Mobility against doping, doping from resistivity, two-carrier Hall analysis, Hall factors and velocity saturation, in Python
eyebrow: B12 · Lesson 31 · Transport lab
xp: 50
---

::: hook
Lessons 29 and 30 described how carriers scatter and how fast they can go. A device engineer turns those into numbers every day: the doping that gives a wafer its specified resistivity, the true carrier density behind a Hall measurement, the correction between Hall and drift mobility, and the voltage at which a resistor stops being ohmic. In this lab you'll build each of those calculations for silicon, checking the integrals and inversions against their closed forms.
:::

::: play
- The curve is n-type silicon's resistivity against its donor density at 300 K, from the Caughey–Thomas mobility fit used throughout this course, on log scales.
- At light doping the mobility is nearly constant and ρ falls as 1/N; above about $10^{17}$ impurity scattering lowers the mobility and the curve steepens.
- The slider picks a doping; the readouts give its mobility, resistivity and the sheet resistance of a 2 µm layer.
:::

```sim plot
view: graph
x: N = 1e13..1e20 cm⁻³ log
y: r = 0.0001..1000 Ω·cm log
slider: d = 1e13..1e20 = 1e16 cm⁻³ log
plot: 1/(1.602176634e-19*N*(92 + 1268/(1 + (N/1.3e17)^0.91))) | label: resistivity | samples: 400
marker: N = d | label: your doping
readout: mobility, cm²/(V·s) = 92 + 1268/(1 + (d/1.3e17)^0.91) | digits: 4
readout: resistivity, Ω·cm = 1/(1.602176634e-19*d*(92 + 1268/(1 + (d/1.3e17)^0.91))) | digits: 4
readout: sheet resistance of 2 µm, Ω/□ = 1/(1.602176634e-19*d*(92 + 1268/(1 + (d/1.3e17)^0.91))*2e-4) | digits: 4
```

::: predict
## A Hall measurement on lightly doped silicon gives a mobility. Is it the same as the drift mobility that sets the conductivity?

- [ ] Yes, exactly
- [x] No: it's larger by a Hall factor that depends on how scattering varies with energy
- [ ] No: it's always smaller
- [ ] Only for holes

::: reveal
No. Carriers of different energies scatter at different rates, and the Hall effect weights the faster-relaxing ones differently from conduction: $\mu_H = r_H\mu$ with $r_H = \frac{\langle\langle\tau^2\rangle\rangle}{\langle\langle\tau\rangle\rangle^2}$. For acoustic-phonon scattering $r_H = \frac{3\pi}{8}$ = 1.18; for ionized-impurity scattering it's 1.93. Step 4 computes both from the energy averages.
:::
:::

::: nameit
## Mobility and resistivity

At 300 K, electron mobility in silicon follows $\mu = 92 + \frac{1268}{1 + (N/1.3 \times 10^{17})^{0.91}}$ cm²/(V·s), and the resistivity is $\rho = \frac{1}{qN\mu(N)}$. Going the other way, from a specified resistivity to the doping, has no closed form; bisection in log N finds it reliably, since ρ falls monotonically with N.

## Two carriers in the Hall effect

With n electrons and p holes, $R_H = \frac{p\mu_p^2 - n\mu_n^2}{q(n\mu_n + p\mu_p)^2}$, and a one-carrier analysis reports $\frac{1}{q|R_H|}$, which can be far from either density.

## Energy averages and the Hall factor

For carriers in a Maxwell–Boltzmann distribution with an energy-dependent relaxation time τ(E), conduction uses $\langle\langle\tau\rangle\rangle = \frac{\langle E\tau\rangle}{\langle E\rangle}$, and the Hall effect $\langle\langle\tau^2\rangle\rangle$. With $\tau \propto E^r$, both are ratios of gamma functions, and the Hall factor is

$$r_H = \frac{\Gamma(\frac52 + 2r)\Gamma(\frac52)}{\Gamma(\frac52 + r)^2}:$$

$\frac{3\pi}{8}$ for acoustic phonons (r = −½) and $\frac{315\pi}{512}$ for ionized impurities (r = 3/2).

## Velocity saturation in a resistor

With $v = \frac{\mu E}{\sqrt{1 + (\mu E/v_{sat})^2}}$, a bar's current saturates as the field rises. It reaches 90% of $qnAv_{sat}$ when $\frac{\mu E}{v_{sat}} = \frac{0.9}{\sqrt{1 - 0.81}}$ = 2.065, so short resistors and channels saturate at low voltages.
:::

::: example
## What donor density gives n-type silicon a resistivity of 1 Ω·cm, and what's its mobility?

::: solution
1. **Solve for the doping.** Bisecting $\frac{1}{qN\mu(N)} = 1$ Ω·cm in log N converges to
   $$N = 4.8 \times 10^{15}\ \text{cm}^{-3}$$
   where μ = 1300 cm²/(V·s).
2. **The naive estimate.** Using the lightly doped mobility of 1360 would give $4.6 \times 10^{15}$, 4% low: small here.
3. **At higher doping.** Near $10^{17}$ the mobility has fallen to 800, and the naive estimate would come out 41% low.
4. **Why it matters.** Wafer specifications are written in resistivity, so this inversion is the first step in any device calculation.

**Answer:** $4.8 \times 10^{15}$ donors per cm³, where the mobility is 1300 cm²/(V·s).
:::
:::

::: example
## Find the Hall factor for acoustic-phonon scattering (τ ∝ $E^{-1/2}$) by computing the energy averages.

::: solution
1. **Weighting.** Average with the Maxwell–Boltzmann weighting $E^{3/2}e^{-E/kT}$ (density of states times the $E$ in $\langle E\tau\rangle$).
2. **The average of τ.**
   $$\begin{aligned} \langle\langle\tau\rangle\rangle &= \tau_0\frac{\Gamma(2)}{\Gamma(5/2)} \\ &= 0.752\tau_0 \end{aligned}$$
3. **The average of τ².**
   $$\begin{aligned} \langle\langle\tau^2\rangle\rangle &= \tau_0^2\frac{\Gamma(3/2)}{\Gamma(5/2)} \\ &= 0.667\tau_0^2 \end{aligned}$$
4. **Hall factor.**
   $$\begin{aligned} r_H &= \frac{0.667}{0.752^2} \\ &= 1.178 \end{aligned}$$
   which is $\frac{3\pi}{8}$.
5. **What it means for measurements.** A Hall measurement in a phonon-limited sample overestimates the drift mobility by 18%, and in an impurity-limited one by 93%; real silicon falls in between, which is why careful work quotes Hall and drift mobilities separately.

**Answer:** the Hall factor for acoustic-phonon scattering is 1.178, which is $\frac{3\pi}{8}$.
:::
:::

::: example
## A silicon resistor 1 µm long has μ = 1350 cm²/(V·s) and $v_{sat} = 1.07 \times 10^7$ cm/s. At what voltage does its current reach 90% of saturation?

::: solution
1. **Field for 90% of saturation.** That needs $\frac{\mu E}{v_{sat}}$ = 2.065, so
   $$\begin{aligned} E &= \frac{2.065 \times 1.07 \times 10^7}{1350} \\ &= 16\,400\ \text{V/cm} \end{aligned}$$
2. **Voltage.**
   $$\begin{aligned} V &= E \times 1\ \mu\text{m} \\ &= 1.64\ \text{V} \end{aligned}$$
3. **Longer resistors.** A 10 µm resistor would need 16 V. On-chip resistors in short-channel processes are made long, or from lower-mobility material such as polysilicon, partly to stay ohmic.

**Answer:** the current reaches 90% of saturation at 1.64 V.
:::
:::

::: check
kind: python

## Step 1. Write `mobility(N)` (the Caughey–Thomas fit above) and `resistivity(N)` for n-type silicon at 300 K, with N in cm⁻³.

```python starter
def mobility(N):
    return 1360.0

def resistivity(N):
    return 1 / (1.602176634e-19 * N * mobility(N))

print(mobility(1e17), resistivity(1e17))
```

```python solution
def mobility(N):
    return 92 + 1268 / (1 + (N / 1.3e17) ** 0.91)

def resistivity(N):
    return 1 / (1.602176634e-19 * N * mobility(N))

print(mobility(1e17), resistivity(1e17))
```

```python tests
assert abs(mobility(1e17) - 801.33) < 0.01, f"μ at 1e17 is 801 cm²/(V·s); got {mobility(1e17)}"
assert abs(resistivity(1e17) - 0.077890) < 1e-5, "ρ at 1e17 is 0.0779 Ω·cm."
assert abs(mobility(1e13) - 1359.9) < 0.2, "Light doping gives nearly 1360."
```

::: right
Right. The fit's three regions, flat, falling and floored at 92, follow lattice scattering, impurity scattering and the heavily doped limit.
:::
:::

::: check
kind: python

## Step 2. Write `doping_for(rho)` returning the donor density giving resistivity `rho` (Ω·cm), by bisection in log N between $10^{12}$ and $10^{21}$.

```python starter
def doping_for(rho):
    return 1 / (1.602176634e-19 * 1360 * rho)

print(doping_for(1.0))
```

```python solution
import math

def mobility(N):
    return 92 + 1268 / (1 + (N / 1.3e17) ** 0.91)

def resistivity(N):
    return 1 / (1.602176634e-19 * N * mobility(N))

def doping_for(rho):
    lo, hi = 12.0, 21.0
    for _ in range(100):
        mid = 0.5 * (lo + hi)
        if resistivity(10**mid) > rho:
            lo = mid
        else:
            hi = mid
    return 10 ** (0.5 * (lo + hi))

print(doping_for(1.0))
```

```python tests
N = doping_for(1.0)
assert abs(N / 4.8013e15 - 1) < 1e-3, f"1 Ω·cm needs 4.80e15 cm⁻³; got {N}"
assert abs(doping_for(0.0779) / 1e17 - 1) < 2e-3, "0.0779 Ω·cm is about 1e17."
assert doping_for(10) < doping_for(1), "Higher resistivity means lighter doping."
```

::: right
Right. Bisecting in log N keeps the search balanced across nine decades.
:::
:::

::: check
kind: python

## Step 3. Write `hall(n, p, un, up)` returning `(R_H, n_apparent)`: the two-carrier Hall coefficient (cm³/C) and the density a one-carrier analysis would report, $\frac{1}{q|R_H|}$.

```python starter
def hall(n, p, un, up):
    q = 1.602176634e-19
    return -1 / (q * n), n

print(hall(1e13, 1e13, 1350, 480))
```

```python solution
def hall(n, p, un, up):
    q = 1.602176634e-19
    RH = (p * up**2 - n * un**2) / (q * (n * un + p * up) ** 2)
    return RH, 1 / (q * abs(RH))

print(hall(1e13, 1e13, 1350, 480))
```

```python tests
RH, na = hall(1e13, 1e13, 1350, 480)
assert abs(RH / -2.9673e5 - 1) < 1e-3, f"Equal densities give R_H = -2.97e5 cm³/C; got {RH}"
assert abs(na / 2.104e13 - 1) < 2e-3, "A one-carrier analysis would report 2.1e13."
RH1, n1 = hall(1e16, 0, 1350, 480)
assert abs(n1 / 1e16 - 1) < 1e-12, "With one carrier the analysis is exact."
```

::: right
Right. Mixed conduction makes the apparent density meaningless unless both carriers are accounted for.
:::
:::

::: check
kind: python

## Step 4. Write `hall_factor(r)` returning $\frac{\langle\langle\tau^2\rangle\rangle}{\langle\langle\tau\rangle\rangle^2}$ for $\tau \propto E^r$ by numerical integration over $x = E/kT$ with weight $x^{3/2}e^{-x}$.

```python starter
def hall_factor(r):
    return 1.0

print(hall_factor(-0.5), hall_factor(1.5))
```

```python solution
import numpy as np

def hall_factor(r):
    x = np.linspace(1e-9, 60, 600001)
    w = x**1.5 * np.exp(-x)
    trap = np.trapezoid if hasattr(np, "trapezoid") else np.trapz
    norm = trap(w, x)
    t1 = trap(w * x**r, x) / norm
    t2 = trap(w * x ** (2 * r), x) / norm
    return float(t2 / t1**2)

print(hall_factor(-0.5), hall_factor(1.5))
```

```python tests
import math
assert abs(hall_factor(-0.5) - 3 * math.pi / 8) < 1e-3, f"Acoustic phonons give 3π/8 = 1.178; got {hall_factor(-0.5)}"
assert abs(hall_factor(1.5) - 315 * math.pi / 512) < 1e-3, f"Ionized impurities give 315π/512 = 1.933; got {hall_factor(1.5)}"
assert abs(hall_factor(0.0) - 1) < 1e-9, "An energy-independent τ gives exactly 1."
```

::: right
Right. The more strongly τ depends on energy, the more the Hall effect overweights the long-lived carriers.
:::
:::

::: check
kind: python

## Step 5. Write `bar_current(V, L, n, A, mu, vsat)` returning the current (A) through a bar of length L (cm), electron density n (cm⁻³) and area A (cm²) with the β = 2 velocity model, and `v90(L, mu, vsat)` returning the voltage for 90% of the saturated current.

```python starter
def bar_current(V, L, n, A, mu, vsat):
    return 1.602176634e-19 * n * A * mu * V / L

def v90(L, mu, vsat):
    return 0.9 * vsat * L / mu

print(v90(1e-4, 1350, 1.07e7))
```

```python solution
import math

def bar_current(V, L, n, A, mu, vsat):
    E = V / L
    v = mu * E / math.sqrt(1 + (mu * E / vsat) ** 2)
    return 1.602176634e-19 * n * A * v

def v90(L, mu, vsat):
    x = 0.9 / math.sqrt(1 - 0.81)
    return x * vsat / mu * L

print(v90(1e-4, 1350, 1.07e7))
```

```python tests
V = v90(1e-4, 1350, 1.07e7)
assert abs(V - 1.6365) < 1e-3, f"A 1 µm bar reaches 90% of saturation at 1.64 V; got {V}"
Isat = 1.602176634e-19 * 1e17 * 1e-8 * 1.07e7
assert abs(bar_current(V, 1e-4, 1e17, 1e-8, 1350, 1.07e7) / Isat - 0.9) < 1e-9, "At that voltage the current is 90% of qnAv_sat."
assert abs(bar_current(1e-4, 1e-4, 1e17, 1e-8, 1350, 1.07e7) / (1.602176634e-19 * 1e17 * 1e-8 * 1350 * 1) - 1) < 1e-6, "At low field it's ohmic."
```

::: right
Right. The saturation voltage scales with length, which is why short devices saturate at low voltages.
:::
:::

::: check
kind: parts
given: N = 1e15 | 1e16 | 1e18; t = 1 | 5

## An n-type silicon layer {t} µm thick is doped to {N} cm⁻³.

::: part
answer: 1/(1.602176634e-19*N*(92 + 1268/(1 + (N/1.3e17)^0.91)))
unit: Ω·cm
tolerance: 0.5%

### What's its resistivity, by the Caughey–Thomas mobility?

::: misses
- [1/(1.602176634e-19*N*1360)] Use the doping-dependent mobility.
- [any] $\rho = \frac{1}{qN\mu(N)}$.
:::
:::

::: part
answer: 1/(1.602176634e-19*N*(92 + 1268/(1 + (N/1.3e17)^0.91))*t*1e-4)
unit: Ω
tolerance: 0.5%

### What's its sheet resistance, per square?

::: misses
- [any] $R_s = \frac{\rho}{t}$.
:::
:::
:::

::: check
given: u = 500 | 1350; r = 1.18 | 1.93
answer: r*u
unit: cm²/(V·s)
tolerance: 0.5%

## Carriers have drift mobility {u} cm²/(V·s) and a Hall factor of {r}. What Hall mobility will a measurement report?

::: right
Right. $\mu_H = r_H\mu$.
:::

::: misses
- [u/r] The Hall mobility is larger than the drift mobility.
- [any] $\mu_H = r_H\mu$.
:::
:::

::: check
given: L = 0.1 | 1 | 10; u = 500 | 1350; v = 0.8 | 1.07
answer: 0.9/sqrt(1 - 0.81)*v*1e7/u*L*1e-4
unit: V
tolerance: 0.5%

## A bar {L} µm long has μ = {u} cm²/(V·s) and $v_{sat}$ = {v} × 10⁷ cm/s (β = 2 model). At what voltage does its current reach 90% of saturation?

::: right
Right. $\frac{\mu E}{v_{sat}}$ = 2.065, so $V = 2.065\frac{v_{sat}}{\mu}L$.
:::

::: misses
- [0.9*v*1e7/u*L*1e-4] The β = 2 curve approaches saturation slowly; solve $\frac{x}{\sqrt{1 + x^2}} = 0.9$.
- [any] $x = \frac{0.9}{\sqrt{0.19}}$.
:::
:::

::: check
given: n = 1 | 5; p = 1 | 5
answer: 1/(1.602176634e-19*abs((p*1e13*480^2 - n*1e13*1350^2)/(1.602176634e-19*(n*1e13*1350 + p*1e13*480)^2)))
unit: cm⁻³
tolerance: 0.5%

## Silicon holds {n} × 10¹³ electrons and {p} × 10¹³ holes per cm³ (μ 1350 and 480). What density would a one-carrier Hall analysis report?

::: right
Right. $\frac{1}{q|R_H|}$ with the two-carrier $R_H$.
:::

::: misses
- [n*1e13] The holes change $R_H$.
- [any] Compute $R_H$ with both carriers, then $\frac{1}{q|R_H|}$.
:::
:::

::: explain
## Why does a Hall measurement give a slightly different mobility from the one that sets a sample's conductivity?

::: model
Conduction and the Hall effect both come from carriers drifting between collisions, but they weight the carriers differently. The current is proportional to the average relaxation time, while the Hall voltage, which comes from the magnetic force acting on the drift velocity during each free flight, is proportional to the average of its square. If every carrier had the same τ the two would agree, but τ depends on energy, and the carriers in a thermal distribution have a spread of energies. Squaring weights the long-lived carriers more, so the Hall mobility is larger by $r_H = \langle\langle\tau^2\rangle\rangle/\langle\langle\tau\rangle\rangle^2$, a factor that depends on which scattering mechanism sets τ(E).
:::
:::

::: practice

::: check
given: N = 1e14 | 1e15 | 3e15 | 1e16 | 1e17 | 3e17
answer: 1/(1.602176634e-19*N*(92 + 1268/(1 + (N/1.3e17)^0.91)))
unit: Ω·cm
tolerance: 0.5%

## n-Si resistivity at {N} cm⁻³ (Caughey–Thomas)?

::: misses
- [any] $\frac{1}{qN\mu(N)}$.
:::
:::

::: check
given: L = 0.5 | 5; u = 800 | 1350
answer: 0.9/sqrt(1 - 0.81)*1.07e7/u*L*1e-4
unit: V
tolerance: 0.5%

## 90% saturation voltage, L = {L} µm, μ = {u}, $v_{sat}$ = 1.07 × 10⁷ cm/s?

::: misses
- [any] $2.065\frac{v_{sat}}{\mu}L$.
:::
:::
:::
