Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

lteDLSCH

Downlink shared channel

Syntax

  • [cwout,chinfo] = lteDLSCH(enb,chs,outlen,trblkin)
    example

Description

example

[cwout,chinfo] = lteDLSCH(enb,chs,outlen,trblkin) applies the complete DL-SCH transport channel coding chain to the input data, trblkin, and returns the codewords in cwout. The encoding process includes type-24A CRC calculation, code block segmentation and type-24B CRC attachment, if any, turbo encoding, rate matching with RV, and code block concatenation. Additional information about the encoding process is returned in the fields of structure chinfo. For the case of spatial multiplexing schemes transmitting two codewords, lteDLSCH processes a single transport block or pairs of blocks, contained in a cell array. The data type for cwout matches the input, trblkin. Thus, if trblkin is a cell array containing one or two transport blocks, cwout is a cell array of one or two codewords. If trblkin is a vector of information bits, cwout is a vector also. Define pairs of modulation schemes and RV indicators in the appropriate parameter fields to encode a pair of transport blocks.

Examples

collapse all

Generate the DL-SCH codeword as defined by TS36.101 RMC R.7 for FDD duplexing mode

Initialize the rmc structure and generate transport block data. Generate the DL-SCH codewords and view the first ten.

rmc = lteRMCDL('R.7');
data = randi([0,1],rmc.PDSCH.TrBlkSizes(1),1);
codeWord = lteDLSCH(rmc,rmc.PDSCH,rmc.PDSCH.CodedTrBlkSizes(1),data);
codeWord(1:10)
ans =

  10×1 int8 column vector

   1
   0
   0
   1
   1
   1
   0
   0
   0
   0

Input Arguments

collapse all

eNodeB cell-wide settings, specified as a structure that can contain these parameter fields.

Parameter FieldRequired or OptionalValuesDescription
DuplexModeOptional

'FDD' (default), 'TDD'

Duplexing mode, specified as:

  • 'FDD' for Frequency Division Duplex or

  • 'TDD' for Time Division Duplex

When DuplexMode is set to 'TDD' include:

  TDDConfigOptional

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

Uplink–downlink configuration

When chs.TxSchemeis 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', or '256QAM'

Modulation type, specified as a character vector or cell array of character vectors. 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.

Codeword length, specified as a numeric vector of one or two elements. This vector defines the codeword lengths to which the input transport blocks should be rate matched. It represents the PDSCH capacity for the associated codeword. Therefore, it also represents the lengths of the vectors in cwout.

Transport block information bits to be encoded, specified as a numeric vector or a cell array of numeric vectors. trblkin is an input parameter containing the transport block information bits to be encoded. If it is a cell array, all rate matching calculations assume that the pair is transmitting on a single PDSCH, distributed across the total number of layers defined in chs, as per TS 36.211 [2]. The lowest order information bit of trblkin maps to the most significant bit of the transport block, as defined in TS 36.321, Section 6.1.1 [3].

Output Arguments

collapse all

DL-SCH encoded codewords, returned as a numeric column vector or a cell array of one or two numeric column vectors. It reflects the data type and size of the input data, trblkin.

Data Types: int8 | cell

Additional information about encoding process, returned as a structure array. It contains parameter fields related to code block segmentation and rate matching. If two transport blocks are encoded, chinfo is a structure array of two elements, with one element for each block. The code block segmentation fields in this structure can also be created independently using the lteDLSCHInfo function.

chinfo contains the following fields.

Parameter FieldDescriptionValuesData Type
C

Total number of code blocks

Nonnegative scalar integer

int32
Km

Lower code block size (K–)

Nonnegative scalar integer

int32
Cm

Number of code blocks of size Km (C–)

Nonnegative scalar integer

int32
Kp

Upper code block size (K+)

Nonnegative scalar integer

int32
Cp

Number of code blocks of size Kp (C+)

Nonnegative scalar integer

int32
F

Number of filler bits in first block

Nonnegative scalar integer

int32
L

Number of segment cyclic redundancy check (CRC) bits

Nonnegative scalar integer

int32
Bout

Total number of bits in all segments

Nonnegative scalar integer

int32
Qm

Bits per symbol variable used in rate matching calculation

Nonnegative scalar integer

int32
NL

Number of layers used in rate matching calculation

Nonnegative scalar integer

int32
NLayers

Number of transmission layers.

Nonnegative scalar integer

int32
NIR

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

Nonnegative scalar integer

int32
RV

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.

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

int32

References

[1] 3GPP TS 36.101. "User Equipment (UE) Radio Transmission and Reception." 3rd Generation Partnership Project; Technical Specification Group Radio Access Network; Evolved Universal Terrestrial Radio Access (E-UTRA). URL: http://www.3gpp.org.

[2] 3GPP TS 36.211. "Physical Channels and Modulation." 3rd Generation Partnership Project; Technical Specification Group Radio Access Network; Evolved Universal Terrestrial Radio Access (E-UTRA). URL: http://www.3gpp.org.

[3] 3GPP TS 36.321. "Medium Access Control (MAC) Protocol Specification." 3rd Generation Partnership Project; Technical Specification Group Radio Access Network; Evolved Universal Terrestrial Radio Access (E-UTRA). URL: http://www.3gpp.org.

Introduced in R2014a

Was this topic helpful?