Signaling · line codes

PAM5 Signaling Primer

Five-level pulse amplitude modulation from first principles, built around its one huge deployment: Gigabit Ethernet over Cat 5e (1000BASE-T). Why a fifth level, how 4D-PAM5 and trellis coding buy the margin back, and how a full-duplex receiver cancels its own echo. Every section has a worked example with real numbers. Mappings marked illustrative show the method; the normative tables live in IEEE 802.3 Clause 40.

The one-paragraph answer

PAM5 sends one of five levels, −2, −1, 0, +1, +2, carrying up to \(\log_2 5 \approx 2.32\) bits. Its 12.04 dB level penalty is 2.5 dB worse than PAM4's, so on its own it would be a bad trade. 1000BASE-T uses it differently: it sends two data bits per symbol, exactly like PAM4 at the same 125 MBd, and spends the fifth level on redundancy. Eight data bits plus one trellis-code bit choose one of 512 points among the \(5^4 = 625\) combinations on four pairs (4D-PAM5). Splitting the points into two parity families doubles the minimum squared distance, and the 8-state trellis code raises it further, recovering more than the 2.5 dB the extra level cost. The rest of 1000BASE-T's difficulty is full-duplex on every pair: each receiver must cancel its own echo and the NEXT of three neighbours.

01The idea

Five equally spaced levels with a real middle level at 0. In 1000BASE-T the outer levels \(\pm 2\) sit at roughly \(\pm 0.67\) to \(\pm 0.82\ \text{V}\) differential (the Clause 40 test-mode limits), so adjacent levels are about 0.37 V apart.

The 12-bit word 0x5A7, padded to 18 bits and packed 9 bits per 4 symbols by radix conversion (section 05). Dashed amber lines are the four decision thresholds at \(\pm 0.5, \pm 1.5\).

02Bits per symbol

\(\log_2 5 = 2.3219\) bits. Practical codes group \(k\) bits into \(n\) symbols with \(2^k \le 5^n\), carrying \(k/n\) bits per symbol at an efficiency of \(\dfrac{k/n}{\log_2 5}\).

SchemeLevels MBits/symbol (max)EyesEye height vs NRZSNR penaltySlicers
NRZ / PAM221.000110 dB1
PAM331.58521/26.02 dB2
PAM442.00031/39.54 dB3
PAM552.32241/412.04 dB4
PAM662.58551/513.98 dB5

The penalty column is \(20\log_{10}(M-1)\); for PAM5, \(20\log_{10}4 = 12.04\ \text{dB}\), \(20\log_{10}\tfrac{4}{3} = 2.50\ \text{dB}\) worse than PAM4.

03Bandwidth: the reason it exists

1000BASE-T had to run 1 Gb/s on the same 100 m of Cat 5 that 100BASE-TX used at 125 MBd, specified only to 100 MHz. Splitting the data across all four pairs gives 250 Mb/s per pair; the question is how to send 250 Mb/s on one pair.

Worked example · 250 Mb/s per pair over 100 m of Cat 5e

Cat 5e insertion loss per 100 m: \(\text{IL}(f) = 1.967\sqrt{f} + 0.023f + 0.050/\sqrt{f}\) dB, \(f\) in MHz.

$$\begin{array}{lrrcrcr} & f_{\text{Nyq}} & \text{IL at Nyquist} & & \text{level penalty} & & \text{net}\\ \text{NRZ, 250 MBd:} & 125\ \text{MHz} & 24.9\ \text{dB} & + & 0.0\ \text{dB} & = & 24.9\ \text{dB}\\ \text{PAM4, 125 MBd:} & 62.5\ \text{MHz} & 17.0\ \text{dB} & + & 9.5\ \text{dB} & = & 26.5\ \text{dB}\\ \text{PAM5 + TCM, 125 MBd:} & 62.5\ \text{MHz} & 17.0\ \text{dB} & + & 12.0 - {\approx}6\ \text{dB} & = & {\approx}23\ \text{dB} \end{array}$$

NRZ looks competitive on loss alone but puts its fundamental beyond Cat 5's 100 MHz characterization and radiates more; PAM4 at 125 MBd is 1.6 dB worse than NRZ. PAM5 runs at the same 125 MBd as PAM4, keeps the 2 data bits per symbol, and uses the fifth level for a trellis code whose coding gain (section 08) more than repays the extra 2.5 dB. Echo, NEXT and alien crosstalk, not insertion loss, then set the margin (section 11).

04Eye height and the 12 dB penalty

Idealized eyes at the same peak-to-peak swing. PAM5 stacks four eyes, each a quarter of the NRZ height.

$$\begin{aligned} P_{\text{sym}} &= 2\left(1 - \frac{1}{M}\right) Q\!\left(\frac{d}{2\sigma}\right)\\ \text{PAM5:}\quad P_{\text{sym}} &= \frac{8}{5}\, Q\!\left(\frac{d}{2\sigma}\right), \qquad d = \frac{V_{\text{pp}}}{4} \end{aligned}$$

Worked example · uncoded PAM5 at 1000BASE-T levels

  1. Outer levels \(\pm 0.75\ \text{V}\) at the receiver before loss, 1.5 V peak-to-peak: \(d = 1.5/4 = 375\ \text{mV}\).
  2. Residual noise after echo and NEXT cancellation \(\sigma = 40\ \text{mV}\): \(d/2\sigma = 4.69\), \(Q(4.69) = 1.4\times10^{-6}\), \(P_{\text{sym}} = 1.6 \times 1.4\times10^{-6} = 2.2\times10^{-6}\).
  3. That is far short of 1000BASE-T's \(10^{-10}\) BER target. Symbol-by-symbol slicing can't do it at this noise; the trellis decoder, which decides on whole sequences of 4D symbols, must.

Bit errors vs symbol errors

In 1000BASE-T a single slicer error is never decoded on its own. A one-level slip on one pair changes the 4D point's parity family (section 06), which the Viterbi decoder treats as an illegal path; it then picks the most likely legal sequence. Errors that get through come as short bursts across several 4D symbols, and every byte in the burst can be wrong.

05Packing bits into quinary symbols

Every block code is a choice of \(k\) and \(n\) with \(2^k \le 5^n\); the \(5^n - 2^k\) spare words go to control codes, parity families or idle patterns.

Code\(2^k\) data words\(5^n\) codewordsSpareBits/symbolEfficiencyUsed in
2B1Q-on-54512.00086.1%Conceptual: PAM4 data with one spare level
4B2Q (PAM5×5)162592.00086.1%100BASE-T2 (2D symbols on two pairs)
8B1Q4 + 1 trellis bit256 × 26251132.000 data86.1%1000BASE-T (4D-PAM5)
9B4Q5126251132.25096.9%Uncoded packing (radix); illustrative
16B7Q65,53678,12512,5892.28698.4%Theoretical; large encoder

1000BASE-T deliberately sits at 86.1% efficiency: it carries the same 2 data bits per symbol as PAM4 and treats the remaining \(\log_2 5 - 2 = 0.32\) bits per symbol as room for coding, which is worth far more than throughput on a noisy, crosstalk-limited cable.

064D-PAM5, worked end to end

Split the five levels into two 1D subsets: odd \(X = \{-1, +1\}\) and even \(Y = \{-2, 0, +2\}\). A 4D point is one level on each pair; call its parity the number of pairs carrying an \(X\) level, mod 2. Any one-level change on one pair moves that pair between \(X\) and \(Y\), so it flips the parity.

Worked example · counting the 4D points

$$\begin{aligned} N_i &= \binom{4}{i}\, 2^{i}\, 3^{4-i} \qquad (i = \text{number of pairs at an } X \text{ level})\\ N_0, N_1, N_2, N_3, N_4 &= 81,\ 216,\ 216,\ 96,\ 16 \qquad \textstyle\sum = 625 = 5^4\\ \text{even family } (i = 0, 2, 4) &= 81 + 216 + 16 = 313 \ \ge 256\\ \text{odd family } (i = 1, 3) &= 216 + 96 = 312 \ \ge 256 \end{aligned}$$
  1. Each family alone has room for all 256 byte values. The trellis encoder's extra bit chooses the family; the 8 data bits choose a point in it. 9 bits, 512 points used, 113 spare for idle and control.
  2. Within one family two points can't differ by a single one-level step (that would change parity), so the closest pair differs by one step on two pairs: squared distance 2 instead of 1. That is a 3 dB gain before the trellis does anything.
  3. Encode, illustrative: byte 0x5A with family bit 0 indexes the even family in a fixed order; the playground (section 15) does exactly this and shows the four levels it lands on. The real Clause 40 mapping uses eight subsets D0–D7 and a specific bit assignment; treat this as the method, not the table.

Decoding with an error

  1. Noise pushes pair C from 0 to +1. The received 4D point now has odd parity, but the trellis state says even was legal.
  2. The decoder doesn't slice the point alone. It compares accumulated distances along the legal paths of the trellis and picks the nearest legal sequence, which usually restores 0 on pair C.
  3. Like PAM3's unused center pair and 8b/10b's invalid words, the illegal half of the space is what makes the error visible; the trellis is what makes it correctable.

07Scrambling, DC and baseline wander

1000BASE-T is transformer-coupled at both ends, so DC can't pass and the baseline wanders with the data's low-frequency content. It doesn't use a DC-balanced code: a side-stream scrambler (\(1 + x^{13} + x^{33}\) at the master, \(1 + x^{20} + x^{33}\) at the slave) randomizes the symbols, and the receiver runs a baseline-wander corrector.

Worked example · what the transmitter droop test implies

Clause 40 test mode 1 requires the level 500 ns after a step to stay above 73.1% of its initial value. For a single-pole high-pass, \(V(t)/V(0) = e^{-2\pi f_c t}\):

$$\begin{aligned} e^{-2\pi f_c \cdot 500\,\text{ns}} &\ge 0.731\\ f_c &\le \frac{-\ln 0.731}{2\pi \cdot 500\times10^{-9}} = 99.7\ \text{kHz} \end{aligned}$$

With a typical 350 µH magnetizing inductance into an effective 50 Ω, \(f_c = R/(2\pi L) = 50/(2\pi \cdot 350\times10^{-6}) = 22.7\ \text{kHz}\), well inside the limit. Even so, 100 symbols (800 ns) of one-sided data droop by \(1 - e^{-2\pi \cdot 22.7\times10^{3} \cdot 800\times10^{-9}} = 10.8\%\) of the level, about 43% of the half-gap margin to the next threshold. That's why the scrambler and the baseline corrector are both required.

08Trellis coding: the fifth level pays for itself

A rate-2/3 convolutional encoder with 8 states (an Ungerboeck-style 4D code) takes 2 of the 8 data bits and produces 3; the extra bit picks the family and, together with the encoder state, which of eight 4D subsets the next point must come from. Only sequences of subsets that the trellis allows are legal.

Worked example · where the gain comes from

$$\begin{aligned} \text{level spacing vs uncoded PAM4 at the same peak:}\quad & \tfrac{1/4}{1/3} = 0.75 \;\Rightarrow\; 20\log_{10}0.75 = -2.50\ \text{dB}\\ \text{family split (single 4D symbol):}\quad & d^2_{\min}: 1 \to 2 \;\Rightarrow\; 10\log_{10}2 = +3.01\ \text{dB}\\ \text{8-state trellis across symbols:}\quad & \approx 6\ \text{dB asymptotic (published) over uncoded 4D-PAM5}\\ \text{net vs uncoded PAM4:}\quad & \approx 6 - 2.5 \approx 3.5\ \text{dB} \end{aligned}$$
  1. The family split alone recovers the 2.5 dB the fifth level cost, with half a dB to spare.
  2. The trellis adds more by forcing any wrong path to differ from the right one in several 4D symbols, each contributing distance.
  3. Hardware: an 8-state Viterbi decoder at 125 MHz, fused with the DFE (decision-feedback sequence estimation) because the DFE needs decisions before the Viterbi has made them. This loop, not the slicers, is the speed-critical path in a 1000BASE-T PHY.

Gain figures are asymptotic (high-SNR) values from the coding literature; real-channel gains are lower. The subset table and encoder are in 802.3 Clause 40.

09Five levels that aren't PAM5

SignalRuleBits/symbolWhy it shows up
Duobinary PAM3PAM3 data through a \(1 + D\) response: \(y_n = x_n + x_{n-1}\).1.585Controlled ISI halves the needed bandwidth; the receiver sees five levels but only three-level information.
Partial-response output of a PAM3 linkAny PAM3 link with a \(1 + D\)-shaped channel and no full equalization.1.585A five-level eye on the scope doesn't mean PAM5 was sent.
4D-PAM5 with TCMFive levels per pair, but only 512 of 625 combinations legal and the sequence constrained by the trellis.2 (data)Coded modulation: levels are redundancy, not throughput.

Worked example · duobinary PAM3

  1. Data \(x = +1, -1, 0, +1, +1, 0\), starting from \(x_{-1} = 0\).
  2. \(y_n = x_n + x_{n-1}\): \(+1, 0, -1, +1, +2, +1\). Five possible levels, \(-2 \ldots +2\).
  3. Each \(y\) depends on two inputs, so the receiver either runs a sequence detector or precodes at the transmitter (the mod-3 precoder of the PAM3 page) so that \(y \bmod 3\) gives the data directly.

10The transmitter

Worked example · what the shaping filter does to the levels

$$\begin{aligned} y_n &= 0.75\,x_n + 0.25\,x_{n-1}\\ x = (+2, +2, 0, -2):\quad y &= (\ldots,\ 0.75\cdot2 + 0.25\cdot2,\ 0.75\cdot0 + 0.25\cdot2,\ 0.75\cdot(-2) + 0.25\cdot0)\\ &= (\ldots,\ 2.0,\ 0.5,\ -1.5) \end{aligned}$$

Steady levels are unchanged; a step lands at 75% and completes a UI later. The line carries more than five distinct voltages, which is why a 1000BASE-T eye on a scope looks closed even when the link is clean: the PAM5 levels exist only after the receiver's equalizer.

11The receiver: slicers, cancellers, DFE

Four slicers

$$\hat{y} = \begin{cases} +2, & v \ge 1.5\\ +1, & 0.5 \le v \lt 1.5\\ \phantom{+}0, & -0.5 \le v \lt 0.5\\ -1, & -1.5 \le v \lt -0.5\\ -2, & v \lt -1.5 \end{cases}$$

In practice these are soft decisions inside the DSP: an ADC at 125 MS/s per pair feeds the cancellers, FFE, and the combined DFE/Viterbi.

Echo and NEXT cancellation

Worked example · how good the echo canceller must be

$$\begin{aligned} \text{own transmit amplitude (normalized)} &= 1\ \text{V}; \quad \text{hybrid return loss } 15\ \text{dB} \Rightarrow \text{echo} = 0.178\ \text{V}\\ \text{far-end signal after 100 m} &\approx 1\ \text{V} - 20\ \text{dB} = 0.10\ \text{V}\\ \text{target: residual echo 30 dB below signal} &= 0.10 / 31.6 = 3.2\ \text{mV}\\ \text{required echo rejection} &= 20\log_{10}\frac{178}{3.2} = 35\ \text{dB} \end{aligned}$$

The echo is larger than the wanted signal, so cancellation, not slicing, sets the noise floor. Each pair also needs three NEXT cancellers for the other pairs' transmitters: four echo plus twelve NEXT adaptive filters per PHY.

Crossing families

From the bottom level, steps of 1–4 gaps cross the first threshold at \(\tau\ln\frac{k}{k-1/2}\): 0.693τ, 0.288τ, 0.182τ, 0.134τ. Skew up to \(\tau\ln\tfrac{7}{4} = 0.560\,\tau\).

At 125 MBd (UI = 8 ns) with a 3 ns rise (\(\tau = 1.36\ \text{ns}\)), that's 0.76 ns, 9.5% of a UI. 1000BASE-T sidesteps it: the slave recovers timing digitally from the master's symbols and transmits on the recovered clock (loop timing), so no edge-based CDR is involved.

DFE

\(v'_n = v_n - \sum_k h_k\hat{y}_{n-k}\). An unrolled first tap would need \(5 \times 4 = 20\) comparators, and a hard DFE error would corrupt the Viterbi's input. Hence decision-feedback sequence estimation: the DFE runs per trellis survivor path, using each path's own tentative decisions.

12Precoding against DFE bursts

1000BASE-T doesn't precode; it combines the DFE with the trellis decoder instead. 10GBASE-T moves the whole DFE into the transmitter as Tomlinson–Harashima precoding (see the PAM16 page). The simple mod-\(M\) precoder still works for PAM5 and shows the mechanism:

$$\begin{aligned} \text{Transmit:}\quad p[n] &= \bigl(x[n] - p[n-1]\bigr) \bmod 5 \qquad x, p \in \{0,\ldots,4\} \leftrightarrow \{-2,\ldots,+2\}\\ \text{Receive:}\quad \hat{x}[n] &= \bigl(\hat{p}[n] + \hat{p}[n-1]\bigr) \bmod 5 \end{aligned}$$

Worked example · a 4-symbol DFE burst

n01234567
data \(x\)42034410
precoded \(p\)43213100
burst error \(e\)00−1+1−1+100
received \(\hat{p}\)43122200
decoded \(\hat{x}\)42434420

Check one: \(\hat{x}[4] = (\hat{p}[4] + \hat{p}[3]) \bmod 5 = (2 + 2) \bmod 5 = 4 = x[4]\). Four wrong symbols become two (\(n = 2, 6\)); a single random error becomes two as well.

13Where PAM5 is used

StandardBaudCoding stackData rateMedium / notes
1000BASE-T (802.3ab, Clause 40)125 MBd × 4 pairsScrambler + 8B1Q4 + 8-state 4D TCM1 Gb/s full-duplexCat 5e, 100 m; echo and NEXT cancellation on every pair
100BASE-T2 (802.3y)25 MBd × 2 pairsPAM5×5 (2D), 4 bits per 2D symbol100 Mb/s full-duplexCat 3; little deployed, but the 1000BASE-T DSP grew from it
448G electrical (OIF study)192.9 GBd (at \(\log_2 5\) b/sym)Candidate list only448 Gb/s/laneListed with PAM4/6/8; 2.5 dB worse than PAM4 per level

Worked example · 1000BASE-T rate arithmetic

$$\begin{aligned} \text{GMII: } 8 \text{ bits} \times 125\ \text{MHz} &= 1000\ \text{Mb/s}\\ \text{one byte} \to \text{one 4D symbol (4 pairs)} &\Rightarrow 125\ \text{MBd per pair}\\ \text{bits per pair per symbol} &= 8/4 = 2, \quad f_{\text{Nyq}} = 62.5\ \text{MHz} \end{aligned}$$

The GMII byte clock and the symbol clock are the same 125 MHz, one byte per 4D symbol. That clean ratio is a big part of why the 4D construction was chosen.

Worked example · 100BASE-T2

$$\begin{aligned} 2 \text{ pairs} \times 25\ \text{MBd} &= 25 \text{ M two-dimensional symbols/s}\\ 5^2 = 25 \text{ points} \ge 2^4 &\Rightarrow 4 \text{ bits per 2D symbol}\\ 25\ \text{M/s} \times 4 &= 100\ \text{Mb/s}, \quad f_{\text{Nyq}} = 12.5\ \text{MHz on Cat 3} \end{aligned}$$

14PAM5 vs PAM4

FactorPAM4PAM5
Eye height (same swing)1/3 (−9.5 dB)1/4 (−12.0 dB)
Max bits/symbol2.0002.322
Middle levelNone: levels ±1, ±30 is a level; symmetric about it
Bit alignmentDirectBlock code or coded modulation
Slicers / unrolled DFE tap 13 / 124 / 20
Where it winsThroughput per baud with external FECWhen the spare level funds a trellis code at fixed baud, as in 1000BASE-T

Pushed for raw throughput, PAM5's 0.32 extra bits per symbol rarely justify 2.5 dB and a block code; that's why it appears in OIF's 448G list but nobody leads with it. Used as coded modulation on a cancellation-limited copper channel, it was the right answer for 25 years of gigabit copper.

15Encoder playground

"Even 4D family" lists the 313 points with an even number of ±1 levels in a fixed order and sends byte \(b\) as point number \(b\): 2 bits per symbol, and every legal point is at least two one-level steps from every other.

16Interview drill

Why does 1000BASE-T use five levels if it only sends 2 bits per symbol?

The fifth level makes room for a trellis code at the same 125 MBd. Splitting 4D-PAM5 into two parity families doubles \(d^2_{\min}\) (+3 dB), and the 8-state trellis raises it further, more than repaying the 2.5 dB the extra level costs.

How does 1000BASE-T get 1 Gb/s from 125 MBd?

\(4 \text{ pairs} \times 125\ \text{MBd} \times 2\ \text{bits} = 1000\ \text{Mb/s}\), in both directions at once on every pair. One GMII byte per 4D symbol.

What is the PAM5 level penalty?

\(20\log_{10}4 = 12.04\ \text{dB}\) versus NRZ, 2.50 dB worse than PAM4.

What limits a 1000BASE-T link?

Echo of the PHY's own transmitter (larger than the received signal after 100 m), NEXT from the three other pairs, alien crosstalk and residual ISI. Insertion loss at 62.5 MHz (about 17 dB per 100 m of Cat 5e) is manageable.

Why fuse the DFE with the Viterbi decoder?

The DFE needs past decisions immediately, but the Viterbi only commits after its traceback depth. Running a DFE per survivor path (DFSE) uses each path's tentative decisions and avoids feeding hard errors into the trellis.

Why does a 1000BASE-T eye on a scope look closed?

The transmitter's \(0.75 + 0.25z^{-1}\) shaping filter, echo from the far end's transmitter on the same pair, and channel ISI all sit on the line. The five levels exist only after the receiver's cancellers and equalizer.

How is DC handled?

Transformer coupling blocks DC; a side-stream scrambler randomizes the symbols and the receiver corrects baseline wander. The transmitter droop test (above 73.1% after 500 ns) bounds the coupling's corner frequency to about 100 kHz.

How would you validate a 1000BASE-T port on a new board?

Clause 40 transmitter tests (peak voltage 670–820 mV, symmetry within 1%, droop, distortion, jitter, return loss) with the magnetics and connector in place. Then link tests on 100 m of Cat 5e with worst-case alien crosstalk, cable diagnostics (TDR) and error counters across temperature, with the board's switching supplies loaded.