Signaling · line codes

PAM8 Signaling Primer

Eight-level pulse amplitude modulation from first principles: three bits per symbol, a 16.9 dB level penalty, and the two ways to use eight levels, as raw throughput or as a trellis-coded carrier for PAM4's bits. Where it ships (MIPI A-PHY Gear 6) and where it is being weighed (448 Gb/s per lane). 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

PAM8 sends one of eight levels, −7 … +7 in odd steps, so each symbol carries exactly three bits and the baud is a third of the bit rate. It needs no block code, and 3-bit Gray mapping makes a one-level slip cost one bit. The cost is steep: seven stacked eyes, each a seventh of the NRZ height, a 16.9 dB level penalty, and about 6.3 dB more SNR than PAM4 for the same symbol error rate. That pays only on channels that are bandwidth-limited but quiet. MIPI A-PHY v2.0 uses it for Gear 6 (24 Gb/s), at what the gear rates imply is the same symbol rate as its PAM4 Gear 5; OIF lists it (149.3 GBd) among the 448G candidates. Eight levels can also carry PAM4's two bits plus a trellis-code bit, trading throughput for coding gain, the classic Ungerboeck construction.

01The idea

Eight levels, normalized to odd integers \(-7, -5, \ldots, +7\) so adjacent levels are 2 apart. Thresholds sit at \(0, \pm2, \pm4, \pm6\).

The 12-bit word 0x5A7 as four Gray-coded PAM8 symbols (section 06). Seven dashed thresholds; each eye is a seventh of the swing.

02Bits per symbol

\(\log_2 8 = 3\) exactly: like PAM4, PAM8 packs bits with no waste and no block code.

SchemeLevels MBits/symbol (max)EyesEye height vs NRZSNR penaltySlicers
NRZ / PAM221.000110 dB1
PAM442.00031/39.54 dB3
PAM662.58551/513.98 dB5
PAM883.00071/716.9 dB7
PAM16164.000151/1523.5 dB15

The penalty column is \(20\log_{10}(M-1)\); for PAM8, \(20\log_{10}7 = 16.90\ \text{dB}\), \(20\log_{10}\tfrac{7}{3} = 7.36\ \text{dB}\) worse than PAM4.

03Bandwidth: the reason it exists

PAM8 cuts the baud by a third relative to PAM4 (from \(R_b/2\) to \(R_b/3\)). That only wins when the channel's loss or bandwidth limit near the PAM4 Nyquist is severe and its noise is low.

Worked example · where PAM8 overtakes PAM4

On a channel whose loss in dB is linear in frequency, going from PAM4 to PAM8 saves a third of PAM4's Nyquist loss and costs 7.36 dB of level penalty:

$$\begin{aligned} L_{\text{PAM4}}\Bigl(1 - \tfrac{2}{3}\Bigr) &= 7.36\ \text{dB} \;\Rightarrow\; L_{\text{PAM4}} = 22.1\ \text{dB}\\ \text{106.25 Gb/s at 1 dB/GHz:}\quad & L_{\text{PAM4}} = 26.6\ \text{dB} \Rightarrow \text{PAM8 ahead by } \tfrac{26.6}{3} - 7.36 = 1.5\ \text{dB}\\ \text{448 Gb/s:}\quad & f_{\text{Nyq}}:\ 112\ \text{GHz (PAM4)} \to 74.7\ \text{GHz (PAM8)} \end{aligned}$$

The budget favours PAM8 once PAM4's loss passes about 22 dB, but this budget ignores what really hurts PAM8: transmitter and receiver SNR (DAC/ADC resolution, jitter, nonlinearity) don't scale with the channel, and PAM8 needs 6.3 dB more of it. That's why PAM4 carried 200G per lane and PAM8 is a candidate rather than a default at 448G.

04Eye height and the 17 dB penalty

Idealized eyes at the same peak-to-peak swing. PAM8 stacks seven eyes, each a seventh of the NRZ height.

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

Worked example · same swing, same noise as the PAM4 page

  1. 800 mV peak-to-peak, \(\sigma = 20\ \text{mV}\). PAM4: \(d = 266.7\ \text{mV}\), \(d/2\sigma = 6.67\), \(P_{\text{sym}} \approx 2\times10^{-11}\).
  2. PAM8: \(d = 800/7 = 114.3\ \text{mV}\), \(d/2\sigma = 2.86\), \(Q(2.86) = 2.1\times10^{-3}\), \(P_{\text{sym}} = 1.75 \times 2.1\times10^{-3} = 3.7\times10^{-3}\).
  3. Eight orders of magnitude worse at the same noise. To reach PAM4's error rate PAM8 needs \(7/3\) the swing, \(+7.36\ \text{dB}\), or that much less noise.

Bit errors vs symbol errors

With 3-bit Gray mapping every pair of adjacent levels differs in one bit, so a one-level slip is a one-bit error and \(\text{BER} \approx P_{\text{sym}}/3\). Natural binary is much worse in the middle: the slip between 011 and 100 flips all three bits.

05Mapping bits to levels

CodeData bits per symbolLevels usedAvg bit errors per slipNotes
3-bit Gray381.00The default
Natural binary381.57Middle slip (011 ↔ 100) flips 3 bits
TCM, rate 2/328—PAM4's throughput with coding gain (section 08)
Probabilistically shaped2–3 (e.g. 2.75)8, non-uniform≈1Inner levels more frequent; lower average power (section 07)

The binary column average: the seven adjacent pairs flip 1, 2, 1, 3, 1, 2, 1 bits, an average of \(11/7 = 1.57\).

063-bit Gray, worked end to end

LevelGrayBinary

Binary-reflected Gray: 000, 001, 011, 010, 110, 111, 101, 100 from −7 up. Each step changes one bit. Generated by \(g = b \oplus (b \gg 1)\).

Worked example · encode 0x5A7

  1. Bits: \(\text{0x5A7} = 010\,110\,100\,111_2\) in groups of three.
  2. Map:
    010→−1110→+1100→+7111→+3
  3. Rate: 12 bits in 4 symbols. MIPI A-PHY's 24 Gb/s Gear 6 at 3 bits/symbol is 8 GBd before overhead.

Decoding with an error

  1. Symbol 2 (+1, 110) slips down to −1 (010): one bit wrong. In binary, −1 and +1 are 011 and 100: three bits wrong.
  2. Symbol 3 (+7, 100) slips to +5 (101): one bit wrong.

07DC, scrambling and shaping

PAM8 links rely on scrambling for DC balance and run length, like PAM4. The interesting code question for PAM8 is the opposite of DC balance: probabilistic shaping. Send the inner levels more often and the outer levels less, lowering average power at a given peak, and trade a little throughput for it.

Worked example · Maxwell–Boltzmann shaping to 2.75 bits/symbol

$$\begin{aligned} P(a) &\propto e^{-\lambda a^2}, \quad a \in \{\pm1, \pm3, \pm5, \pm7\}; \quad \lambda = 0.0387 \text{ gives } H = 2.75\ \text{bits}\\ P(\pm1, \pm3, \pm5, \pm7) &= 0.219,\ 0.161,\ 0.086,\ 0.034\\ \overline{E}_{\text{shaped}} &= \textstyle\sum P(a)\,a^2 = 10.99 \qquad (\text{uniform PAM8: } 21)\\ \text{uniform PAM at 2.75 b/sym:}\quad M &= 2^{2.75} = 6.73, \quad \overline{E} = \tfrac{M^2 - 1}{3} = 14.75\\ \text{shaping gain} &= 10\log_{10}\tfrac{14.75}{10.99} = 1.28\ \text{dB} \end{aligned}$$

Against a (hypothetical) uniform constellation at the same 2.75 bits, shaping saves 1.28 dB of average power; the theoretical limit is 1.53 dB. Coherent optics use this routinely; for IM-DD and electrical PAM the catch is that peak swing, not average power, is often the constraint, and a distribution matcher adds latency.

08Trellis-coded PAM8: PAM4's bits, more margin

Ungerboeck's construction: split the eight levels into four subsets of two (each subset's points 8 level units apart), let a rate-1/2 convolutional code on one data bit choose the subset sequence, and send the second data bit uncoded as the choice within the subset. Two data bits per symbol, exactly PAM4's throughput, on eight levels.

Worked example · set partitioning

$$\begin{aligned} A &= \{-7, -5, -3, -1, +1, +3, +5, +7\} && d = 2\\ B_0 &= \{-7, -3, +1, +5\},\ B_1 = \{-5, -1, +3, +7\} && d = 4\\ C_0 &= \{-7, +1\},\ C_2 = \{-3, +5\},\ C_1 = \{-5, +3\},\ C_3 = \{-1, +7\} && d = 8 \end{aligned}$$
  1. Each split doubles the minimum distance within a subset. Points in the same \(C\) subset are 8 apart, so the uncoded bit is very well protected.
  2. The trellis forbids subset sequences that could be confused at short distance, so a wrong path must differ in several symbols.
  3. Normalized to the same average power as uncoded PAM4, the 4-state code's asymptotic gain is about 3.3 dB in Ungerboeck's published tables; more states give a little more.

This is the same idea 1000BASE-T applies in four dimensions with PAM5 (see the PAM5 page). The cost is a Viterbi decoder at the symbol rate, which is why it appears in DSL and Ethernet PHYs at MBd–GBd rates rather than in 100+ GBd SerDes.

09Eight states that aren't PAM8

SchemeHow the eight states differBits/symbolWhy use it
8-PSKEight phases of a carrier at one amplitude.3Constant envelope for radio power amplifiers; needs coherent detection.
Duobinary PAM4PAM4 through \(1 + D\): seven levels, \(-6 \ldots +6\).2Half the bandwidth of PAM4 through controlled ISI; an 8-ish-level eye that carries PAM4's data.
TCM on PAM8Eight levels, but subset sequences constrained by a trellis.2Coding gain at fixed baud (section 08).

Worked example · 8-PSK vs PAM8 at the same peak

$$\begin{aligned} \text{8-PSK, radius } 1:\quad d_{\min} &= 2\sin\tfrac{\pi}{8} = 0.765\\ \text{PAM8, peak } \pm1:\quad d_{\min} &= \tfrac{2}{7} = 0.286\\ \text{ratio} &= 20\log_{10}\tfrac{0.765}{0.286} = 8.6\ \text{dB in favour of 8-PSK} \end{aligned}$$

Using a second dimension (phase) is far more efficient than stacking amplitude on one, which is why coherent links use QAM/PSK. Baseband copper and IM-DD optics have only one dimension, so they pay PAM's price.

10The transmitter

Worked example · the mid-code step of a 4:2:1 driver

The MSB segment is 1% strong: weights \(4(1 + \varepsilon), 2, 1\) with \(\varepsilon = 0.01\). Code 011 → 100 turns the MSB on and the two LSB segments off:

$$\begin{aligned} \Delta_{011 \to 100} &= 4(1 + \varepsilon) - (2 + 1) = 1 + 4\varepsilon = 1.04\ \text{steps}\\ \text{other steps} &= 1.00\ \text{steps}\\ \text{normalized to the new swing } 7 + 4\varepsilon:\quad & \text{middle eye } \tfrac{1.04}{7.04} = +3.4\%,\ \text{other eyes } \tfrac{1}{7.04} = -0.6\% \end{aligned}$$

A 1% segment error becomes a 4% eye error at mid-scale: the DNL of a binary-weighted DAC concentrates at the major carry. A thermometer driver spreads it as 1% per step.

11The receiver: slicers, CDR, DFE

Seven slicers

$$\hat{y} = 2\left\lfloor \frac{v + 8}{2} \right\rfloor - 7, \quad \text{clipped to } [-7, +7] \qquad (\text{thresholds at } 0, \pm2, \pm4, \pm6)$$

In practice: an ADC with at least 6–7 effective bits (the eyes are a seventh of full scale, and noise must be a fraction of an eye) and a DSP equalizer.

Crossing families

From the bottom level, steps of \(k\) gaps cross the first threshold at \(\tau\ln\frac{k}{k-1/2}\); the spread from \(k = 1\) to \(k = 7\) is \(\tau\ln\tfrac{13}{7} = 0.619\,\tau\).

Worked example · skew at 149.3 GBd

$$\begin{aligned} \text{UI} &= \frac{1}{149.33\ \text{GBd}} = 6.70\ \text{ps}\\ \text{if } \tau = 1.5\ \text{ps}:\quad \Delta t &= 0.619 \times 1.5 = 0.93\ \text{ps} \approx 14\%\ \text{of a UI} \end{aligned}$$

DFE

An unrolled first tap would need \(8 \times 7 = 56\) comparators, so PAM8 DFEs are digital. Error propagation is severe: one wrong decision misapplies \(2h_1\) against eyes a seventh of the swing.

12Precoding against DFE bursts

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

Worked example · a 4-symbol DFE burst

n01234567
data \(x\)36172504
precoded \(p\)33611440
burst error \(e\)00−1+1−1+100
received \(\hat{p}\)33520540
decoded \(\hat{x}\)36072514

Check one: \(\hat{x}[3] = (\hat{p}[3] + \hat{p}[2]) \bmod 8 = (2 + 5) \bmod 8 = 7 = x[3]\). Four wrong symbols become two (\(n = 2, 6\)).

13Where PAM8 is used

Standard / contextBaudCodingRateNotes
MIPI A-PHY v2.0, Gear 6≈8 GBd (implied)PAM8 + A-PHY PHY-layer FEC/retransmission24 Gb/s downlinkAutomotive camera/display SerDes; G7 uses PAM16 for 32 Gb/s
OIF CEI-448G (study)149.3 GBdCandidate448 Gb/s/laneListed with PAM4/PAM6; lowest baud, highest SNR need
DSL and legacy modemskBd–MBdTCM on 8-level 1D constellations—Coding-gain use of eight levels

Worked example · A-PHY's gear ladder

$$\begin{aligned} \text{Gear 5, PAM4:}\quad & 16\ \text{Gb/s} \div 2 = 8\ \text{GBd}\\ \text{Gear 6, PAM8:}\quad & 24\ \text{Gb/s} \div 3 = 8\ \text{GBd}\\ \text{Gear 7, PAM16:}\quad & 32\ \text{Gb/s} \div 4 = 8\ \text{GBd} \end{aligned}$$

The published gear rates are in the ratio 2 : 3 : 4, exactly bits per symbol, which implies the same symbol rate (before overhead) across Gears 5–7. Same Nyquist frequency, same cable and connector bandwidth; each gear trades SNR margin for 50% or 33% more throughput. That is an inference from the rates, not a quoted symbol rate; check the specification for the exact baud and overhead.

14PAM8 vs PAM4 and PAM6

FactorPAM4PAM6PAM8
Eye height (same swing)1/31/51/7
SNR for \(P_{\text{sym}} = 10^{-4}\)18.6 dB22.4 dB24.9 dB
Baud for 448 Gb/s224 GBd179.2 GBd149.3 GBd
Bit alignmentDirect, Gray5B2SDirect, Gray
Unrolled DFE tap 1123056
Where it winsMost high-speed lanesBandwidth wall near 90 GHz at 448GShort, quiet, bandwidth-limited links (A-PHY top gears)

15Encoder playground

Data is padded with zeros to a whole number of 3-bit groups. RDS is the running sum of levels.

16Interview drill

What does PAM8 buy and what does it cost?

3 bits per symbol, a third lower baud than PAM4. It costs \(20\log_{10}7 = 16.9\ \text{dB}\) of level penalty, 7.4 dB more than PAM4 peak-normalized, about 6.3 dB more SNR for the same symbol error rate, seven slicers and tight linearity.

Why Gray code PAM8?

So adjacent levels differ in one bit. Binary averages 1.57 bit errors per slip and 3 at the mid-scale step.

When does PAM8 beat PAM4?

On a linear-loss channel, once PAM4's Nyquist loss exceeds about 22 dB, and only if transmitter and receiver SNR (DAC, ADC, jitter) can support it. Bandwidth-limited, low-noise channels are the target.

How does A-PHY use PAM8?

Gear 6 (v2.0) carries 24 Gb/s with PAM8. Gears 5, 6 and 7 are 16, 24 and 32 Gb/s with PAM4, PAM8 and PAM16, consistent with a common symbol rate.

What is trellis-coded PAM8?

Eight levels carrying two data bits plus one code bit: set partitioning into subsets with doubled distances and a convolutional code over the subset sequence. About 3.3 dB asymptotic gain for 4 states over uncoded PAM4 at the same throughput.

Why is a binary-weighted PAM8 driver nonlinear at mid-scale?

At the 011 → 100 step the MSB turns on while the LSBs turn off; an MSB weight error \(\varepsilon\) appears as \(4\varepsilon\) in that one step. Thermometer coding spreads the error evenly.

What's probabilistic shaping?

Sending inner levels more often than outer ones (Maxwell–Boltzmann), lowering average power for a given rate; up to 1.53 dB of gain. Used in coherent optics; less attractive where peak swing is the constraint.

How would you validate a PAM8 link?

All seven eye heights and their uniformity, SNDR and ENOB at the DAC output, jitter, receiver ADC ENOB, and pre-FEC symbol error histograms by level to find a weak eye. Sweep FIR presets, since de-emphasis consumes the same DAC range the levels need.