|
|
||
|
This tutorial explains the polar encoding stage of 5G NR polar coding based on 3GPP TS 38.212 section 5.3.1.2. The input to this stage is the interleaved sequence Sections Mathematical Foundation3GPP defines a master polar reliability sequence:
where For a smaller mother-code length
The order is preserved. Therefore, the last positions of
Set Construction3GPP denotes the selected information/parity positions as
In this tutorial,
Parity Check PlacementIf If For the polar generator matrix w(gj) = 2popcount(j)
Generating uThe vector If
If
If
where
Final Polar TransformThe output codeword is the U-vector times the polar generator matrix (the n-fold Kronecker power of the 2×2 Aríkan kernel): d = u GN, GN = (G2)⊗n, G2 = [[1, 0], [1, 1]]
The encoding is performed over
SimulationThe interactive simulator is below. Use the controls to explore the concepts described above.
32
16
0
0
0/1
1. Q_N
2. Q_I/Q_F
3. PC placement
4. u and d
Reliability Table: Q_0^N from 38.212 Table 5.3.1.2-1
Frozen
Data
PC
Full 38.212 Table 5.3.1.2-1: Polar sequence Q_0^Nmax-1Each row below is one element of the 1024-entry master reliability sequence.
W is the reliability rank in the master table. Q is the bit index at that rank.
To construct the current reliability table, scan this master table from W = 0 upward and keep only entries where Q < N.
Current u_n Formula (c' vector = output of interleaving)u VectorPolar Transform Visualization
bit value 1
bit value 0
XOR connection
active row
Output Codeword dSummary
Usage Instructions
Important Notes & Limitations
|
||