Signaling · line codes

PAM4 Signaling Primer

Four-level pulse amplitude modulation from first principles: what it buys, what its 9.5 dB costs, how Gray coding, transition shaping and RS FEC make it work, and how the receiver gets the bits back. Every section has a worked example with real numbers. Mappings marked illustrative show the method; the normative tables live in the standards.

The one-paragraph answer

PAM4 sends one of four levels per symbol, written −3, −1, +1, +3, so each symbol carries exactly two bits and the symbol rate is half the bit rate. That halves the Nyquist frequency compared with NRZ, which is decisive on high-loss channels: 50, 100 and 200 Gb/s per lane Ethernet, PCIe 6.0 and 7.0, and most data-center optics. The price is three stacked eyes, each a third of the NRZ height: a 9.54 dB SNR penalty, plus tighter linearity, three slicers, six kinds of transition and worse DFE error propagation. Two bits per symbol need no block code; Gray mapping makes a one-level slip cost one bit. PAM4 links almost always run with a raw error rate around \(10^{-4}\)–\(10^{-6}\) and rely on RS FEC to clean it up.

01The idea

PAM4 splits the swing into four equally spaced levels. Normalized, they are \(-3, -1, +1, +3\) (so adjacent levels are 2 apart); in volts, a 800 mV peak-to-peak differential signal has levels at \(\pm 400\) and \(\pm 133\ \text{mV}\).

The 12-bit word 0x5A7 as six Gray-coded PAM4 symbols (section 06). Dashed amber lines are the receiver's three decision thresholds at \(-2, 0, +2\).

02Bits per symbol

\(\log_2 4 = 2\) exactly, so PAM4 packs bits with no waste and no block code: every pair of bits is one symbol, and every symbol is one pair of bits.

SchemeLevels MBits/symbol (max)EyesEye height vs NRZSNR penaltySlicers
NRZ / PAM221.000110 dB1
PAM331.58521/26.02 dB2
PAM442.00031/39.54 dB3
PAM662.58551/513.98 dB5
PAM883.00071/716.9 dB7

The penalty column is \(20\log_{10}(M-1)\); for PAM4, \(20\log_{10}3 = 9.54\ \text{dB}\).

03Bandwidth: the reason it exists

At a fixed bit rate, PAM4 halves the baud and the Nyquist frequency. On a channel whose loss in dB grows roughly linearly with frequency, that saves half the loss. When half the loss is more than 9.54 dB, PAM4 wins; that happens once NRZ's loss passes about 19 dB.

Worked example · one 106.25 Gb/s lane (100 Gb/s Ethernet), five ways

Take a slope of 1.0 dB/GHz near these frequencies (a round number for the arithmetic, not a spec value):

$$\begin{array}{lrrcrcr} & \text{baud} & \text{loss at Nyquist} & & \text{level penalty} & & \text{total}\\ \text{NRZ:} & 106.25\ \text{GBd} & 53.1\ \text{dB} & + & 0.00\ \text{dB} & = & 53.1\ \text{dB}\\ \text{PAM3 (11b/7t):} & 67.6\ \text{GBd} & 33.8\ \text{dB} & + & 6.02\ \text{dB} & = & 39.8\ \text{dB}\\ \text{PAM4:} & 53.1\ \text{GBd} & 26.6\ \text{dB} & + & 9.54\ \text{dB} & = & 36.1\ \text{dB}\\ \text{PAM6 (2.5 b/sym):} & 42.5\ \text{GBd} & 21.3\ \text{dB} & + & 13.98\ \text{dB} & = & 35.2\ \text{dB}\\ \text{PAM8:} & 35.4\ \text{GBd} & 17.7\ \text{dB} & + & 16.90\ \text{dB} & = & 34.6\ \text{dB} \end{array}$$

NRZ is out of the running by 17 dB. PAM4 beats PAM3 by almost 4 dB here, the reverse of the 40 Gb/s USB4 case: the steeper the total loss, the more each halving of the baud is worth. On this crude budget PAM6 and PAM8 edge ahead again, which is exactly why 448 Gb/s per lane work is evaluating them (section 14). In practice their tighter linearity, jitter and SNR needs eat that margin, and PAM4 has carried 50, 100 and 200 Gb/s per lane.

04Eye height and the 9.5 dB penalty

Idealized eyes at the same peak-to-peak swing. PAM4 stacks three eyes, each one third of the NRZ height.

$$\begin{aligned} P_{\text{sym}} &= 2\left(1 - \frac{1}{M}\right) Q\!\left(\frac{d}{2\sigma}\right)\\ \text{PAM4:}\quad P_{\text{sym}} &= \frac{3}{2}\, Q\!\left(\frac{d}{2\sigma}\right), \qquad d = \frac{V_{\text{pp}}}{3}, \qquad \text{BER} \approx \frac{P_{\text{sym}}}{2}\ \text{(Gray)} \end{aligned}$$

Worked example · same swing, same noise

800 mV peak-to-peak at the slicer, \(\sigma = 20\ \text{mV}\).

  1. NRZ: \(d = 800\ \text{mV}\), \(d/2\sigma = 20\), \(Q(20) \approx 3\times10^{-89}\).
  2. PAM4: \(d = 266.7\ \text{mV}\), \(d/2\sigma = 6.67\), \(Q(6.67) = 1.31\times10^{-11}\), so \(P_{\text{sym}} = 1.5 \times 1.31\times10^{-11} = 1.96\times10^{-11}\) and \(\text{BER} \approx 9.8\times10^{-12}\).
  3. The penalty: to give PAM4 the NRZ margin you'd need \(3\times\) the swing, \(20\log_{10}3 = +9.54\ \text{dB}\).

Real PAM4 SerDes don't try to reach \(10^{-12}\) raw. Ethernet's RS(544,514) is designed for a pre-FEC BER around \(2.4\times10^{-4}\); PCIe 6.0 targets a first-bit error rate of \(10^{-6}\). The FEC turns those into effectively error-free links.

Bit errors vs symbol errors

A noise-driven error moves a symbol to an adjacent level. With Gray mapping adjacent levels differ in one bit, so one symbol error is one bit error and \(\text{BER} \approx P_{\text{sym}}/2\). With natural binary mapping, the slip between −1 (01) and +1 (10) flips both bits.

05Mapping bits to levels

Because \(4 = 2^2\), the packing question becomes a mapping question, plus an optional code on top when the link wants to shape which transitions occur.

CodeData wordsCodewordsBits/symbolEfficiencyUsed in
Gray 2b/1s442.000100%Ethernet 50G+/lane, PCIe 6.0/7.0, 2B1Q (ISDN, HDSL)
Natural binary442.000100%Rare: 1.33 bit errors per adjacent slip on average
MTA 7b/4s1282561.75087.5%GDDR6X-class memory: no ±3 ↔ ∓3 transitions
64B/65B + RS(360,326)——1.77888.9%802.3ch 2.5/5/10GBASE-T1 (with 10 OAM bits per frame)
256b/257b + RS(544,514)——1.88294.1%100/200/400/800G Ethernet electrical and optical lanes

The last two rows aren't block codes on the symbols; they're the transcoding and FEC overhead per PAM4 symbol, which is where a PAM4 link actually spends its spare capacity.

06Gray coding, worked end to end

BitsGray levelBinary level
00−3−3
01−1−1
11+1+3
10+3+1

Gray order along the levels is 00, 01, 11, 10: each neighbour differs in one bit. 802.3 and PCIe 6.0 both Gray-code; the exact bit order (which bit is MSB on the wire) is set by each standard.

Worked example · encode 0x5A7

  1. Bits: \(\text{0x5A7} = 0101\,1010\,0111_2\).
  2. Pairs: 01 · 01 · 10 · 10 · 01 · 11.
  3. Map:
    01→−101→−110→+310→+301→−111→+1
  4. Rate: 12 bits in 6 symbols, 2 bits/symbol. To send 106.25 Gb/s you need 53.125 GBd.

Decoding with an error

  1. Noise pulls symbol 3 (+3) down past the top threshold; it slices as +1. Gray: 10 → 11, one bit wrong.
  2. Now symbol 6 (+1) slips to −1. Gray: 11 → 01, one bit wrong. With binary mapping (+3 = 11, −1 = 01) the same slip would be 10 → 01: two bits wrong.
  3. Averaged over the three adjacent pairs, binary costs \((1+2+1)/3 = 1.33\) bits per symbol error; Gray costs 1.

07Scrambling, DC and transition shaping

PAM4 links don't spend codewords on DC balance. AC-coupled lanes rely on a scrambler to make the level sequence look random, so long runs and net DC are statistically rare and the coupling capacitor is sized to ride through them. Codes come back only where a specific transition hurts.

The transition that hurts most is the full swing, \(-3 \leftrightarrow +3\): largest \(dV/dt\) (crosstalk and supply noise), the earliest threshold crossings (CDR skew, section 11), and the biggest pattern-dependent ISI. Maximum transition avoidance (MTA) codes remove it.

Worked example · the MTA trade

  1. Four PAM4 symbols have \(4^4 = 256\) patterns. Removing every pattern with an internal \(-3 \leftrightarrow +3\) step leaves 178; the MTA patent (US10491238) applies further rules and draws its 128 codewords from 139 candidates.
  2. 128 codewords carry 7 bits, so 7 bits ride in 4 symbols: 1.75 bits/symbol, 87.5% of raw PAM4. The eighth bit of each byte goes on a separate DBI line.
  3. At codeword boundaries the encoder inverts the next codeword when needed, so no full swing appears between words either.
  4. Cost: 12.5% more symbols for the same data. Benefit: the outer eyes no longer see the worst-case edge, which the patent reports as larger upper and lower eye openings above about 20 Gb/s per pin.

08RS(544,514): the PAM4 coding stack

Ethernet PAM4 lanes run the "KP4" Reed–Solomon code RS(544,514) over 10-bit symbols. Before it, 64b/66b blocks are transcoded to 256b/257b to win back the room the FEC parity needs.

Worked example · why 100 Gb/s Ethernet runs at 53.125 GBd

$$\begin{aligned} R_{\text{line}} &= 100\ \text{Gb/s} \times \underbrace{\tfrac{66}{64}}_{\text{64b/66b}} \times \underbrace{\tfrac{257}{264}}_{\text{4}\times\text{66b} \to \text{257b}} \times \underbrace{\tfrac{544}{514}}_{\text{RS FEC}} = 106.25\ \text{Gb/s}\\ f_{\text{baud}} &= \frac{106.25\ \text{Gb/s}}{2\ \text{bits/symbol}} = 53.125\ \text{GBd}, \qquad f_{\text{Nyq}} = 26.56\ \text{GHz}\\ t &= \frac{544 - 514}{2} = 15 \text{ RS symbols correctable per codeword}\\ \text{codeword} &= 5440 \text{ bits} = 2720 \text{ PAM4 symbols}; \quad 1 \text{ RS symbol} = 10 \text{ bits} = 5 \text{ PAM4 symbols} \end{aligned}$$

Five PAM4 symbols fill one 10-bit RS symbol, so a short DFE burst inside one RS symbol costs only one of the 15 correctable symbols. That alignment, like the 9-bit RS symbol in 1000BASE-T1's PAM3, is deliberate.

802.3ch automotive multi-gig

$$\begin{aligned} \text{RS input} &= 50 \times 65\text{B} + 10\ \text{OAM} = 3260 \text{ bits} = 326 \times 10\text{-bit symbols}\\ \text{RS output} &= 360 \times 10 = 3600 \text{ bits}, \quad t = \tfrac{360-326}{2} = 17\\ \text{10GBASE-T1:}\quad & 5.625\ \text{GBd} \times 2 \times \tfrac{50 \times 64}{3600} = 10.00\ \text{Gb/s}\ \checkmark \end{aligned}$$

09Four states that aren't PAM4

SchemeHow the four states differBits/symbolWhy use it
2B1Q (ISDN, HDSL)Four amplitudes. It is PAM4, Gray-coded, under an older name.2Halved the baud on telephone copper in the 1980s.
QPSK / 4-QAMFour phases of a carrier: two independent NRZ signals on I and Q.2Every symbol has the same amplitude; each axis keeps the full NRZ eye. Needs a carrier, so radio and coherent optics.
4-FSKFour carrier frequencies.2Constant envelope, tolerant of nonlinear amplifiers; narrowband radio.

Worked example · 2B1Q on an ISDN U-interface

  1. 160 kb/s line rate (2B+D plus framing and overhead) at 2 bits per quat: 80 kBd, Nyquist 40 kHz.
  2. ANSI T1.601 levels are \(\pm 2.5\ \text{V}\) and \(\pm 0.833\ \text{V}\): equal spacing of 1.667 V, a third of the 5 V swing.
  3. Gray mapping: 10 → +3, 11 → +1, 01 → −1, 00 → −3. The same structure, 40 years later, runs at 53 GBd in a data center.

10The transmitter

Worked example · level mismatch

Measured means \(V_0 \ldots V_3 = -400, -120, +140, +400\ \text{mV}\). Using the 802.3 form of the definition (check the clause before quoting a pass/fail):

$$\begin{aligned} V_{\text{mid}} &= \frac{V_0 + V_3}{2} = 0\ \text{mV}\\ ES_1 &= \frac{V_1 - V_{\text{mid}}}{V_0 - V_{\text{mid}}} = \frac{-120}{-400} = 0.30, \qquad ES_2 = \frac{V_2 - V_{\text{mid}}}{V_3 - V_{\text{mid}}} = \frac{140}{400} = 0.35\\ R_{\text{LM}} &= \min\bigl(3ES_1,\ 3ES_2,\ 2 - 3ES_1,\ 2 - 3ES_2\bigr) = \min(0.90,\ 1.05,\ 1.10,\ 0.95) = 0.90 \end{aligned}$$

Ideal levels give \(ES = 1/3\) and \(R_{\text{LM}} = 1\). Here the −1 level sits 13 mV too close to the middle, compressing the lower-middle eye, and the part fails a 0.95 limit. PAM3 has one inner level to place; PAM4 has two.

11The receiver: slicers, CDR, DFE

Three slicers

$$\hat{y} = \begin{cases} +3, & v \ge +2\\ +1, & 0 \le v \lt +2\\ -1, & -2 \le v \lt 0\\ -3, & v \lt -2 \end{cases} \qquad (\text{levels } \pm1, \pm3)$$

The outer thresholds scale with amplitude, so the receiver needs AGC or adaptive thresholds. At 50G/lane and above most PAM4 receivers are ADC + DSP: a 6–8 bit ADC samples once per UI and the slicing, FFE, DFE and sometimes MLSE are digital.

Crossing families and CDR jitter

Six distinct transition sizes exist. Starting from the bottom level, steps of one, two and three level gaps all cross the lowest threshold, at different times:

First-order edges from the bottom level. A step of \(k\) gaps crosses the first threshold (half a gap up) at \(t = \tau\ln\frac{k}{k - 1/2}\).

Worked example · how big is the skew?

$$\begin{aligned} k = 1:\ t &= \tau \ln 2 = 0.693\,\tau\\ k = 2:\ t &= \tau \ln\tfrac{4}{3} = 0.288\,\tau\\ k = 3:\ t &= \tau \ln\tfrac{6}{5} = 0.182\,\tau\\ \Delta t_{\max} &= \tau \ln\tfrac{5}{3} = 0.511\,\tau\\[4pt] \text{100G lane: } 53.125\ \text{GBd} &\Rightarrow \text{UI} = 18.8\ \text{ps}; \quad t_{10\text{–}90} = 10\ \text{ps} \Rightarrow \tau = 4.55\ \text{ps}\\ \Delta t_{\max} &= 0.511 \times 4.55 = 2.3\ \text{ps} \approx 12\%\ \text{of a UI} \end{aligned}$$

More than PAM3's 0.405τ. Edge-based CDRs filter which transitions they use; most PAM4 receivers use baud-rate (Mueller–Müller) timing recovery from the ADC samples instead.

DFE

\(v'_n = v_n - h_1\hat{y}_{n-1} - h_2\hat{y}_{n-2} - \cdots\) An unrolled first tap needs \(4 \times 3 = 12\) comparators (PAM3: 6, NRZ: 2), which is why analog PAM4 receivers rarely unroll more than one tap. Error propagation is worse too: a decision one level off makes the feedback wrong by \(2h_1\) (one level spacing in these units), and each eye has only a third of the NRZ margin to absorb it.

12Precoding against DFE bursts

The mod-4 \(1/(1+D)\) precoder works on the Gray-decoded symbol value \(x \in \{0,1,2,3\}\). 802.3cd/ck allow it on electrical PAM4 lanes, negotiated per link; PCIe 6.0 applies it on request at 64 GT/s, on scrambled 2-bit aligned pairs.

$$\begin{aligned} \text{Transmit:}\quad p[n] &= \bigl(x[n] - p[n-1]\bigr) \bmod 4\\ \text{Receive:}\quad \hat{x}[n] &= \bigl(\hat{p}[n] + \hat{p}[n-1]\bigr) \bmod 4 \end{aligned}$$

Worked example · a 4-symbol DFE burst

n01234567
data \(x\)13021132
precoded \(p\)12201033
burst error \(e\)00−1+1−1+100
received \(\hat{p}\)12110133
decoded \(\hat{x}\)13321102

Check one: \(\hat{x}[3] = (\hat{p}[3] + \hat{p}[2]) \bmod 4 = (1 + 1) \bmod 4 = 2 = x[3]\). The alternating errors cancel inside the burst; only \(n = 2\) and \(n = 6\) are wrong. The cost, as always, is that an isolated error becomes two.

13Where PAM4 is used

StandardBaudCoding stackData rateNotes
50GBASE-KR/CR (802.3cd)26.5625 GBd256b/257b + RS(544,514)50 Gb/s/laneBackplane and copper cable
100GBASE-KR1/CR1 (802.3ck)53.125 GBd256b/257b + RS(544,514)100 Gb/s/lane\(R_{\text{LM}} \ge 0.95\); precoding optional
200G/lane (802.3dj)106.25 GBdRS(544,514), inner codes on some optical PMDs200 Gb/s/lane800G and 1.6T Ethernet
PCIe 6.0 / 7.032 / 64 GBdGray + optional precoding; FLIT with lightweight FEC + CRC64 / 128 GT/sFBER target \(10^{-6}\)
802.3ch 2.5/5/10GBASE-T11.40625 / 2.8125 / 5.625 GBd64B/65B + RS(360,326)2.5 / 5 / 10 Gb/sAutomotive single pair; PAM2 during training
MIPI A-PHY—PAM4 up to Gear 5up to 16 Gb/sAutomotive camera/display SerDes; v2.0 adds PAM8 and PAM16 gears
GDDR6X≈10–12 GBdPAM4 with MTA coding≈19–24 Gb/s/pinSingle-ended; GDDR7 went to PAM3
ISDN BRI U, HDSL (2B1Q)80 kBd (ISDN)Gray PAM4160 kb/sThe original copper PAM4

Worked example · PCIe 6.0 x16

$$\begin{aligned} 64\ \text{GT/s} \times 16 \text{ lanes} &= 1024\ \text{Gb/s} = 128\ \text{GB/s per direction (raw)}\\ f_{\text{baud}} = 32\ \text{GBd}, \quad f_{\text{Nyq}} &= 16\ \text{GHz} \quad \text{(same as PCIe 5.0 NRZ)}\\ \text{FLIT: } 256\ \text{B} &= 236\ \text{TLP} + 6\ \text{DLP} + 8\ \text{CRC} + 6\ \text{FEC}\\ \text{payload fraction} &= \frac{236 + 6}{256} = 94.5\% \end{aligned}$$

PCIe 6.0 kept 128b/130b's job (framing) inside the FLIT and dropped the sync headers; the FEC is light enough (about 2 ns) that retries via CRC handle what it misses.

Worked example · 802.3ch on a zonal backbone

$$\begin{aligned} \text{10GBASE-T1:}\quad f_{\text{baud}} &= 5.625\ \text{GBd}, \quad f_{\text{Nyq}} = 2.81\ \text{GHz}\\ \text{5GBASE-T1:}\quad f_{\text{baud}} &= 2.8125\ \text{GBd}, \quad f_{\text{Nyq}} = 1.41\ \text{GHz} \end{aligned}$$

10 Gb/s over one shielded automotive pair, full-duplex with echo cancellation, at a Nyquist frequency below 3 GHz. In NRZ it would need 5.6 GHz plus FEC overhead, well past what automotive cable and inline connectors pass with EMC margin.

14PAM4 vs PAM3 and PAM6

FactorPAM3PAM4PAM6
Eye height (same swing)1/2 (−6.0 dB)1/3 (−9.5 dB)1/5 (−14.0 dB)
Bits per symbol (practical)1.5–1.57122.5 (5 bits per 2 symbols)
Baud for 448 Gb/s≈285 GBd224 GBd179.2 GBd
Bit alignmentBlock code neededDirectBlock code needed
Slicers / unrolled DFE tap 12 / 63 / 125 / 30
Where it winsModerate loss, crosstalk-limited: USB4 v2, GDDR7, automotive pairsHigh loss, 50–200 Gb/s/lane, opticsCandidate for 448G electrical LR where channel bandwidth runs out

OIF's 448G work tabulates PAM4 (224 GBd), PAM6 (179.2 GBd) and PAM8 (149.3 GBd) as candidates. PAM4 is favoured where the electrical lane must match PAM4 optics with no DSP in between; higher orders are being studied where the electrical channel's bandwidth, not its noise, is the limit.

15Encoder playground

RDS is the running sum of levels. Precoding changes the waveform but not the data: decoding it with \(\hat{x}[n] = (\hat{p}[n] + \hat{p}[n-1]) \bmod 4\) gives back the Gray symbols.

16Interview drill

Why PAM4 instead of faster NRZ?

Half the baud for the same bit rate, so half the Nyquist frequency and, on a linear-in-frequency channel, half the loss in dB. When NRZ's loss at its Nyquist passes about 19 dB, saving half of it is worth more than the 9.54 dB level penalty.

Where does 9.5 dB come from?

\(20\log_{10}(M-1) = 20\log_{10}3\). With the same swing, three eyes each get a third of the height.

Why Gray code?

Noise errors move a symbol one level. Gray mapping makes adjacent levels differ by one bit, so one symbol error is one bit error. Binary mapping costs 1.33 bits per slip on average.

What is RLM and why does PAM4 need it?

Ratio of level mismatch: how evenly the two inner levels sit between the outer ones. Uneven levels shrink one eye while enlarging another, and the smallest eye sets the BER. 802.3ck requires \(R_{\text{LM}} \ge 0.95\).

Why does 100G Ethernet run at 53.125 GBd?

\(100 \times \tfrac{66}{64} \times \tfrac{257}{264} \times \tfrac{544}{514} = 106.25\ \text{Gb/s}\), divided by 2 bits per symbol.

Why is PAM4 CDR harder than NRZ?

Transitions of one, two and three level gaps cross the thresholds at different times, adding about \(0.5\tau\) of data-dependent skew. Receivers filter transitions or use baud-rate timing recovery.

Why did GDDR7 pick PAM3 after GDDR6X used PAM4?

On a single-ended memory bus crosstalk and power dominate; PAM3's bigger eye (−6 dB vs −9.5 dB) and lack of a full-swing-heavy alphabet beat PAM4's lower baud. GDDR6X needed MTA coding to tame PAM4's full-swing transitions.

What does precoding do on a PAM4 lane?

A mod-4 \(1/(1+D)\) precoder turns a DFE burst of alternating errors into two errors at its edges, which the RS FEC handles more easily. A random single error becomes two, so it's negotiated per channel.

How would you validate a PAM4 link?

Transmitter: RLM, eye heights of all three eyes, SNDR, jitter, FIR presets. Channel: insertion loss at Nyquist, ILD, return loss, crosstalk, COM. Receiver: stressed tolerance, and pre-FEC BER and FEC symbol-error histograms as the margin metric, not just post-FEC zero errors. Sweep temperature and supplies with neighbouring lanes active.