S8 · Lesson 39 · Coded modulation
Trellis-coded modulation by set partitioning, its gains without extra bandwidth, BICM and shaping
The codes of lessons 34 to 37 add redundant bits, and on a band-limited channel those bits cost bandwidth or force a denser constellation. Ungerboeck's insight in 1982 was to design the code and the constellation together: double the constellation (8-PSK instead of QPSK for 2 bits per symbol) to make room for one redundant bit, and use the code to guarantee that only points far apart can be confused. The result gains 3 to 6 dB with no extra bandwidth, and its descendants, bit-interleaved coded modulation with strong binary codes, carry almost every modern wireless and cable link.
- The stems are the minimum squared distance within the subsets of 8-PSK (unit energy) at each level of Ungerboeck's set partitioning: .
- Splitting the 8 points into two QPSK subsets raises the distance from 0.586 to 2; splitting again into antipodal pairs raises it to 4.
- The code's job is to choose the subset; the uncoded bits choose the point within it, protected by the subset's large internal distance.
Predict
A 4-state trellis code sends 2 bits per symbol on 8-PSK, against uncoded QPSK at the same symbol rate and energy. What asymptotic gain does it give?
Its free squared distance is 4 (set by parallel transitions between the antipodal points of a level-2 subset), against 2 for QPSK: dB. Both send one symbol per 2 bits, so the bandwidth is unchanged. An 8-state code reaches : 3.6 dB.
Name it
Set partitioning
Split a -point constellation into two subsets with larger minimum distance, then each of those into two, and so on. For 8-PSK at unit energy the squared distances are , , ; for square QAM each split doubles the squared distance. A rate convolutional code picks the subset; the remaining uncoded bits pick a point within it, giving parallel transitions whose distance is the final subset's.
Ungerboeck's rules
- Transitions leaving or entering the same state use subsets from the same first-level split, so the distance between diverging paths starts at .
- Parallel transitions use the most widely separated points.
- All points are used equally often.
Gain
The asymptotic gain over an uncoded constellation of the same rate is
For 8-PSK against QPSK: 3.0 dB with 4 states, 3.6 dB with 8, and approaching 6 dB with hundreds of states. Doubling the constellation first costs dB in minimum distance, which the code must more than win back.
BICM and shaping
Bit-interleaved coded modulation separates the two again: a strong binary code (turbo or LDPC), a bit interleaver and a Gray-labeled constellation, with the receiver computing per-bit likelihoods. Over fading channels it does better than TCM, and with modern codes it sits within about a decibel of capacity. Uniformly used points leave one more gap: the ideal input is Gaussian-like, and shaping (using inner points more often, or a near-spherical constellation boundary) can recover up to dB.
Worked example
Check the 8-state 8-PSK code's free distance and gain.
Show the solution
- Shortest error event. With no parallel transitions it leaves through a level-1 split (), passes one step at the closest distance (), and returns through another level-1 split (2).
- Free distance.
- Gain over QPSK. Against QPSK's 2: with the same bits per symbol and the same bandwidth.
Answer = 4.586, a gain of 3.6 dB over QPSK.
Worked example
A 16-QAM constellation with points 2d apart is partitioned for a TCM code. What squared distance does each level's subsets have?
Show the solution
- Level 0. All 16 points:
- Each split. It doubles the squared distance: , and for subsets of 8, 4 and 2 points.
- Using it. A code carrying 3 bits on 16-QAM can then aim to beat uncoded 8-PSK or 8-QAM at the same rate by protecting the subset choice.
Answer for all 16 points, then , and for subsets of 8, 4 and 2 points.
Worked example
An uncoded 64-QAM link at 10⁻⁵ is about 9 dB from capacity. A modern code recovers 7 dB and shaping 1 dB. How far from capacity is it?
Show the solution
- Subtract the gains.
- Shaping's cap. Shaping's ultimate 1.53 dB caps that part; the rest of the gap comes from finite code lengths and decoding complexity.
- In practice. The best modern standards, such as DVB-S2 with its long LDPC codes, operate about this close.
Answer about 1 dB from capacity.
Check
An 8-PSK constellation of symbol energy 1 is set-partitioned.
(a)
What is the minimum squared distance within level-1 subsets?
Check
A trellis code reaches = 4.586 (energy-normalized); the uncoded scheme at the same rate has = 2.
(a)
What asymptotic gain does it give?
Check
A square QAM constellation with points 2d apart, d = 1, is set-partitioned.
(a)
What is the minimum squared distance at level 1?
Check
A TCM scheme sends 3 bits per symbol with one redundant coded bit.
(a)
How many points must its constellation have?
(b)
What is the code rate on the coded-plus-uncoded bits?
Check
An uncoded scheme sits 9 dB from capacity; coding recovers 5 dB and shaping 1.5 dB.
(a)
How far from capacity is the result?
Check
A constellation is doubled from 16/2-PSK to 16-PSK at equal energy to make room for a code bit.
(a)
How much minimum distance does the doubling cost, before any coding?
Check
How does trellis-coded modulation gain several decibels without using more bandwidth?
Check
An M-PSK constellation has symbol energy E; a code has = f against an uncoded = u.
Step 1
What is the M-PSK minimum squared distance?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What asymptotic gain does the code give?
Step 3
What is the most shaping can add?
Check
Write subset_dist(M, level): the minimum squared distance between points of one level-level subset of unit-energy M-PSK (the points ), by enumeration.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Explain why
Why did trellis-coded modulation make high-speed telephone modems possible?
A telephone channel has a fixed bandwidth of about 3 kHz, so adding redundant bits by sending more symbols wasn't an option, and ordinary codes that expand bandwidth were useless there. Trellis-coded modulation instead adds its redundancy by enlarging the constellation, keeping the symbol rate the same, and arranges through set partitioning that only widely separated sequences of points can be confused. That gains 3 to 6 dB of noise margin for the same rate and bandwidth, which on a phone line translated directly into higher speeds, taking modems from 9.6 to 14.4 kb/s and beyond.
Practice
Keep practicing
9 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.