Web Simulation 

 

 

 

 

4G LTE PSS, SSS & Physical Cell ID (PCI) Tutorial 

When a mobile device (UE) powers on, it must synchronize with a cell tower (eNodeB) to detect timing, frame structure, and Physical Cell ID (PCI). The PCI identifies the cell and is derived from two downlink synchronization signals: PSS (Primary Synchronization Signal) and SSS (Secondary Synchronization Signal).

PCI Formula (3GPP TS 36.211 §6.11)

PCI = 3 × NID(1) + NID(2)

  • NID(2) (0–2): From PSS, identifies the cell sector within a group.
  • NID(1) (0–167): From SSS, identifies the PCI group. There are 168 groups.
  • Total: 3 × 168 = 504 unique PCIs (0–503).

PSS — Zadoff-Chu Sequence

PSS is a length-63 Zadoff-Chu (ZC) sequence mapped to the center 62 subcarriers (DC subcarrier is null). The root index u depends on NID(2):

  • NID(2) = 0 → u = 25
  • NID(2) = 1 → u = 29
  • NID(2) = 2 → u = 34

Formula: du(n) = e−jπu·n·(n+1)/63 for n = 0, 1, ..., 61.

The complex constellation (I/Q plane) shows how different roots produce different phase patterns.

SSS — Interleaved m-Sequences (TS 36.211 §6.11.2)

The 62-length SSS sequence d(n) is built from base sequences s̃, c̃, and z̃ with different polynomials:

  • ˜s, ˜c: x(i+5) = (x(i+3) + x(i)) mod 2
  • ˜z: x(i+5) = (x(i+4) + x(i+2) + x(i+1) + x(i)) mod 2
  • m0, m1: Derived from NID(1) via q′, q, m′
  • d(2n): s × c0; d(2n+1): s × c1 × z1

Subframe 0 vs 5: The roles of m0 and m1 swap between subframes, enabling the UE to detect the 10 ms frame boundary.

Resource Grid Mapping

PSS and SSS occupy the center 6 Resource Blocks (72 subcarriers) in subframes 0 and 5:

  • PSS: Last symbol of slot 0 and slot 10 (OFDM symbol 6) — 62 subcarriers k = 5–66.
  • SSS: Second-to-last symbol (OFDM symbol 5) — same 62 subcarriers.

UE first detects PSS for slot timing, then SSS for frame timing, NID(1), and subframe (0 vs 5) by correlating with both hypotheses. The subframe is identified because m0/m1 swap between subframes. Finally, PCI is computed.

PCI Controls

50
40 dB
PCI = 0
PCI = 3 × NID(1) + NID(2) = 3 × 50 + 0 = 150
PSS SSS PBCH PBCH DMRS

Resource Grid (Subframe 0, center 6 RB)

PSS Zadoff-Chu Constellation

SSS d(n) Stem Plot (3GPP TS 36.211 §6.11.2)

PCI Correlation Heatmap

PSS Search (NID(2))
SF0 Hypothesis
SF5 Hypothesis
PSS/SSS Correlation History

 

Usage

  1. NID(1) (SSS): Slider 0–167 (default 50). Changes the PCI group; observe the SSS m-sequence stem plot shifting.
  2. NID(2) (PSS): Dropdown 0–2. Changes the sector ID; observe the PSS Zadoff-Chu constellation rotating.
  3. Subframe: Toggle Subframe 0 vs 6 to set the transmitted signal. The SSS d(n) differs between subframes (m0/m1 swap roles).
  4. SNR: Slider 0–40 dB (default 40). Adds AWGN to the PSS constellation and SSS stem plot. Lower SNR increases noise spread.
  5. Resource Grid: Blue = PSS (symbol 6), Magenta = SSS (symbol 5). Hover over PSS/SSS REs for tooltips.
  6. PCI Correlation Heatmap: PSS bar chart shows match strength for each NID(2). SSS heatmaps (SF0/SF5) show correlation across all 168 NID(1) candidates. The peak (green glow) indicates the detected PCI. At low SNR, heatmaps appear grainy.
  7. Sync Simulation: Simulates UE cell search. Correlates with each PSS candidate (NID(2)=0,1,2), then each SSS candidate (NID(1) with Subframe 0 and 5 hypotheses). Shows correlation values and detects subframe from the winning hypothesis. History lists every correlation attempt until match.

Key 3GPP References

  • TS 36.211 §6.11 — Primary and secondary synchronization signals.
  • TS 36.300 — Physical cell identity (0–503).