主要内容

nrDCIDecode

解码下行链路控制信息(DCI)

Description

dcibits= nrDCIDecode(softbits,K,L)decodes the inputsoftbitsand returns the decoded DCI bits of lengthK. The function implements the inverse of the features specified in TS 38.212 Sections 7.3.4, 7.3.3, and 7.3.2[1],例如速率恢复,极性解码和环状冗余检查(CRC)解码。Lspecifies the list length used for polar decoding.

[dcibits,mask] = nrDCIDecode(softbits,K,L)also looks for a cyclic redundancy check (CRC) error in the DCI decoding. Ifmaskis not equal to 0, either an error has occurred or the input CRC has been masked. When there are no CRC errors,mask是用于掩盖CRC位的实际值。

example

[dcibits,mask] = nrDCIDecode(softbits,K,L,rnti)specifies a radio network temporary identifier (RNTI). You can use this syntax when the value ofrntimasks the CRC parity bits at the transmit end. When you specifyrnti而且没有CRC错误,maskequals to 0.

Examples

collapse all

Create a random sequence of binary values corresponding to a DCI message of 32 bits. Encode the message based on the specified RNTI and rate-matched DCI codeword length. The RNTI masks the CRC parity bits.

k = 32;rnti = 100;E = 240;dcibits = randi([0 1],k,1);dcicw = nrdciencode(dcibits,rnti,e);

解码soft bits representing the DCI codeworddcicwby specifying the RNTI used for the CRC masking. Set the length of the polar decoding list to8.

L = 8; [recBits,mask] = nrDCIDecode(1-2*dcicw,K,L,rnti)
recbits =32x1 int8列矢量1 1 0 1 1 0 0 1 1 1 1⋮
蒙版=uint320

Verify that the transmitted and received message bits are identical.

que equal(recbits,dcibits)
ans =logical1

验证解码是否没有错误。当解码指定用于掩蔽的RNTI时,掩码值为0表示没有错误。

mask
蒙版=uint320

Input Arguments

collapse all

编码的软块, specified as a column vector of real numbers.

Data Types:double|single

Length of decoded output in bits, specified as an integer from 12 to 140.

Data Types:double

极性解码列表的长度,指定为两个功率。

Data Types:double

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

Data Types:double

Output Arguments

collapse all

Decoded DCI message bits, returned as aK-1二元值的by-1列矢量. The message bits were transmitted on a single physical downlink control channel (PDCCH).

Data Types:int8

Result of CRC decoding, returned as a nonnegative integer less than or equal to 216–1。如果maskis not equal to 0, either an error has occurred or the CRC has been masked. When there are no errors,mask是用于掩盖CRC位的实际值。

Data Types:uint32

兼容性考虑

expand all

R2020a中的行为发生了变化

参考

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

Extended Capabilities

See Also

Functions

Introduced in R2018b