This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Broadcast channel decoding


[trblk,cellrefp] = lteBCHDecode(enb,softbits)



[trblk,cellrefp] = lteBCHDecode(enb,softbits) returns a vector, trblk, of the decoded information bits (24 bits). cellrefp is the number of cell-specific reference signal antenna ports detected in the CRC mask for given input, softbits, and the structure, enb. This function performs the inverse of the Broadcast Channel (BCH) processing described in TS 36.212 [1], Section 5.3.1.


collapse all

Perform BCH coding of one transport block, and BCH decoding of part (one quarter) of the encoded block. In a practical system, this approach would be used to attempt BCH decoding on the one quarter part of the encoded block that is transmitted in the first subframe of each frame.

Create cell-wide configuration structure, initialized to RMC R.4. Perform BCH coding of one transport block.

enb = lteRMCDL('R.4');
bchCoded = lteBCH(enb,ones(24,1));

Perform BCH decoding of one quarter of the transport block.

out = bchCoded(1:length(bchCoded)/4);
[bchDecoded,cellRefP] = lteBCHDecode(enb,out);
ans = 10x1 int8 column vector


Input Arguments

collapse all

eNodeB cell-wide settings, specified as a structure that can contain these parameter fields.

Parameter FieldRequired or OptionalValuesDescription

'Normal' (default), 'Extended'

Cyclic prefix length

Soft bits to decode, specified as a numeric vector. This vector can have any length.

The transport block size, 24, is relatively small when compared to the number of coded bits sent in the BCH transmission, 1920 or 1728. For this reason, the rate matching internal to the BCH coding results in many repetitions of the coded block. This decoder allows the input argument softbits to be of any length because, successful decoding of coded BCH blocks is often possible using a fraction of the full coded block length.

Output Arguments

collapse all

Decoded information bits, returned as a 24-by-1 integer column vector.

Data Types: int8

Number of cell-specific reference signal (CRS) antenna ports detected, returned as a nonnegative scalar integer. Possible values are 0, 1, 2, and 4. If the value is 0, a CRC error has been detected.

Data Types: uint32


[1] 3GPP TS 36.212. “Multiplexing and channel coding.” 3rd Generation Partnership Project; Technical Specification Group Radio Access Network; Evolved Universal Terrestrial Radio Access (E-UTRA). URL:

Introduced in R2014a

Was this topic helpful?