Exercises

ex-sp-ch20-01

Easy

Generate a BPSK constellation with Eb=1E_b = 1 and compute its minimum Euclidean distance. Verify that dmin⁑=2Ebd_{\min} = 2\sqrt{E_b}.

ex-sp-ch20-02

Easy

Write a function that generates an MM-PSK constellation for any MM and verify that all symbols have unit energy.

ex-sp-ch20-03

Easy

Compute the theoretical BER for BPSK at Eb/N0=0,5,10,15E_b/N_0 = 0, 5, 10, 15 dB using the QQ-function.

ex-sp-ch20-04

Easy

Convert Eb/N0=12E_b/N_0 = 12 dB to Es/N0E_s/N_0 for QPSK, 16-QAM, and 64-QAM.

ex-sp-ch20-05

Easy

Implement ML detection for QPSK using only sign decisions on the I and Q components (no distance computation).

ex-sp-ch20-06

Medium

Implement a complete 16-QAM transmitter-receiver chain with Gray coding. Simulate BER at Eb/N0=0,4,8,12,16E_b/N_0 = 0, 4, 8, 12, 16 dB with at least 100 errors per point. Compare with the theoretical formula.

ex-sp-ch20-07

Medium

Compute the union bound on the SER for 16-QAM and compare with the exact nearest-neighbor approximation. At what SNR does the bound become tight (within 0.5 dB)?

ex-sp-ch20-08

Medium

Implement a BPSK matched filter receiver with root-raised-cosine pulse shaping. Measure the output SNR and verify it equals 2Eb/N02E_b/N_0.

ex-sp-ch20-09

Medium

Compare BPSK and DBPSK (differential BPSK) BER over AWGN. Show that DBPSK has a 1-2 dB penalty.

ex-sp-ch20-10

Medium

Implement error vector magnitude (EVM) measurement for 16-QAM. Show the relationship between EVM and SNR.

ex-sp-ch20-11

Hard

Implement 8-PSK with set partitioning (Ungerboeck labeling) instead of Gray coding. Compare BER with Gray-coded 8-PSK. Why is set partitioning used in trellis-coded modulation?

ex-sp-ch20-12

Hard

Design a 32-cross-QAM constellation (the "cross" shape used when M\sqrt{M} is not integer). Normalize to unit energy and compute dmin⁑d_{\min} and the average number of nearest neighbors.

ex-sp-ch20-13

Hard

Implement a soft-decision demapper for 16-QAM that outputs log-likelihood ratios (LLRs) for each bit. Show that soft decisions improve BER when fed to a convolutional decoder.

ex-sp-ch20-14

Hard

Implement a complete BER simulation with importance sampling for BPSK at Eb/N0=12E_b/N_0 = 12 dB (where Pbβ‰ˆ3.9Γ—10βˆ’6P_b \approx 3.9 \times 10^{-6}). Show that IS achieves the same accuracy as standard MC with 1000x fewer samples.

ex-sp-ch20-15

Challenge

Design an optimal 8-ary constellation for AWGN that minimizes SER at Es/N0=12E_s/N_0 = 12 dB. Compare rectangular 8-QAM, 8-PSK, and your optimized constellation. Use gradient descent to optimize symbol positions.

ex-sp-ch20-16

Challenge

Implement a probabilistic constellation shaping (PCS) scheme for 64-QAM where inner constellation points are transmitted more frequently. Show the shaping gain by comparing with uniform 64-QAM at the same average bit rate.