Main Content

nrDCIEncode

Encode downlink control information (DCI)

Description

example

dcicw= nrDCIEncode(dcibits,rnti,E)encodes the input DCI bits and returns the rate-matched DCI codeword of lengthE. The function implements the features described in TS 38.212 Section 7.3.2, 7.3.3, and 7.3.4[1], such as cyclic redundancy check (CRC) attachment, polar encoding, and rate matching. The CRC parity bits are masked withrnti, the radio network temporary identifier (RNTI) of the user equipment (UE).

Examples

collapse all

Create a random sequence of binary values corresponding to a DCI message of 32 bits.

dcibits = randi([0 1],32,1);

Encode the message for the specified RNTI and rate-matched output length.

rnti = 100; E = 240; dcicw = nrDCIEncode(dcibits,rnti,E)
dcicw =240×10 1 0 1 0 0 0 0 0 0 ⋮

Input Arguments

collapse all

DCI message bits, specified as a column vector of binary values.dcibitsis the input to the DCI processing to be transmitted on a single physical downlink control channel (PDCCH).

Data Types:double|int8

RNTI of the UE, specified as an integer from 0 to 65,535.

Data Types:double

Length of rate-matched DCI codeword in bits, specified as a positive integer.Emust be in the rangeK+ 24 <E≤ 8192, whereKis the length ofdcibits.

Data Types:double

Output Arguments

collapse all

Rate-matched DCI codeword, returned as anE-by-1 column vector of binary values.dcicwinherits its data type from the inputdcibits.

Data Types:double|int8

References

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

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

版本历史

Introduced in R2018b

See Also

Functions