OFDM Synchronization: SFO & Phase Tracking Simulator

OFDM Synchronization: SFO & Phase Tracking Simulator interactive tool preview
OFDM Synchronization: SFO & Phase Tracking Simulator interactive tool preview

SFO & Phase Tracking Simulator

SFO & Phase Tracking Simulator Interactive Tool - visualization of Carrier Frequency Offset (CFO) and Sampling Frequency Offset (SFO) in OFDM systems. (simulation, ofdm, sfo, cfo)

OFDM Synchronization: SFO & Phase Tracking Simulator

OFDM is the modulation scheme behind 5G NR, Wi-Fi 6 (802.11ax), and modern digital broadcasting. It handles multipath fading well and uses spectrum efficiently by packing many orthogonal subcarriers into a single channel. The trade-off is sensitivity to synchronization errors. Carrier Frequency Offset (CFO) and Sampling Frequency Offset (SFO) can destroy signal integrity when left uncompensated.

The SFO & Phase Tracking Simulator is an interactive visualization tool for studying how CFO and SFO affect OFDM receivers. This guide covers the underlying math and walks through practical use of the simulator.

Theoretical Background

ODM transmission splits a high-rate data stream into many low-rate streams sent in parallel on orthogonal subcarriers. Transmitters use an Inverse Fast Fourier Transform (IFFT) to generate the time-domain signal, and receivers use a Fast Fourier Transform (FFT) to recover the data. As long as the subcarriers stay orthogonal, they overlap in frequency without interference. Hardware imperfections break that orthogonality.

Carrier Frequency Offset (CFO)

CFO is a mismatch between the transmitter and receiver local oscillators. It comes from Doppler shift or crystal oscillator tolerances.

With normalized frequency offset $\epsilon$ (ratio of the frequency offset to the subcarrier spacing), the received time-domain signal is:

$$y(n) = x(n)e^{j2\pi \epsilon n / N} + w(n)$$

where $N$ is the FFT size and $w(n)$ is Additive White Gaussian Noise. After the receiver FFT, CFO causes two effects:

  1. Common Phase Error (CPE): Every subcarrier picks up the same phase rotation. On a constellation diagram, the entire pattern rotates around the origin.
  2. Inter-Carrier Interference (ICI): The subcarriers no longer align with the FFT bins, so energy from one bleeds into the next. On a constellation diagram, the points blur into a cloud, and the Error Vector Magnitude (EVM) rises.

Sampling Frequency Offset (SFO)

SFO comes from the baseband section. The receiver's ADC clock runs at a slightly different rate than the transmitter's DAC clock. Let $\zeta = (T_{rx} - T_{tx}) / T_{tx}$ represent the timing mismatch. A sampling offset adds a time-varying fractional delay to the signal, which becomes a frequency-dependent phase shift in the frequency domain.

The phase rotation on the $k$-th subcarrier at OFDM symbol index $l$ is approximated as:

$$\Phi_{k,l} = 2\pi k \zeta (N_s/N) l$$

where $N_s$ is the total number of samples per OFDM symbol (including the cyclic prefix).

This formula produces a clear visual signature. Because $\Phi \propto k$, the center subcarrier sees no rotation, mid-range subcarriers rotate slowly, and edge subcarriers rotate rapidly. On a constellation diagram, this looks like a "twisting" smear where outer points are far more blurred than inner points.

Phase Tracking and Pilot Subcarriers

OFDM standards embed known reference signals called pilot subcarriers in each symbol. The receiver knows exactly what phase and amplitude the pilots should have, so it can measure the drift introduced by the channel, CFO, and SFO.

Estimating the common phase across all pilots gives the CPE (used to correct CFO). Measuring the slope of the phase drift across different pilot indices gives the SFO. A phase tracking algorithm then applies the inverse rotation to the data subcarriers before demodulation, pulling the constellation points back to their target positions.

About the SFO & Phase Tracking Simulator

The SFO & Phase Tracking Simulator is a web-based or software visualization tool for wireless communications students, DSP engineers, and telecom researchers. Instead of building MATLAB or Python scripts from scratch, you get an interactive GUI that models a full OFDM transmitter-channel-receiver chain. You can inject precise CFO and SFO values, watch the constellation diagram react in real time, and toggle tracking algorithms on and off to see the recovery.

Key Features

  • Real-Time Constellation Visualization: I/Q constellation diagrams for BPSK, QPSK, 16-QAM, 64-QAM, and 256-QAM that update as you change parameters.
  • Independent CFO & SFO Sliders: Set parts-per-million (PPM) clock drift and Hz-level carrier offsets separately to isolate their effects.
  • Pilot Subcarrier Overlay: Shows pilot locations in the OFDM frame and their phase trajectories.
  • ICI Modeling: Simulates the noise spread from uncorrected frequency offsets and the resulting EVM hit.
  • Phase Tracking Toggles: Enable one-tap PLLs or pilot-aided estimation to see automatic de-rotation.
  • Subcarrier Probing: Pick individual subcarriers (center vs. edge) to compare how SFO scales across the band.

How to Use the Simulator

Step 1: Set the Baseline

Launch the tool and pick a modulation scheme. 16-QAM or 64-QAM makes phase rotations easy to see. Set all offset sliders (CFO, SFO, AWGN) to zero. The constellation should look like a clean grid.

Step 2: Inject CFO

Drag the CFO slider to a small fractional value (e.g., 0.05 of the subcarrier spacing).

  • The entire constellation rotates uniformly around the origin.
  • Increase CFO further and the points turn into rings as ICI widens them.

Step 3: Inject SFO

Reset CFO to zero, then raise the SFO slider (in PPM).

  • The center points stay nearly fixed while outer points spin and blur into arcs. This is the visual equivalent of $\Phi \propto k$.

Step 4: Combine Impairments and Check EVM

Turn on both CFO and SFO with a realistic AWGN level (e.g., 20 dB SNR). The constellation turns into a chaotic cloud and the EVM meter spikes, signaling a high Bit Error Rate (BER).

Step 5: Engage Phase Tracking

Click Enable Phase Tracking.

  • The algorithm uses the pilot subcarriers to estimate CFO and SFO and snap the constellation back to clean points. Toggle tracking off and on to see the difference digital synchronization makes.

Practical Applications

1. 5G NR and mmWave Baseband Design At 28 GHz or 39 GHz, phase noise and CFO are amplified by the high carrier frequency. Engineers use this kind of simulator to benchmark Phase Tracking Reference Signal (PT-RS) algorithms.

2. Wi-Fi 6 (802.11ax) Development Wi-Fi 6 pushes up to 1024-QAM to hit gigabit speeds. At that density, even a tiny SFO causes symbol errors. The simulator helps define the ADC/DAC clock tolerances a Wi-Fi 6 router needs.

3. Academic Research and DSP Courses Graduate digital communications courses use it to connect Fourier math to the visual reality of I/Q modulation.

4. Software Defined Radio (SDR) Prototyping SDR platforms (USRP, HackRF) often use cheaper oscillators with large CFO and SFO. The simulator serves as a reference for debugging GNU Radio flowgraphs.

FAQ

1. What is the fundamental difference between CFO and SFO in OFDM? CFO is an RF mismatch between local oscillators, causing a uniform phase rotation across all subcarriers. SFO is a baseband clock mismatch, causing a frequency-dependent rotation where outer subcarriers drift more than inner ones.

2. How does CFO cause Inter-Carrier Interference? OFDM subcarriers are orthogonal because each subcarrier's peak lines up with the nulls of its neighbors at the FFT sampling points. CFO shifts the whole grid, so the FFT samples off-center and picks up energy from adjacent subcarriers (ICI).

3. Why is SFO harder to track than CFO? CFO can often be fixed with a single time-domain phase rotation before the FFT. SFO requires estimating a phase slope across frequency, then either interpolating samples with fractional delay filters or applying per-subcarrier de-rotations after the FFT, both of which are more compute-intensive.

4. What role do pilot subcarriers play in phase tracking? Pilots are known reference points transmitted alongside data. Since the receiver knows the exact intended I/Q position, any phase deviation in a received pilot directly measures the channel, CFO, and SFO. The receiver applies the inverse to the data subcarriers.

5. Why is OFDM more sensitive to frequency offsets than single-carrier systems? OFDM uses many narrow, tightly packed subcarriers for spectral efficiency. With small subcarrier spacing $\Delta f$, even a few kHz of offset is a large fractional value $\epsilon = \text{Offset} / \Delta f$ and destroys orthogonality. Single-carrier systems use much wider symbol bandwidths and tolerate small frequency shifts far better.

Conclusion

OFDM synchronization is best learned by seeing it. The SFO & Phase Tracking Simulator turns CFO and SFO from abstract math into something you can adjust, watch, and correct. Whether you are designing 6G modems, tuning Wi-Fi hardware, or studying for a graduate communications exam, the tool gives a direct view of how phase, frequency, and time interact in a real OFDM receiver.

Related Simulations