Main Content

Model DL-SCH and PDSCH

This example shows how to construct the physical downlink shared channel (PDSCH). It also demonstrates how to generate a transport block, perform downlink shared channel (DL-SCH) coding to create a codeword, perform physical channel coding to create the physical channel, and map the complex symbols to the resource grid.

Specify cell-wide settings as fields in the structure enb. Many of the functions used in this example require a subset of these settings.

enb.NDLRB = 9;
enb.CyclicPrefix = 'Normal';
enb.PHICHDuration = 'Normal';
enb.CFI = 3;
enb.Ng = 'Sixth';
enb.CellRefP = 4;
enb.NCellID = 1;
enb.NSubframe = 0;
enb.DuplexMode = 'FDD';

Configure the PDSCH. In addition to the cell-wide settings specified in enb, you must define other parameters related to the modulation and channel transmission configuration, pdsch, such as the radio network temporary identifier (RNTI), to generate the PDSCH.

pdsch.NTxAnts = 4;
pdsch.NLayers = 4;
pdsch.TxScheme = 'TxDiversity';
pdsch.Modulation = {'QPSK'};
pdsch.RV = 0;
pdsch.RNTI = 1;

In this example, you use a single codeword to form the PDSCH symbols. However, in LTE, up to two codewords can be combined to form the PDSCH. Each codeword can be modulated with a different scheme. Use a cell array to indicate the modulation scheme for each codeword.

Determine how the PDSCH is mapped to resource elements by allocating the physical resource blocks (PRBs). A column vector containing the indices of PDSCH allocated PRBs is required. In this example, assume full allocation; all resource blocks are allocated to the PDSCH. Specify this full subframe resource allocation using a column vector.

prbs = (0:enb.NDLRB-1).';

The allocation specified in prbs is zero-based. In this case, assume that both slots in the subframe share the same resource allocation. To have different allocations for each slot, specify a two-column matrix where each column refers to each slot in the subframe.

Generate the PDSCH indices. To do so, call the ltePDSCHIndices function for the cell-wide settings enb, the channel transmission configuration pdsch, and the physical resource block allocation prbs.

[pdschIndices,pdschIndInfo] = ltePDSCHIndices(enb,pdsch,prbs,{'1based'});

The first output, pdschIndices, specifies the PDSCH indices. The second output, pdschIndInfo, provides additional information related to the PDSCH capacity.

Determine DL-SCH payload and coded transport block size. These items are required for creating the PDSCH payload due to the rate matching portion of the DL-SCH transport block coding. There are the following two methods of determining coded transport block size and the DL-SCH payload size.

  • Using the PDSCH indices information output, as shown in this example

  • Using the reference measurement channel (RMC) transport block sizes as a guide

The coded transport block size is one of the fields of the PDSCH indices information output, pdschIndInfo.

codedTrBlkSize = pdschIndInfo.G;

In this example, codedTrBlkSize is 480. Alternatively, you could read the coded transport block size for a given modulation scheme, PRB allocation, and number of antennas from the RMC tables in TS 36.101, Annex A.3.3 and A.3.4. Once you know the coded transport block size, calculate the DL-SCH payload using the rules in TS 36.101, Annex A.2.1.2, titled, "Determination of payload size", with target code rate, R, equal to 1/3, and the number of bits per subframe given by codedTrBlkSize. Determine the payload size, A, such that the resulting coding rate is as close as possible to the desired coding rate, R, for a given coded transport block size, Nch, as shown in the following equation.

min|R-(A+24)/Nch|

In this example, the payload size for 6 RBs calculated using the preceding equation is A=152. This is the value at which the error between the desired code rate and actual code rate is minimized.

The payload size, A, must be one of a specific set for a specific number of resource blocks given in TS 36.213, Table 7.1.7.2.1 1 or 7.1.7.2.2 1 (in Section 7.1.7.2). These tables are represented by the lteTBS function. In this example, the payload size for 6 RBs that minimizes the error between the desired code rate and the actual code rate is A=152. This value was selected from table 7.1.7.2.2 1. Therefore, the payload size, transportBlkSize, is 152.

Alternative Method: Use RMCs to Determine Transport Block Sizes

Alternatively, you could determine suitable payload size and coded transport block size from the tables in TS 36.101, Annex A.3.3 and A.3.4, titled "Reference Measurement Channels for PDSCH performance requirements." Despite the advantage of simply being able to read values from the tables, the channel bandwidths and PDSCH allocations are restricted to the RMCs available. For example, you can use Table A.3.3.2.2-1, titled "Fixed Reference Channel four antenna ports."

To generate a PDSCH for a 1.4MHz channel bandwidth, four-antenna transmission with QPSK modulation, and a coding rate of , use the highlighted rows titled "Information Bit Payload" to find the DL-SCH payload size for each subframe, and "Binary Channel Bits," to find the coded transport block size for each subframe.

ParameterUnitValueReferenceChannelR.12FDDR.13FDDR.14FDDR.14-1FDDR.14-2FDDR.36FDDChannelbandwidthMHz1.41010101010Allocatedresourceblocks650506350AllocatedsubframesperRadioFrame999889ModulationQPSKQPSK16QAM16QAM16QAM64QAMTargetCodingRate1/31/31/21/21/21/2InformationBitPayloadForSub-Frames1,2,3,4,6,7,8,and9Bits408439212960154474418336ForSub-Frame5Bitsn/an/an/an/an/an/aForSub-Frame0Bits152326411448n/an/a18336NumberofCodeBlocksForSub-Frames1,2,3,4,6,7,8,and9113113ForSub-Frame5n/an/an/an/an/an/aForSub-Frame0112n/an/a3BinaryChannelBitsperSub-FrameForSub-Frames1,2,3,4,6,7,8,and9Bits124812800256003072153638400ForSub-Frame5Bitsn/an/an/an/an/an/aForSub-Frame0Bits4801203224064n/an/a36096Max.Throughputaveragedover1frameMbps0.3423.87611.5131.2350.59516.502UECategory112112

Define a transport block of information bits, using the payload size, transportBlkSize, calculated in the last step.

dlschTransportBlk = round(rand(1,152));

Create the PDSCH payload. To encode the transport block bits into a single codeword, call the lteDLSCH function for the cell-wide settings and channel transmission configuration. This process includes CRC calculation, code block segmentation and CRC insertion, turbo coding, rate matching, and code block concatenation.

codeword = lteDLSCH(enb,pdsch,codedTrBlkSize,dlschTransportBlk);

Generate the PDSCH complex symbols by calling the ltePDSCH function for the specified cell-wide settings, channel transmission configuration, and codeword. This function applies scrambling, modulation, layer mapping, and precoding operations to the coded transport block.

pdschSymbols = ltePDSCH(enb,pdsch,codeword);

The resulting matrix, pdschSymbols, has four columns. Each column contains the complex symbols to map to each antenna port.

Generate the subframe resource grid by calling the lteDLResourceGrid function. This function creates an empty resource grid for one subframe.

subframe = lteDLResourceGrid(enb);

Map the PDSCH symbols to the resource grid using the generated indices.

subframe(pdschIndices) = pdschSymbols;

See Also

| | | | | | | | | | | | | | | | | |

Related Topics