---
title: "Capstone: a process-flow puzzle"
heading: Putting the steps of a CMOS process in their working order, matching each tool to its job, and then following one step closely in code, an implanted and annealed source and drain, to see how the anneal moves the junction while leaving the sheet resistance almost untouched
eyebrow: D6 · Lesson 9 · Capstone
xp: 80
---

::: hook
A process engineer's job is to put hundreds of steps in an order where each one works: you can't etch a gate before you've deposited it, implant a source before the gate exists to mask it, or heat the wafer to 1000 °C after the copper is in. This capstone asks you to assemble the core of a CMOS flow, then zoom in on one step that every transistor depends on, the source and drain implant and its anneal, and compute in code what it does to the junction and the resistance.
:::

::: play
- An n⁺ source/drain implant ($5 \times 10^{15}$ cm⁻² at a projected range of 80 nm with 20 nm straggle) in a $10^{17}$ cm⁻³ p-type well, and the same profile after an anneal of t seconds at diffusivity D (in units of $10^{-14}$ cm²/s).
- The anneal spreads the Gaussian, lowering its peak and pushing the junction deeper, while the dose under the curve stays the same.
- Long, hot anneals push junctions too deep for short transistors: modern processes use millisecond and spike anneals.
:::

```sim plot
view: graph
x: x = 0..400
y: N = 1e15..1e21 log
slider: D = 0.1..10 = 1.4 log
slider: t = 1..1000 = 60 log
plot: 5e15/(sqrt(2*pi)*20e-7)*exp(-(x - 80)^2/(2*20^2)) | samples: 500 | dashed | color: ch3 | label: as implanted, cm⁻³ (x in nm)
plot: 5e15/(sqrt(2*pi)*sqrt(400 + 2*D*t*100)*1e-7)*exp(-(x - 80)^2/(2*(400 + 2*D*t*100))) | samples: 500 | label: after the anneal
plot: 1e17 + 0*x | dashed | color: ch4 | label: p-well doping
readout: straggle after the anneal, nm = sqrt(400 + 2*D*t*100) | digits: 3
readout: junction depth after the anneal, nm = 80 + sqrt(400 + 2*D*t*100)*sqrt(2*ln(5e15/(sqrt(2*pi)*sqrt(400 + 2*D*t*100)*1e-7)/1e17)) | digits: 4
```

::: predict
## A 60 s anneal at $D = 1.4 \times 10^{-14}$ cm²/s widens the 20 nm straggle. To what?

- [ ] 20.0 nm, unchanged
- [x] About 23.8 nm
- [ ] About 40 nm
- [ ] About 92 nm

::: reveal
Diffusion adds 2Dt to the Gaussian's variance: 2 × 1.4 × 10⁻¹⁴ × 60 = 1.68 × 10⁻¹² cm², or 168 nm², so the straggle becomes √(400 + 168) = 23.8 nm. The junction moves from 165.8 nm to 181.3 nm deep, while the sheet resistance hardly changes, as the Python step below shows.
:::
:::

::: check
kind: order

## Put these steps of a simplified CMOS front end in order, first to last.

1. Grow a thin pad oxide and deposit silicon nitride
2. Pattern and etch the isolation trenches
3. Fill the trenches with oxide and polish the wafer flat
4. Implant the n-wells and p-wells
5. Grow the gate dielectric and deposit the gate material
6. Pattern and etch the gates
7. Implant the sources and drains, using the gates as masks
8. Anneal to repair the crystal and activate the dopants
9. Deposit insulator, etch contact holes and fill them with tungsten
10. Build the copper wiring levels

::: right
Right. Isolation comes first, then the wells, then the gate stack, which then serves as the mask that aligns each source and drain to its own gate. The high-temperature anneal must come before any metal, and the copper wiring goes on last because copper can't survive front-end temperatures.
:::
:::

::: check
kind: match

## Match each tool to its job.

- Lithography :: Defines where the next step acts
- Ion implantation :: Places dopants at a chosen depth
- Annealing :: Repairs damage and activates dopants
- Chemical-mechanical polishing :: Flattens the surface
- Plasma etching :: Removes material straight down through openings
- Atomic layer deposition :: Grows a film one atomic layer at a time

::: right
Right. Every layer of the chip goes through some of these, many of them dozens of times.
:::
:::

::: nameit
## Why this order

- **Isolation first**: shallow trenches filled with oxide separate neighboring transistors and must exist before anything is built between them.
- **Wells next**: deep, light implants set each transistor's body type and threshold.
- **Self-aligned gates**: the gate is patterned before the source and drain, so it masks the channel during their implant, aligning every source and drain to its gate without a second lithography step. (Advanced processes replace the polysilicon later with a metal gate.)
- **Heat before metal**: activation anneals reach 1000 °C or more, so they precede silicide, tungsten contacts and copper wiring, which tolerate only about 400 °C.

## The source/drain step

The implant is a Gaussian of dose Q at depth $R_p$ with straggle $\Delta R_p$ (lesson 6). An anneal with diffusivity D for time t widens it to

$$\Delta R_p' = \sqrt{\Delta R_p^2 + 2Dt}$$

with the dose unchanged, which lowers the peak and deepens the junction. The **sheet resistance**, in ohms per square, is

$$R_s = \frac{1}{\int_0^{x_j}q\,N_\text{net}(x)\,\mu(x)\,dx} \approx \frac{1}{q\bar\mu Q}$$

For a dose of $5 \times 10^{15}$ cm⁻² and mobility near 95 cm²/V·s at $10^{20}$ cm⁻³, about 13 Ω/□. Since the dose is fixed and mobility hardly changes at such heavy doping, the anneal barely moves $R_s$.
:::

::: example
## What's the rough sheet resistance of the $5 \times 10^{15}$ cm⁻² source/drain, and the junction depth before the anneal?

::: solution
1. **Rough sheet resistance.** With q = 1.602 × 10⁻¹⁹ C, μ = 95 cm²/V·s and Q = 5 × 10¹⁵ cm⁻²:
   $$\begin{aligned} R_s &= \frac{1}{q\mu Q} \\ &= 13.1\ \Omega/\square \end{aligned}$$
   (the careful integral gives 13.44).
2. **Peak concentration.**
   $$\begin{aligned} N_p &= \frac{5 \times 10^{15}}{\sqrt{2\pi} \times 2 \times 10^{-6}} \\ &= 1.0 \times 10^{21}\ \text{cm}^{-3} \end{aligned}$$
3. **Junction depth.** The profile falls to the $10^{17}$ background $10^4$ times below the peak:
   $$\begin{aligned} x_j &= 80 + 20\sqrt{2\ln 10^4}\ \text{nm} \\ &= 165.8\ \text{nm} \end{aligned}$$

**Answer:** about 13.1 Ω/□ (13.44 by the careful integral), and a junction depth of 165.8 nm before the anneal.
:::
:::

::: example
## An implant of $10^{15}$ cm⁻² has a 20 nm straggle. What is its peak concentration?

::: solution
1. **Peak of a Gaussian.** A Gaussian of dose Q and straggle ΔR peaks at
   $$\begin{aligned} N_p &= \frac{Q}{\sqrt{2\pi}\,\Delta R} \\ &= \frac{10^{15}}{2.507 \times 2 \times 10^{-6}} \\ &= 2.0 \times 10^{20}\ \text{cm}^{-3} \end{aligned}$$
2. **Five times the dose.** Five times the dose gives five times the peak, the $1.0 \times 10^{21}$ of the source and drain.

**Answer:** the peak is $2.0 \times 10^{20}$ cm⁻³.
:::
:::

::: check
kind: python

## Model the implant and the anneal, find the junction, and integrate the sheet resistance.

```python starter
import numpy as np

Q_E = 1.602e-19

def profile(x, dose, rp, dr):
    # Implanted concentration (cm^-3) at depth x (cm): a Gaussian of the given dose (cm^-2),
    # centered at rp with straggle dr (both in cm).
    return np.zeros_like(np.asarray(x, dtype=float))

def anneal(dr, D, t):
    # An anneal with diffusivity D (cm^2/s) for t seconds widens the Gaussian:
    # the new straggle is sqrt(dr^2 + 2*D*t).
    return dr

def junction_depth(dose, rp, dr, nb):
    # Depth (cm) beyond the peak where the profile falls to the background nb.
    return rp

def mobility(n):
    # Electron mobility (cm^2/V s) at total doping n, the fit from B9:
    # 92 + 1268/(1 + (n/1.3e17)^0.91).
    return 1300.0

def sheet_resistance(dose, rp, dr, nb, points=20001):
    # Ohms per square of an n-type implant over p-type background nb: integrate the
    # conductivity q*(N - nb)*mobility(N + nb) from the surface to the junction with the
    # trapezoid rule on `points` evenly spaced depths, and return 1 over the result.
    return 0.0
```

```python solution
import numpy as np

Q_E = 1.602e-19

def profile(x, dose, rp, dr):
    x = np.asarray(x, dtype=float)
    return dose/(np.sqrt(2*np.pi)*dr)*np.exp(-(x - rp)**2/(2*dr**2))

def anneal(dr, D, t):
    return np.sqrt(dr**2 + 2*D*t)

def junction_depth(dose, rp, dr, nb):
    peak = dose/(np.sqrt(2*np.pi)*dr)
    return rp + dr*np.sqrt(2*np.log(peak/nb))

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

def sheet_resistance(dose, rp, dr, nb, points=20001):
    xj = junction_depth(dose, rp, dr, nb)
    x = np.linspace(0, xj, points)
    n = profile(x, dose, rp, dr)
    s = Q_E*(n - nb)*mobility(n + nb)
    h = x[1] - x[0]
    return 1/(h*(np.sum(s) - (s[0] + s[-1])/2))
```

```python tests
_x = np.linspace(-1e-5, 3e-5, 400001)
_n = profile(_x, 5e15, 8e-6, 2e-6)
assert abs((_x[1] - _x[0])*np.sum(_n)/5e15 - 1) < 1e-6, "The profile should hold the whole dose: its integral is the dose."
assert abs(profile(8e-6, 5e15, 8e-6, 2e-6)/(5e15/(np.sqrt(2*np.pi)*2e-6)) - 1) < 1e-12, "The peak, at rp, is dose/(sqrt(2 pi) dr)."
assert abs(anneal(2e-6, 1.4e-14, 60) - np.sqrt(4e-12 + 1.68e-12)) < 1e-15, "A 60 s anneal at D = 1.4e-14 cm^2/s widens 20 nm to 23.8 nm."
assert abs(junction_depth(1e15, 5e-6, 2e-6, 1e17) - 1.27965e-5) < 1e-9, "For 1e15 cm^-2 at 50 nm with 20 nm straggle into 1e17, the junction is 128 nm deep."
assert abs(mobility(1e16) - 1247.99) < 0.01, "The mobility fit gives 1248 cm^2/V s at 1e16."
_d2 = anneal(2e-6, 1.4e-14, 60)
_j1, _j2 = junction_depth(5e15, 8e-6, 2e-6, 1e17), junction_depth(5e15, 8e-6, _d2, 1e17)
assert abs(_j1 - 1.6583e-5) < 1e-9 and abs(_j2 - 1.8130e-5) < 1e-9, f"The junction should move from 165.8 nm to 181.3 nm; got {_j1*1e7:.1f} and {_j2*1e7:.1f} nm."
_r1 = sheet_resistance(5e15, 8e-6, 2e-6, 1e17)
_r2 = sheet_resistance(5e15, 8e-6, _d2, 1e17)
assert abs(_r1 - 13.441) < 0.01 and abs(_r2 - 13.430) < 0.01, f"The source/drain should measure 13.44 ohms per square before the anneal and 13.43 after; got {_r1:.3f} and {_r2:.3f}."
```

::: right
Right. The anneal pushes the junction from 165.8 to 181.3 nm, and the sheet resistance only moves from 13.44 to 13.43 Ω/□.
:::
:::

::: check
given: s = 10 | 20 | 30; D = 0.5 | 1.4 | 5; t = 10 | 60 | 600
answer: sqrt(s^2 + 2*D*t*100)
unit: nm
tolerance: 0.5%

## An implant with {s} nm of straggle is annealed for {t} s at $D$ = {D} × $10^{-14}$ cm²/s. What's its new straggle?

::: right
Right. $\sqrt{\Delta R_p^2 + 2Dt}$ = {answer} nm.
:::

::: misses
- [s + sqrt(2*D*t*100)] Variances add, not standard deviations.
- [any] Not yet. Add 2Dt to the variance, in nm².
:::
:::

::: check
given: e = 14 | 15 | 16; m = 90 | 150 | 400
answer: 1/(1.602e-19*m*10^e)
unit: Ω
tolerance: 0.5%

## About what sheet resistance does an n-type layer with a dose of $10^{\given{e}}$ cm⁻² and an average mobility of {m} cm²/V·s have, in ohms per square?

::: right
Right. $1/(q\bar\mu Q)$ = {answer} Ω/□.
:::

::: misses
- [1.602e-19*m*10^e] That's the sheet conductance; take its reciprocal.
- [any] Not yet. One over charge times mobility times dose.
:::
:::

::: check
kind: parts
given: Q = 1 | 5 | 10; s = 10 | 20 | 40

## An implant of $Q \times 10^{15}$ cm⁻², Q = {Q}, has a straggle of {s} nm.

::: part
answer: Q*1e15/(sqrt(2*pi)*s*1e-7)
unit: cm⁻³
tolerance: 0.5%

### What is its peak concentration?

::: misses
- [any] $Q/(\sqrt{2\pi}\,\Delta R)$.
:::
:::

::: part
answer: 1/(1.602e-19*95*Q*1e15)
unit: Ω
tolerance: 0.5%

### Roughly what sheet resistance does it give, with a mobility of 95 cm²/V·s?

::: misses
- [any] $1/(q\mu Q)$.
:::
:::
:::

::: check
kind: parts
given: Rp = 50 | 80; s = 15 | 20; N = 1e4 | 1e5

## An implant peaks at depth {Rp} nm with straggle {s} nm, into a background {N} times below its peak.

::: part
answer: Rp + s*sqrt(2*ln(N))
unit: nm
tolerance: 0.5%

### At what depth does it fall to the background (the junction)?

::: misses
- [any] $R_p + \Delta R\sqrt{2\ln(N_\text{peak}/N_B)}$.
:::
:::

::: part
answer: s*sqrt(2*ln(N))
unit: nm
tolerance: 0.5%

### How far below the peak is that?

::: misses
- [any] $\Delta R\sqrt{2\ln(\text{ratio})}$.
:::
:::
:::

::: explain
## Why must the source and drain be implanted after the gate is patterned?

::: model
The gate sits over the channel, and the source and drain must begin exactly at its edges: any gap would leave an ungated, high-resistance stretch, and any overlap adds capacitance between the gate and the source or drain. Implanting after the gate is patterned lets the gate itself act as the mask, since the ions can't get through it into the channel underneath, so each source and drain lines up with its own gate automatically, with no second alignment that could be a few nanometers off. This self-alignment is one of the key ideas that made dense CMOS manufacturable, and it fixes the order of the gate and the source and drain steps.
:::
:::

::: practice

::: check
given: s = 5 | 60; D = 0.1 | 10; t = 1 | 3600
answer: sqrt(s^2 + 2*D*t*100)
unit: nm
tolerance: 0.5%

## Annealed straggle: {s} nm, D = {D} × 10⁻¹⁴ cm²/s, {t} s?

::: misses
- [any] $\sqrt{\Delta R_p^2 + 2Dt}$.
:::
:::

::: check
given: e = 12 | 13 | 14 | 15 | 16; m = 60 | 1300
answer: 1/(1.602e-19*m*10^e)
unit: Ω
tolerance: 0.5%

## Sheet resistance: $10^{\given{e}}$ cm⁻², μ = {m}?

::: misses
- [any] $1/(q\mu Q)$.
:::
:::
:::
