Main Content

lteDLSCHInfo

DL-SCH segmentation information

Description

info = lteDLSCHInfo(blklen) returns a structure containing the Downlink Shared Channel (DL-SCH) code block segmentation information for the given transport block length.

example

info = lteDLSCHInfo(enb,chs,blklen) returns a structure containing the DL-SCH code block segmentation information for the given eNodeB cell-wide settings structure, channel configuration structure, and transport block length.

example

Examples

collapse all

Show the sizing information before turbo coding for an input transport block of length 132. The info structure fields shows that there are 4 filler bits and the total size of the one segment after CRC addition is 160.

lteDLSCHInfo(132)
ans = struct with fields:
       C: 1
      Km: 0
      Cm: 0
      Kp: 160
      Cp: 1
       F: 4
       L: 0
    Bout: 160

Show the DL-SCH transport channel sizing information for an R.11 RMC.

rmc = lteRMCDL('R.11');
lteDLSCHInfo(rmc,rmc.PDSCH,rmc.PDSCH.TrBlkSizes(1))
ans = struct with fields:
          C: 3
         Km: 4288
         Cm: 0
         Kp: 4352
         Cp: 3
          F: 0
          L: 24
       Bout: 13056
    NLayers: 2
         NL: 2
         Qm: 4
        NIR: 0
         RV: 0

Input Arguments

collapse all

eNodeB cell-wide settings, specified as a structure containing these parameter fields:

Parameter FieldRequired or OptionalValuesDescription
DuplexModeOptional

'FDD' (default), 'TDD'

Duplexing mode, specified as either:

  • 'FDD' for Frequency Division Duplex

  • 'TDD' for Time Division Duplex

When DuplexMode is set to 'TDD' include:

  TDDConfigOptional

0, 1 (default), 2, 3, 4, 5, 6

Uplink–downlink configuration

When chs.TxScheme is set to 'TxDiversity' include:

  CellRefPOptional

1, 2, 4

Number of cell-specific reference signal (CRS) antenna ports

Channel configuration, specified as a structure. It defines aspects of the PDSCH onto which the codewords are mapped. It also defines the DL-SCH soft buffer size and redundancy versions of the generated codewords.

chs can contain the following fields.

Parameter FieldRequired or OptionalValuesDescription
ModulationRequired'QPSK', '16QAM', '64QAM', '256QAM', '1024QAM'

Modulation type, specified as a character vector, cell array of character vectors, or string array. If blocks, each cell is associated with a transport block.

NLayersRequired

Integer from 1 to 8

Total number of transmission layers associated with the transport block or blocks.

TxSchemeRequired

'Port0', 'TxDiversity', 'CDD', 'SpatialMux', 'MultiUser', 'Port5', 'Port7-8', 'Port8', 'Port7-14'.

PDSCH transmission scheme, specified as one of the following options.

Transmission schemeDescription
'Port0'Single antenna port, port 0
'TxDiversity'Transmit diversity
'CDD'Large delay cyclic delay diversity scheme
'SpatialMux'Closed loop spatial multiplexing
'MultiUser'Multi-user MIMO
'Port5'Single-antenna port, port 5
'Port7-8'Single-antenna port, port 7, when NLayers = 1. Dual layer transmission, ports 7 and 8, when NLayers = 2.
'Port8'Single-antenna port, port 8
'Port7-14'Up to eight layer transmission, ports 7–14

RVRequired

Integer vector (0,1,2,3). A one or two column matrix (for one or two codewords).

Specifies the redundancy version for one or two codewords used in the initial subframe number, NSubframe. This parameter field is only for informational purposes and is read-only.

NSoftbitsOptional

Nonnegative scalar integer (default 0)

Total number of soft buffer bits. The default setting of 0 signifies that there is no buffer limit.

Transport block length, specified as a positive integer or a two-element positive integer vector. A two-element vector defines the length of transport blocks for two codewords.

Data Types: double

Output Arguments

collapse all

DL-SCH code block segmentation information, returned as a structure array including the following fields.

Parameter FieldDescriptionValues
C

Total number of code blocks

Nonnegative scalar integer

Km

Lower code block size (K–)

Nonnegative scalar integer

Cm

Number of code blocks of size Km (C–)

Nonnegative scalar integer

Kp

Upper code block size (K+)

Nonnegative scalar integer

Cp

Number of code blocks of size Kp (C+)

Nonnegative scalar integer

F

Number of filler bits in first block

Nonnegative scalar integer

L

Number of segment cyclic redundancy check (CRC) bits

Nonnegative scalar integer

Bout

Total number of bits in all segments

Nonnegative scalar integer

When syntax includes enb and chs inputs, output info also includes these fields:

  NLayers

Number of layers associated with one codeword

Nonnegative scalar integer

  NL

Number of layers used in rate matching calculation

Nonnegative scalar integer

  Qm

Bits per symbol variable used in rate matching calculation

Nonnegative scalar integer

  NIR

Number of soft bits associated with transport block. Soft buffer size for entire input transport block

Nonnegative scalar integer

  RV

RV value associated with one codeword

Included if RV is present at the input.

Nonnegative scalar integer

Version History

Introduced in R2014a