Main Content

lteNDLSCH

Generate NB-IoT DL-SCH codeword

Description

cwout = lteNDLSCH(outlen,trblkin) applies the complete NB-IoT downlink shared channel (DL-SCH) transport channel coding chain to the input data, trblkin, and returns the codeword in cwout. The encoding process includes type-24A CRC calculation, convolutional encoding, and rate matching. This function applies to a single transport block.

example

Examples

collapse all

Generate 960 NB-IoT DL-SCH codeword bits with a transport block.

Set the transport block length to 208 and the output codeword length to 960. Generate the transport block information bits as a random binary sequence.

trblklen = 208;
outlen = 960;
trblkin = randi([0 1],trblklen,1);

Generate the 960 NB-IoT DL-SCH codeword bits given the transport block information bits and the output codeword length.

cw = lteNDLSCH(outlen,trblkin);

Input Arguments

collapse all

Codeword length, specified as a nonnegative integer. This input represents the NPDSCH capacity for the associated codeword and the lengths of the vector in the cwout output. The input transport blocks are rate-matched to the codeword length.

Data Types: int8 | double

Transport block information bits to be encoded, specified as a numeric vector.

Data Types: int8 | double

Output Arguments

collapse all

DL-SCH encoded codewords, returned as a numeric column vector of size outlen.

Data Types: int8

Version History

Introduced in R2018a