|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Correlation is a signal-matching operation. Auto-correlation is what synchronizers use to find the start of a frame; cross-correlation is what receivers use to detect specific known sequences buried in noise. Both produce a single function of lag, with a sharp peak when the template aligns with the corresponding pattern in the received stream. This tutorial sweeps the lag manually or finds the peak automatically, with controls for noise level and multipath so you can see what 5G PSS / SSS detection actually looks like when the cell signal is weaker than the noise floor. Sections Mathematical FoundationFor two discrete-time signals Rxy[m] = Σn x[n] · y*[n + m]
where Auto-correlation is the special case Rxx[m] = Σn x[n] · x*[n + m]
It has a guaranteed peak of Processing GainBecause correlation sums coherently over Gp ≈ 10 · log10(N) dB
For a length-127 PSS, that's ~21 dB of gain — which is why the PSS detection still works at negative input SNR. Crank the Noise slider up and confirm: the time-domain signal becomes invisible while the correlation peak stays clearly above the noise floor. Sequence LibraryDifferent sequences have different auto-correlation properties, optimized for different applications:
5G NR Cell Search: PSS and SSS5G NR encodes the physical cell ID into two short synchronization signals on the SS/PBCH block. Both have length 127 and BPSK chips; both are detected by correlation: NIDcell = 3 · NID(1) + NID(2) (0 ≤ NIDcell ≤ 1007)
The UE first detects which PSS is present (3 candidates), then which SSS (336 candidates given the PSS) — total 1008 cell IDs. The cross-correlation between any two different PSS or SSS sequences is intentionally low, so a detector locked onto one sequence rejects the others. MultipathIn a real channel the receiver sees the direct path plus delayed reflected copies. Each reflection produces its own correlation peak at the corresponding lag. Toggle the Multipath button to see this directly:
A Rake receiver exploits this by detecting and coherently combining several peaks instead of just the strongest. That's how DS-CDMA receivers harvest energy from multipath instead of treating it as interference. SimulationThe interactive simulator is below. Start with the Barker 13 preset, slide the shift τ until R(τ) peaks (or just click Find Sync), and then crank the noise to see processing gain at work. Try PSS NID2=0 in cross-correlation mode against the wrong reference to see how cell IDs are distinguished. Controls
0.30
150
0
Sync:
1. Reference Signal
2. Received Signal (Reference + Noise + Delay)
3. Correlation Rxy(τ)
Usage
Visual Guide
Key Insights
Limitations
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||