Documentation

nrRateRecoverLDPC

Low-density parity-check (LDPC) rate recovery

Description

example

out= nrRateRecoverLDPC(in,trblklen,R,rv,mod,nLayers)returns the rate-recovered output representing the LDPC-encoded code blocks for input data vectorin. The inputtrblklen是运输块长度,R是目标代码率,rv是冗余版本,modis the modulation type, andnLayersis the number of transmission layers. The internal buffer used for the soft input has no size limits, and the output contains the total number of code blocks.

nrRateRecoverLDPCis the inverse ofnrRateMatchLDPC并且在接收器端执行代码块连接,位交织和位选择阶段的逆。

out= nrRateRecoverLDPC(___,numCB)specifies the number of code blocksnumCBto be recovered, in addition to the input arguments in the previous syntax.

out= nrRateRecoverLDPC(___,numCB,Nref)returns the rate-recovered output for a limited soft buffer sizeNrefwith the specified number of code blocksnumCBto recover, in addition to the input arguments in the first syntax.Nrefis defined in TS 38.212 Section 5.4.2.1[1].

Examples

collapse all

创建对应于软比特的长度4500的输入数据。原始传输块的长度为4000.执行输入到一个代码块的LDPC速率恢复。使用具有QPSK调制和零冗余版本的单传输层。

sbits = ones(4500,1); trblklen = 4000; R = 0.5; rv = 0; mod ='QPSK'; nlayers = 1; numCB = 1; raterec = nrRateRecoverLDPC(sbits,trblklen,R,rv,mod,nlayers,numCB); size(raterec)
ans =1×212672 1

Input Arguments

collapse all

在代码块签名之前收到软比特,指定为向量。

Data Types:double|single

Original transport block length, specified as a nonnegative integer.

Data Types:double

Target code rate, specified as a real scalar in the range (0,1).

Data Types:double

Redundancy version, specified as an integer from 0 to 3.

Data Types:double

Modulation scheme, specified as'pi/2-BPSK','QPSK','16QAM','64QAM', or'256QAM'.

Data Types:char|string

Number of transmission layers associated with the transport block, specified as an integer from 1 to 4.

Data Types:double

Number of scheduled code block segments, specified as a positive integer.numCBis less than or equal to the number of code block segments for a transport block.

Data Types:double

Limited buffer rate matching, specified as a positive integer.Nrefis defined in TS 38.212 Section 5.4.2.1.

Data Types:double

Output Arguments

collapse all

Rate-recovered scheduled code segments, returned as a matrix. The number of rows inoutis calculated fromtrblklenandR. The number of columns inoutis equal tonumCB, or the total number of code blocks for a transport block. Filler bits are set toInfto correspond to zeros used during their encoding.

Data Types:double|single

参考

[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