---
title: Signal integrity
heading: Clean edges on real boards
eyebrow: C10 · Lesson 19 · Signal integrity
xp: 40
---

::: hook
A circuit board carrying gigabit data is a dense web of transmission lines, and every flaw shows up in the signal: reflections from unterminated ends, crosstalk from the trace next door, ground that bounces when many outputs switch at once, and edges smeared by loss until a 1 and a 0 can barely be told apart. **Signal integrity** is the discipline of keeping those effects small enough that the receiver still sees clean bits. Its tool of choice is the **eye diagram**: every bit period laid on top of every other, where a wide-open eye means a healthy link and a closed one means errors.
:::

::: play
- An eye diagram of a binary signal after a channel whose bandwidth is fc, in units of the bit rate. Each trace is two bit periods of the received waveform.
- At fc = 2 the eye is wide open. Lower fc: each bit's edges spread into its neighbors (intersymbol interference), and the eye closes from top and bottom.
- Lower Eb/N0 to add noise as well. Around fc = 0.5 the bits are still separable, but there's little margin left.
:::
:::

```sim plot
view: eye
levels: 2
pulse: rect
slider: fc = 0.2..2 = 1 step 0.05
slider: EbN0 = 8..40 = 30 dB step 1
ebn0: EbN0
channel: fc
```

::: predict
## A differential pair's two traces differ in length by 5 mm on FR-4, where signals take about 6 ps per millimeter. How much skew does that cause?

- [ ] 0.6 ps
- [ ] 5 ps
- [x] 30 ps
- [ ] 300 ps

::: reveal
30 ps: 5 mm × 6 ps/mm. At 10 Gb/s a bit lasts 100 ps, so that's nearly a third of a bit between the two halves of the pair, enough to convert some of the signal into common-mode noise. Pairs are length-matched to a fraction of a millimeter for that reason.
:::
:::

::: nameit
## Reflections and termination

From lesson 8: match at the source (series resistor) or at the load (parallel resistor to $Z_0$, or a Thévenin pair, or an RC "AC termination" that draws no DC current), and keep stubs and vias short compared with the rise time's critical length.

## Crosstalk

Neighboring traces couple through their mutual capacitance and inductance. A switching aggressor induces **near-end crosstalk** (traveling back toward the source) of up to

$$V_\text{NEXT} \approx K_bV, \qquad K_b = \tfrac14\left(\frac{C_m}{C} + \frac{L_m}{L}\right)$$

and **far-end crosstalk** that grows with coupled length and edge speed. Both fall quickly with spacing: about as $1/(1 + (s/h)^2)$ for traces a distance s apart at height h over a plane.

## Return paths and ground bounce

At high frequency the return current flows in the plane directly under the trace, where the loop inductance is smallest. A slot in the plane forces it around, adding inductance and radiating. Current changing through a shared inductance makes **ground bounce**:

$$V = L\frac{dI}{dt}$$

## Differential signaling

A pair carries $+v$ and $-v$. Interference that hits both equally (common mode) cancels at the receiver, and the pair's **differential impedance** is about $2Z_0$ for loosely coupled traces (less when they're close). **Skew** between the two halves is their length difference divided by the speed.

## Rise time and loss

Rise times through stages combine as $t_r \approx \sqrt{t_{r1}^2 + t_{r2}^2 + \cdots}$. A channel needs bandwidth of roughly half the bit rate for an open eye; loss that grows with frequency (lesson 18) smears edges and closes the eye, which receivers fight with **equalization**.
:::

::: example
## Eight outputs each switch 20 mA in 1 ns through a shared 2 nH ground connection. How much does the ground bounce?

::: solution
1. **Total current step.** Eight outputs of 20 mA each switch together: 160 mA in 1 ns.
2. **Ground bounce.**
   $$\begin{aligned} V &= L\frac{dI}{dt} \\ &= 2\ \text{nH} \times \frac{8 \times 20\ \text{mA}}{1\ \text{ns}} \\ &= 0.32\ \text{V} \end{aligned}$$
3. **How much that matters.** On 1.8 V logic that's a large fraction of the noise margin, which is why chips have many ground pins and boards use solid planes.

**Answer:** the ground bounces by 0.32 V.
:::
:::

::: example
## A 1 ns edge passes through a buffer whose own rise time is 0.5 ns. What rise time comes out?

::: solution
1. **Add the rise times in quadrature.**
   $$\sqrt{1^2 + 0.5^2}\ \text{ns} = 1.12\ \text{ns}$$
2. **Which stage matters.** The slower stage dominates; adding a stage much faster than the signal changes little.

**Answer:** a 1.12 ns edge comes out.
:::
:::

::: example
## A signal has 100 ps edges. What bandwidth does it occupy, and how fast must a scope be to measure the edge within 5%?

::: solution
1. **Signal bandwidth.**
   $$\begin{aligned} BW &\approx \frac{0.35}{t_r} \\ &= 3.5\ \text{GHz} \end{aligned}$$
2. **Scope rise time.** Rise times add in quadrature, so for the displayed edge to be within 5% of 100 ps,
   $$\sqrt{100^2 + t_s^2} \le 105$$
   which gives $t_s \le 32$ ps.
3. **Scope bandwidth.**
   $$\frac{0.35}{32\ \text{ps}} \approx 11\ \text{GHz}$$
   about three times the signal's.

**Answer:** the signal occupies about 3.5 GHz, and the scope needs a rise time of 32 ps or less, a bandwidth of about 11 GHz.
:::
:::

::: check
given: dl = 1 | 5 | 12; er = 3.3 | 4.2
answer: dl*sqrt(er)/0.299792458
unit: ps
tolerance: 0.5%

## A differential pair's traces differ by {dl} mm on a board with $\varepsilon_\text{eff}$ = {er}. What is the skew?

::: right
Right. $\Delta l\sqrt{\varepsilon_\text{eff}}/c$ = {answer} ps.
:::

::: misses
- [dl/0.299792458] Signals on the board are slower than in vacuum.
- [any] Not yet. Length difference over speed.
:::
:::

::: check
given: L = 0.5 | 2 | 5; n = 4 | 16; I = 10 | 24; tr = 0.5 | 2
answer: L*n*I/tr
unit: mV
tolerance: 0.5%

## {n} outputs each switch {I} mA in {tr} ns through a shared {L} nH. How big is the ground bounce?

::: right
Right. $L\,dI/dt$ = {answer} mV.
:::

::: misses
- [L*I/tr] All {n} currents share the inductance.
- [any] Not yet. $L \times nI/t_r$.
:::
:::

::: check
given: a = 0.5 | 1 | 2; b = 0.3 | 1.5
answer: sqrt(a^2 + b^2)
unit: ns
tolerance: 0.5%

## An edge with a {a} ns rise time passes through a stage with a {b} ns rise time. About what rise time comes out?

::: right
Right. $\sqrt{t_1^2 + t_2^2}$ = {answer} ns.
:::

::: misses
- [a + b] Rise times add in quadrature, not directly.
- [any] Not yet. Root sum of squares.
:::
:::

::: check
given: Cm = 0.05 | 0.1 | 0.2; Lm = 0.1 | 0.3; V = 1 | 3.3
answer: V*(Cm + Lm)/4
unit: V
tolerance: 0.5%

## Two traces couple with $C_m/C$ = {Cm} and $L_m/L$ = {Lm}. A {V} V edge on one. About how big is the near-end crosstalk on the other?

::: right
Right. $K_bV = \tfrac14(C_m/C + L_m/L)V$ = {answer} V.
:::

::: misses
- [V*(Cm + Lm)/2] The backward coupling coefficient has a factor 1/4.
- [any] Not yet. $\tfrac14(C_m/C + L_m/L)V$.
:::
:::

::: check
given: Z0 = 45 | 50 | 55
answer: 2*Z0
unit: Ω
tolerance: 0.5%

## Two loosely coupled {Z0} Ω traces form a differential pair. About what is its differential impedance?

::: right
Right. About $2Z_0$ = {answer} Ω; coupling lowers it a little.
:::

::: misses
- [Z0/2] That's the common-mode impedance of the two in parallel.
- [any] Not yet. The two traces in series for a differential signal.
:::
:::

::: check
given: R = 1 | 5 | 25
answer: R/2
unit: GHz
tolerance: 0.5%

## About how much channel bandwidth does a {R} Gb/s binary link need for an open eye?

::: right
Right. Roughly half the bit rate: {answer} GHz.
:::

::: misses
- [R] Half the bit rate is the Nyquist frequency of the fastest pattern, 1010….
- [any] Not yet. About half the bit rate.
:::
:::

::: check
kind: choice

## A high-speed trace crosses a slot cut in the ground plane beneath it. What's the main problem?

- [ ] The trace's resistance rises
- [x] The return current must detour around the slot, making a large loop that adds inductance and radiates
- [ ] The trace's dielectric constant changes
- [ ] Nothing: return current flows by the shortest DC path anyway

::: misses
- [1] The trace itself is unchanged.
- [3] The material is the same; the return path is what's broken.
- [4] At high frequency the return follows the trace, under it, to minimize inductance.
:::
:::

::: check
kind: parts
given: N = 4 | 8 | 16; I = 10 | 25; t = 0.5 | 2; L = 1 | 5

## {N} outputs each switch {I} mA in {t} ns through a shared {L} nH ground lead.

::: part
answer: L*1e-9*N*I*1e-3/(t*1e-9)*1000
unit: mV
tolerance: 0.5%

### How much does the ground bounce?

::: misses
- [any] $L\,\Delta I/\Delta t$ with all the currents together.
:::
:::

::: part
answer: L*1e-9*I*1e-3/(t*1e-9)*1000
unit: mV
tolerance: 0.5%

### How much if each output had its own lead?

::: misses
- [any] One output's current.
:::
:::
:::

::: check
kind: parts
given: t1 = 100 | 500; t2 = 50 | 200 | 300

## A {t1} ps edge passes through a stage with a {t2} ps rise time.

::: part
answer: sqrt(t1^2 + t2^2)
unit: ps
tolerance: 0.5%

### What rise time comes out?

::: misses
- [t1 + t2] Rise times add in quadrature.
- [any] $\sqrt{t_1^2 + t_2^2}$.
:::
:::

::: part
answer: 0.35/sqrt(t1^2 + t2^2)*1000
unit: GHz
tolerance: 0.5%

### What bandwidth does that correspond to?

::: misses
- [any] $0.35/t_r$.
:::
:::
:::

::: explain
## Why does differential signaling reject interference that single-ended signaling picks up?

::: model
A differential pair sends the signal as the difference between two conductors routed side by side. Interference from a nearby source, magnetic or electric, couples into both conductors almost equally, because they're close together and see nearly the same field. The receiver responds only to the difference between them, so the equal parts, the common mode, cancel, while the signal, which is opposite on the two, doubles. A single-ended signal is measured against a ground that may be far away and carrying other currents, so any interference between the trace and that ground appears directly as noise.
:::
:::

::: practice

::: check
given: dl = 1 | 2 | 3 | 5 | 8 | 10 | 15
answer: dl*6.06
unit: ps
tolerance: 0.5%

## Skew from {dl} mm of length mismatch at 6.06 ps/mm?

::: misses
- [any] Length × delay per mm.
:::
:::

::: check
given: L = 1 | 3; I = 50 | 200; tr = 1 | 5
answer: L*I/tr
unit: mV
tolerance: 0.5%

## Bounce across {L} nH for {I} mA in {tr} ns?

::: misses
- [any] $L\,dI/dt$.
:::
:::

::: check
given: a = 0.2 | 3; b = 0.4 | 4
answer: sqrt(a^2 + b^2)
unit: ns
tolerance: 0.5%

## Combined rise time of {a} ns and {b} ns?

::: misses
- [any] $\sqrt{a^2 + b^2}$.
:::
:::
:::
