Encode downlink control information (DCI)
encodes the input DCI bits and returns the rate-matched DCI codeword of length
dcicw = nrDCIEncode(
E. The function implements the features described in TS 38.212
Section 7.3.2, 7.3.3, and 7.3.4 , such as cyclic redundancy
check (CRC) attachment, polar encoding, and rate matching. The CRC parity bits are masked
rnti, the radio network temporary identifier (RNTI) of the user
Encode DCI Message Bits
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×1 0 1 0 1 0 0 0 0 0 0 ⋮
dcibits — DCI message bits
column vector of binary values
DCI message bits, specified as a column vector of binary values.
dcibits is the input to the DCI processing to be transmitted on a
single physical downlink control channel (PDCCH).
rnti — RNTI of UE
integer from 0 to 65,535
RNTI of the UE, specified as an integer from 0 to 65,535.
E — Length of rate-matched DCI codeword in bits
Length of rate-matched DCI codeword in bits, specified as a positive integer.
E must be in the range K + 24 <
E ≤ 8192, where K is the length of
 3GPP TS 38.212. “NR; Multiplexing and channel coding.” 3rd Generation Partnership Project; Technical Specification Group Radio Access Network.
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
Introduced in R2018b