nrPBCH

Generate PBCH modulation symbols

Description

example

sym = nrPBCH(cw,ncellid,v) returns the physical broadcast channel (PBCH) modulation symbols for the physical layer cell identity number ncellid. The function implements TS 38.211 Section 7.3.3 [1]. The input cw is the BCH codeword, as described in TS 38.212 Section 7.1.5 [2]. The input v specifies the scrambling sequence phase.

sym = nrPBCH(cw,ncellid,v,'OutputDataType',datatype) specifies the data type of the PBCH symbol.

Examples

collapse all

Generate the sequence of 432 PBCH quadrature phase shift keying (QPSK) modulation symbols. Consider the first Synchronization Signal / Physical Broadcast Channel (SS/PBCH) block in a burst. Assume that the number of SS/PBCH blocks per half-frame is 4. To represent the encoded BCH bits, generate a random sequence of binary values. The length of the random sequence corresponds to the PBCH bit capacity as specified in TS 38.212 Section 7.1.5.

ncellid = 17;
ssbindex = 0;
v = mod(ssbindex,4);   
E = 864;               
cw = randi([0 1],E,1);

sym = nrPBCH(cw,ncellid,v);

Input Arguments

collapse all

BCH codeword, specified as a column vector of binary values. The size of the vector is E = 864, as specified in TS 38.212 Section 7.1.5.

Data Types: double | int8 | logical

Physical layer cell identity number, specified as an integer from 0 to 1007.

Data Types: double

Scrambling sequence phase, specified as an integer from 0 to 7. v is derived in a synchronization signal (SS) burst configuration, from the least significant bits (LSBs) of the SS/PBCH block index.

  • If the number of SS/PBCH blocks per half-frame is 4, then v is the two LSBs of the SS/PBCH block index (0 to 3).

  • If the number of SS/PBCH blocks per half-frame is 8 or 64, then v is the three LSBs of the SS/PBCH block index (0 to 7).

Data Types: double

Data type of the output symbols, specified as 'double' or 'single'.

Data Types: char | string

Output Arguments

collapse all

PBCH modulation symbols, returned as a complex column vector.

Data Types: single | double

References

[1] 3GPP TS 38.211. “NR; Physical channels and modulation.” 3rd Generation Partnership Project; Technical Specification Group Radio Access Network.

[2] 3GPP TS 38.212. “NR; Multiplexing and channel coding.” 3rd Generation Partnership Project; Technical Specification Group Radio Access Network.

Extended Capabilities

Introduced in R2018b