lteNPBCH

Generate NPBCH encoded symbols

Description

example

sym = lteNPBCH(enb,cw) returns a matrix containing the encoded narrowband physical broadcast channel (NPBCH) symbols for cell-wide settings structure, enb, and codeword, cw. The channel encoding process comprises stages of scrambling, QPSK modulation, layer mapping, and precoding in accordance with 3GPP TS 36.211 Section 10.2.4 [1].

Examples

collapse all

Generate NPBCH complex symbols using the master information block (MIB).

Generate the MIB and pass it through broadcast channel (BCH) encoding to obtain the 1600-bit codeword.

mib = randi([0 1],34,1);
cw = lteBCH(mib,1600,1);

Specify the cell-wide settings in the structure enb.

enb.NNCellID = 0;
enb.NBRefP = 1;
enb.NSubframe = 10;

Generate the NPBCH symbols for each of the subframes.

sym = lteNPBCH(enb,cw)
sym = 100×1 complex

   0.7071 - 0.7071i
   0.7071 - 0.7071i
   0.7071 - 0.7071i
   0.7071 - 0.7071i
   0.7071 + 0.7071i
   0.7071 + 0.7071i
   0.7071 - 0.7071i
   0.7071 + 0.7071i
   0.7071 - 0.7071i
   0.7071 - 0.7071i
      ⋮

Input Arguments

collapse all

Cell-wide settings, specified as a structure containing these fields.

Parameter FieldRequired or OptionalValuesDescriptionData Types
NNCellIDRequired

Nonnegative integer

NB-IoT physical layer cell identity

double
NBRefPRequired

1, 2

Number of narrowband reference signal antenna ports

double
NSubframeRequired

Nonnegative integer

Subframe number

double
NFrameOptional

0 (default),

nonnegative integer

Frame number

double

Data Types: struct

Codeword to be modulated, specified as a 1600-by-1 binary vector.

Output Arguments

collapse all

NPBCH symbols, returned as a 100-by-P complex valued matrix, where 100 is the number of modulation symbols for one antenna port for one subframe, and P is the number of transmission antenna ports.

Data Types: double
Complex Number Support: Yes

References

[1] 3GPP TS 36.211. “Physical Channels and Modulation (Release 14).” 3rd Generation Partnership Project; Technical Specification Group Radio Access Network; Evolved Universal Terrestrial Radio Access (E-UTRA). URL: https://www.3gpp.org.

Introduced in R2019b