|
|
||
|
This interactive tutorial visualizes correlation in wireless communications. Correlation is a “signal matching” tool: auto-correlation helps with synchronization (finding the start of a frame), and cross-correlation helps identify specific signals amidst noise or interference. Mathematical Foundation1. Discrete Cross-Correlation For two discrete signals x[n] and y[n], the cross-correlation at lag m is: Rxy[m] = ∑n x[n] · y[n+m] (real) Rxy[m] = ∑n x[n] · y*[n+m] (complex, y* = conjugate) When the template x aligns with the matching segment in y, the sum reaches a peak. The lag m at the peak gives the time delay (time-of-arrival). For complex sequences (e.g. Zadoff-Chu), |R| is displayed. 2. Example Sequences The simulator supports diverse sequences: Barker 13/11 (DSSS), Zadoff-Chu (LTE/5G PRACH, complex-valued), Gold 31 (5G NR scrambling), PN-15 (IS-95 CDMA), Walsh-8 (orthogonal CDMA codes), NR PSS/SSS (5G cell search). The default Barker 13 code [1, 1, 1, 1, 1, −1, −1, 1, 1, −1, 1, −1, 1] has:
3. Processing Gain Even when the signal is buried in noise (negative SNR), the correlation peak persists because we integrate over N samples. Processing gain ≈ 10 log10(N) dB. 4. 5G NR PSS (Primary Synchronization Signal) The NR PSS is a length-127 BPSK-modulated m-sequence (TS 38.211 §7.4.2.2.1). Three PSS sequences (NID(2) = 0, 1, 2) use cyclic shifts of the same m-sequence. The auto-correlation has a peak of 127 and very low sidelobes — ideal for cell search and symbol timing. Each PSS uniquely identifies one of the three NID(2) components of the physical cell ID. 5. 5G NR SSS (Secondary Synchronization Signal) The NR SSS is the element-wise product of two cyclically shifted m-sequences x0 and x1 (TS 38.211 §7.4.2.3.1). The shifts m0 and m1 encode the 336 possible NID(1) values. Together with PSS, the SSS allows the UE to decode the full physical cell ID NIDcell = 3·NID(1) + NID(2) (0–1007). The cross-correlation between different PSS/SSS sequences is very low, enabling fast cell differentiation. 6. Multipath In multipath channels, the received signal is the sum of the direct path plus reflected copies. The correlation plot shows a primary peak (direct) and smaller ghost peaks (reflections). Rake receivers combine these peaks to improve detection. Controls
0.30
150
0
Sync:
1. Reference Signal
2. Received Signal (Reference + Noise + Delay)
3. Correlation Rxy(τ)
UsageUse the simulation to explore signal correlation:
Visual Guide
Key Insights
|
||