Main Content

nrDLSCHInfo

Get downlink shared channel (DL-SCH) information

Description

info = nrDLSCHInfo(tBlkLen,targetCodeRate) returns a structure containing DL-SCH information for an input transport block size tBlkLen and target code rate targetCodeRate. The DL-SCH information includes the cyclic redundancy check (CRC) attachment, code block segmentation (CBS), and channel coding.

example

Examples

collapse all

Show DL-SCH information before rate matching for an input transport block of length 8456 and target code rate 517/1024. The displayed DL-SCH information shows:

  • The transport block has 312 <NULL> filler bits per code block.

  • The number of bits per code block, after CBS, is 4576.

  • The number of bits per code block, after low-density parity-check (LDPC) coding, is 13,728.

tBlkLen = 8456;
targetCodeRate = 517/1024;
nrDLSCHInfo(tBlkLen,targetCodeRate)
ans = struct with fields:
    CRC: '24A'
      L: 24
    BGN: 1
      C: 2
    Lcb: 24
      F: 312
     Zc: 208
      K: 4576
      N: 13728

Input Arguments

collapse all

Transport block size, specified as a nonnegative integer.

Data Types: double

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

Data Types: double

Output Arguments

collapse all

DL-SCH information, returned as a structure containing these fields.

FieldsValuesDescription
CRC

'16', '24A'

CRC polynomial selection

L

0, 16, 24

Number of CRC bits

BGN

1, 2

LDPC base graph selection

C

Positive integer

Number of code blocks

Lcb

0, 24

Number of parity bits per code block

F

Nonnegative integer

Number of <NULL> filler bits per code block

Zc

Positive integer

Lifting size selection

K

Nonnegative integer

Number of bits per code block after CBS

N

Nonnegative integer

Number of bits per code block after LDPC coding

Extended Capabilities

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

Version History

Introduced in R2018b

See Also

Objects

Functions