Techniquecore
SC-FDMA
Also called DFT-spread OFDM, single-carrier FDMA.
Spread each user's M symbols with an M-point DFT before the OFDM transform. The signal keeps a single-carrier envelope with a lower PAPR, and the receiver still equalizes per subcarrier.
SC-FDMA (single-carrier frequency-division multiple access), also called DFT-spread OFDM, is a multiple-access scheme that gives each user a set of subcarriers, like OFDMA, but first spreads the user's data over them with a DFT. A user with data symbols takes their -point DFT, places the outputs on of the subcarriers, takes the -point inverse DFT and adds a cyclic prefix. The inverse DFT partly undoes the first DFT, so the time signal is close to the original data, upsampled and interpolated: a single-carrier signal. Its peak-to-average power ratio is therefore much lower than that of OFDMA, which matters for the battery-powered amplifier of a mobile terminal. The receiver keeps the simple one-tap frequency-domain equalization of OFDM, followed by an -point inverse DFT. The LTE uplink uses SC-FDMA. The page uses the unitary DFT , and is the imaginary unit.
In plain words
In OFDM each data symbol rides on its own tone, and many tones add up to a signal with tall, random peaks. In SC-FDMA the sender first mixes its symbols together with a Fourier transform and puts the mixture on its tones. The second transform, the one that makes the time signal, then unmixes them again. What goes on the air looks like the original symbols sent one after another, smoothed between them. Such a signal has no tall random peaks, so the amplifier can run closer to its limit. The receiver fixes the channel tone by tone, as in OFDM, and then unmixes the symbols. A user still gets its own tones, so many users can share the band.
When it applies
- Several users share a band in the uplink, and each user's power amplifier is the limit, so a low PAPR saves power or extends coverage.
- The channel is frequency selective, with a delay spread shorter than a cyclic prefix that the system can afford, so each subcarrier sees one complex gain.
- Each user can be given a contiguous block of subcarriers (localized) or an evenly spaced comb (interleaved), with an integer for the comb.
- The receiver can run a linear equalizer. SC-FDMA spreads each symbol over all its subcarriers, so a deep fade on one subcarrier affects every symbol a little rather than one symbol a lot.
The template
SC-FDMA(d[0..M-1], N, map, cp) ▷ transmitter, then receiver- 1
D ← F_M d ▷ M-point DFT spreading - 2
X ← 0 (N values); X[map(m)] ← D[m] for m = 0..M-1 - 3
x ← F_Nᴴ X ▷ N-point inverse DFT - 4
send (x[N-cp..N-1], x) ▷ cyclic prefix - 5
Y ← F_N (received samples cp..cp+N-1) - 6
Z[m] ← conj(H[k]) Y[k] / (|H[k]|² + σ²) with k = map(m), for m = 0..M-1 - 7
return F_Mᴴ Z ▷ M-point inverse DFT
Mappings. Localized: , a block of adjacent subcarriers starting at . Interleaved: , every -th subcarrier.
The channel. With a channel , , the prefix makes the convolution circular, so plus noise, with . Line L6 is one-tap MMSE equalization with the noise variance per subcarrier; gives zero forcing, and then the round trip is exact without noise.
The interleaved signal. With ,
because . The samples are the data repeated times, scaled by and rotated by a phase ramp. At these samples the PAPR is that of the data alone: exactly 0 dB for QPSK. The localized signal with passes through at the samples and interpolates between them with a periodic sinc.
Cost. The transmitter adds an -point DFT to the -point inverse DFT of OFDMA, and the receiver adds an -point inverse DFT, so one symbol costs operations.
Classic examples
PAPR against OFDMA. Take , , oversampling by 4 for the measurement, and 1000 random blocks (Python random.Random(3)). OFDMA here means the same 16 subcarriers without the DFT spreading.
| constellation | signal | mean PAPR | 99 percent below | |
|---|---|---|---|---|
| QPSK | OFDMA | 6.29 dB | 8.77 dB | 0.519 |
| QPSK | SC-FDMA, localized | 4.49 dB | 6.50 dB | 0.048 |
| QPSK | SC-FDMA, interleaved | 4.46 dB | 6.42 dB | 0.035 |
| 16-QAM | OFDMA | 6.23 dB | 8.83 dB | 0.503 |
| 16-QAM | SC-FDMA, localized | 4.97 dB | 7.00 dB | 0.103 |
| 16-QAM | SC-FDMA, interleaved | 4.88 dB | 7.00 dB | 0.099 |
For QPSK, SC-FDMA saves 1.8 dB in the mean and 2.3 dB at the 99 percent point. For 16-QAM it saves 1.3 dB and 1.8 dB, because the 16-QAM points themselves have a PAPR of up to 2.55 dB. The interleaved signal is 0 dB for QPSK at its samples, but its peaks between the samples bring it to the same level as the localized signal. Without a pulse-shaping filter the two mappings differ little. A spectral shaping filter, such as a raised-cosine taper on the subcarriers, lowers both further at the cost of bandwidth.
Full band. If one user takes all subcarriers with the localized mapping and , then lines L1 to L3 give : plain single-carrier transmission with a cyclic prefix and frequency-domain equalization, as described by Falconer and his coauthors.
Through a channel. With , , a prefix of 4 and a random 5-tap channel, lines L5 to L7 with return the data to within rounding error for both mappings and any start .
Variations
- Localized or interleaved. Localized blocks allow scheduling on the best part of the band for each user; interleaved combs give frequency diversity and the exact repetition structure above. LTE uses localized blocks.
- Pulse shaping. Multiply the DFT outputs by a spectral window, using some extra subcarriers, to lower the PAPR further.
- Pilots. The reference signals of an SC-FDMA uplink are usually constant-amplitude sequences, such as Zadoff-Chu sequences, placed in their own SC-FDMA symbols so that their PAPR is also low.
- Clustered DFT-spread OFDM. The outputs go to several separated blocks. This gives more scheduling freedom and a somewhat higher PAPR.
- Nonlinear receivers. Decision feedback or turbo equalization in the frequency domain recovers part of the loss of linear equalization on channels with deep fades.
Pitfalls
- Measuring at the sample rate. At the samples an interleaved QPSK signal has a PAPR of exactly 0 dB, but the analog signal has peaks between them. Measure with oversampling by 4.
- Forgetting the scale. With an unscaled -point DFT in line L1 and an inverse DFT scaled by in line L3, the interleaved samples are instead of , and the power is off by the factor . Use unitary DFTs in lines L1 and L3.
- Equalizing in time. The data are not on the subcarriers, so a decision per subcarrier is wrong. Equalize per subcarrier in line L6, then take the inverse DFT in line L7, then decide.
- Zero forcing on deep fades. With in line L6, one weak subcarrier enhances the noise, and the inverse DFT spreads that noise over all symbols. Use the MMSE weights.
- A prefix shorter than the channel. The convolution is no longer circular and line L6 leaves interference between subcarriers and between symbols. The prefix must cover the delay spread.
Code
Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/sc-fdma/. The authors are listed in prov/1A5ZQW.jsonl.
"""SC-FDMA (DFT-spread OFDM): transmitter, receiver and the PAPR measurement.
A user with M data symbols takes their unitary M-point DFT, places the M
values on M of the N subcarriers (a block of adjacent subcarriers, localized,
or every Q-th subcarrier, interleaved, with Q = N / M), takes the unitary
N-point inverse DFT and adds a cyclic prefix. The receiver removes the prefix,
takes the N-point DFT, picks the M subcarriers, equalizes each with one tap
and takes the M-point inverse DFT. The FFT is a radix-2 FFT, so M, N and the
oversampling factor must be powers of two.
"""
import cmath
import math
from typing import Optional, Sequence
def fft(a: Sequence[complex], inverse: bool = False) -> list[complex]:
"""Radix-2 FFT with no scale factor: sum_n a[n] e^(-+ j 2 pi k n / n_len)."""
n = len(a)
if n == 0 or n & (n - 1):
raise ValueError("the length must be a power of two")
out = [complex(v) for v in a]
j = 0
for i in range(1, n):
bit = n >> 1
while j & bit:
j ^= bit
bit >>= 1
j |= bit
if i < j:
out[i], out[j] = out[j], out[i]
sign = 1 if inverse else -1
size = 2
while size <= n:
half = size // 2
tw = [cmath.exp(sign * 2j * math.pi * k / size) for k in range(half)]
for s in range(0, n, size):
for k in range(half):
u = out[s + k]
v = out[s + k + half] * tw[k]
out[s + k] = u + v
out[s + k + half] = u - v
size *= 2
return out
def udft(x: Sequence[complex]) -> list[complex]:
"""The unitary DFT F x, with F[k, n] = e^(-j 2 pi k n / n_len) / sqrt(n_len)."""
s = 1.0 / math.sqrt(len(x))
return [v * s for v in fft(x)]
def uidft(X: Sequence[complex]) -> list[complex]:
"""The unitary inverse DFT F^H X."""
s = 1.0 / math.sqrt(len(X))
return [v * s for v in fft(X, inverse=True)]
def subcarriers(m: int, n: int, mapping: str, offset: int = 0) -> list[int]:
"""The N-point subcarrier indices of the M DFT outputs."""
if n % m:
raise ValueError("M must divide N")
if mapping == "localized":
return [(offset + i) % n for i in range(m)]
if mapping == "interleaved":
q = n // m
return [(offset + q * i) % n for i in range(m)]
raise ValueError("mapping must be localized or interleaved")
def transmit(d: Sequence[complex], n: int, mapping: str, offset: int = 0, cp: int = 0) -> list[complex]:
"""One SC-FDMA symbol with its cyclic prefix."""
D = udft(d) # @line L1
X = [0j] * n # @line L2
for v, k in zip(D, subcarriers(len(d), n, mapping, offset)):
X[k] = v
x = uidft(X) # @line L3
return x[n - cp:] + x if cp else x # @line L4
def receive(
r: Sequence[complex], m: int, n: int, mapping: str, offset: int = 0, cp: int = 0,
h: Optional[Sequence[complex]] = None, noise_var: float = 0.0,
) -> list[complex]:
"""Recover the M data symbols with one-tap MMSE equalization (zero forcing when noise_var = 0).
h is the channel impulse response, at most cp + 1 taps long.
"""
Y = udft(list(r[cp: cp + n])) # @line L5
hk = fft(list(h) + [0j] * (n - len(h))) if h is not None else [1 + 0j] * n
Z = []
for k in subcarriers(m, n, mapping, offset): # @line L6
Z.append(hk[k].conjugate() * Y[k] / (abs(hk[k]) ** 2 + noise_var))
return uidft(Z) # @line L7
def channel(x: Sequence[complex], h: Sequence[complex]) -> list[complex]:
"""Linear convolution with h, cut to the length of x."""
return [sum(h[l] * x[t - l] for l in range(len(h)) if t - l >= 0) for t in range(len(x))]
def oversampled(d: Sequence[complex], n: int, mapping: str, offset: int = 0, L: int = 4) -> list[complex]:
"""The SC-FDMA symbol (no prefix) oversampled by L, zeros in the middle of the spectrum, scaled by sqrt(L)."""
X = [0j] * n
for v, k in zip(udft(d), subcarriers(len(d), n, mapping, offset)):
X[k] = v
z = [0j] * (L * n)
z[: n // 2] = X[: n // 2]
z[L * n - n + n // 2:] = X[n // 2:]
s = 1.0 / math.sqrt(n)
return [v * s for v in fft(z, inverse=True)]
def papr(x: Sequence[complex]) -> float:
"""max |x[m]|^2 over the time average of |x[m]|^2."""
p = [abs(v) ** 2 for v in x]
return max(p) / (sum(p) / len(p))
test_sc_fdma.py 94 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/sc-fdma/. The authors are listed in prov/1A5ZQW.jsonl.
import cmath
import math
import random
from sc_fdma import channel, fft, oversampled, papr, receive, subcarriers, transmit, udft, uidft
QPSK = [complex(a, b) / math.sqrt(2) for a in (1, -1) for b in (1, -1)]
def rule(gamma, n):
return 1 - (1 - math.exp(-gamma)) ** n
def wilson(k, n, z=3.0):
p = k / n
c = (p + z * z / (2 * n)) / (1 + z * z / n)
h = z * math.sqrt(p * (1 - p) / n + z * z / (4 * n * n)) / (1 + z * z / n)
return c - h, c + h
def ofdm_oversampled(X, n, L):
Z = [0j] * n
Z[: len(X)] = X
z = [0j] * (L * n)
z[: n // 2] = Z[: n // 2]
z[L * n - n + n // 2:] = Z[n // 2:]
return [v / math.sqrt(n) for v in fft(z, inverse=True)]
def test_unitary_dft():
rng = random.Random(1)
x = [complex(rng.gauss(0, 1), rng.gauss(0, 1)) for _ in range(16)]
X = udft(x)
ref = [sum(x[t] * cmath.exp(-2j * math.pi * k * t / 16) for t in range(16)) / 4 for k in range(16)]
assert max(abs(u - v) for u, v in zip(X, ref)) < 1e-9
assert max(abs(u - v) for u, v in zip(uidft(X), x)) < 1e-9
def test_round_trip_through_a_channel():
rng = random.Random(2)
n, m, cp = 64, 16, 4
for mapping in ("localized", "interleaved"):
for offset in (0, 3, 50):
d = [rng.choice(QPSK) for _ in range(m)]
h = [complex(rng.gauss(0, 1), rng.gauss(0, 1)) for _ in range(cp + 1)]
s = transmit(d, n, mapping, offset, cp)
assert len(s) == n + cp
r = channel(s, h)
dh = receive(r, m, n, mapping, offset, cp, h)
assert max(abs(u - v) for u, v in zip(dh, d)) < 1e-9
assert max(abs(u - v) for u, v in zip(receive(s, m, n, mapping, offset, cp), d)) < 1e-9
def test_interleaved_is_a_repeated_and_rotated_copy():
rng = random.Random(3)
n, m, r = 64, 16, 5
q = n // m
d = [rng.choice(QPSK) for _ in range(m)]
x = transmit(d, n, "interleaved", r)
for t in range(n):
want = d[t % m] * cmath.exp(2j * math.pi * r * t / n) / math.sqrt(q)
assert abs(x[t] - want) < 1e-9
assert abs(papr(x) - 1) < 1e-9
def test_full_band_is_single_carrier():
rng = random.Random(4)
d = [rng.choice(QPSK) for _ in range(32)]
assert max(abs(u - v) for u, v in zip(transmit(d, 32, "localized"), d)) < 1e-9
def test_subcarrier_maps():
assert subcarriers(4, 16, "localized", 14) == [14, 15, 0, 1]
assert subcarriers(4, 16, "interleaved", 1) == [1, 5, 9, 13]
def test_papr_below_ofdm_and_below_the_rule():
rng = random.Random(5)
n, m, trials = 64, 16, 400
sc, of = [], []
for _ in range(trials):
d = [rng.choice(QPSK) for _ in range(m)]
sc.append(papr(oversampled(d, n, "localized", 0, 4)))
of.append(papr(ofdm_oversampled(d, n, 4)))
mean_db = lambda v: 10 * math.log10(sum(v) / len(v))
assert mean_db(of) - mean_db(sc) > 1.0
g = 10 ** 0.6
_, hi = wilson(sum(1 for v in sc if v > g), trials)
lo, _ = wilson(sum(1 for v in of if v > g), trials)
assert hi < rule(g, m) / 2
assert lo > rule(g, m)
Exercises
- Show that with the interleaved mapping and , the transmitted samples are .
- Show that with and the localized mapping at , SC-FDMA is single-carrier transmission with a cyclic prefix.
- With zero forcing and white noise of variance per subcarrier, show that each recovered symbol has the noise variance , the same for every symbol, while in OFDMA symbol has .
- Two users share subcarriers with each, one on the even and one on the odd subcarriers. Show that their signals are orthogonal over one symbol.
- Explain why the localized SC-FDMA signal at oversampling 1 has almost the same PAPR as at oversampling 4 when , using the fact that the samples already oversample the data symbols by 4.
References
- Hyung G. Myung, Junsung Lim and David J. Goodman, Single carrier FDMA for uplink wireless transmission, IEEE Vehicular Technology Magazine 1(3), 2006, pages 30 to 38, the transmitter and receiver structure, the localized and interleaved subcarrier mappings and the comparison of PAPR with OFDMA
- David Falconer, Sirikiat Lek Ariyavisitakul, Anader Benyamin-Seeyar and Brian Eidson, Frequency domain equalization for single-carrier broadband wireless systems, IEEE Communications Magazine 40(4), 2002, pages 58 to 66, single-carrier transmission with a cyclic prefix and frequency-domain equalization, compared with OFDM
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Code (python) | I0 not checked yet |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag 1A5ZQW Edit this page History Report an error Markdown