Documentation

nrPDSCH

Generate PDSCH modulation symbols

Description

example

sym= nrPDSCH(cws,mod,nlayers,nid,rnti)returns physical downlink shared channel (PDSCH) modulation symbols, as defined in TS 38.211 Sections 7.3.1.1–3[1]。的过程ss consists of scrambling with scrambling identitynid, performing symbol modulation with modulation schememod, and layer mapping.cwsrepresents one or two downlink shared channel (DL-SCH) codewords, as described in TS 38.212 Section 7.2.6.nlayersspecifies the number of transmission layers.rntiis the radio network temporary identifier (RNTI) of the user equipment (UE).

sym= nrPDSCH(___,'OutputDataType',datatype)specifies the PDSCH symbol data type, in addition to the input arguments in the previous syntax.

Examples

collapse all

Specify a random sequence of binary values corresponding to a codeword of 8000 bits using 256-QAM modulation. Generate PDSCH modulation symbols for the specified physical layer cell identity number, RNTI, and number of transmission layers.

modulation ='256QAM'; nlayers = 4; ncellid = 42; rnti = 6143; data = randi([0 1],8000,1); sym = nrPDSCH(data,modulation,nlayers,ncellid,rnti)
sym =250×4 complex-0.2301 + 0.5369i -0.3835 + 0.9971i 0.3835 + 1.1504i -0.2301 + 0.9971i 0.8437 - 0.0767i -0.9971 + 0.6903i -0.6903 - 0.6903i 0.6903 - 0.6903i 0.2301 - 1.1504i -0.9971 + 0.0767i 0.6903 - 1.1504i 1.1504 + 0.6903i -0.3835 - 1.1504i -0.0767 - 0.0767i -0.3835 + 0.3835i -0.3835 - 0.3835i 0.9971 + 0.5369i -0.3835 - 0.5369i 0.3835 - 0.6903i -0.3835 - 0.8437i -0.0767 + 1.1504i 0.6903 - 0.8437i -0.2301 + 0.2301i 0.8437 - 0.0767i -0.3835 - 1.1504i -0.6903 - 0.9971i 0.9971 - 0.3835i -0.9971 + 0.0767i -0.0767 + 0.6903i -0.0767 + 0.8437i 1.1504 + 0.0767i 0.6903 + 1.1504i -0.5369 - 0.9971i -0.8437 + 0.0767i 0.8437 - 0.3835i -0.9971 - 1.1504i 0.2301 - 0.6903i -0.6903 - 0.5369i -0.6903 + 1.1504i 0.8437 - 0.2301i ⋮

Specify two random sequences of binary values. The first sequence corresponds to a codeword of 6000 bits using 64-QAM modulation. The second sequence corresponds to a codeword of 8000 bits using 256-QAM modulation. Generate PDSCH modulation symbols for the specified physical layer cell identity number and RNTI using a total of 8 transmission layers.

modulation = {'64QAM''256QAM'}; nlayers = 8; ncellid = 1; rnti = 6143; data = {randi([0 1],6000,1) randi([0 1],8000,1)}; sym = nrPDSCH(data,modulation,nlayers,ncellid,rnti)
sym =250×8 complex-0.4629 - 0.7715i 0.4629 - 0.4629i 0.4629 + 0.1543i 0.7715 - 1.0801i 0.3835 - 0.9971i -0.5369 + 0.6903i 0.6903 - 0.6903i -0.5369 + 0.0767i 0.1543 + 0.4629i -1.0801 + 1.0801i -0.7715 + 0.7715i -0.1543 + 0.7715i -0.2301 + 0.9971i -1.1504 + 1.1504i -0.0767 + 1.1504i -0.6903 + 0.9971i -0.1543 + 0.1543i 0.7715 - 1.0801i -0.4629 + 0.7715i 0.1543 + 1.0801i 0.0767 - 0.8437i 0.0767 - 0.9971i 0.3835 + 0.3835i 1.1504 - 0.9971i -0.7715 - 0.4629i -0.1543 + 0.7715i -0.7715 - 0.7715i -0.4629 - 0.1543i -0.6903 + 0.5369i -0.8437 - 0.5369i -0.5369 + 0.0767i -0.0767 - 1.1504i 1.0801 - 1.0801i -1.0801 + 0.7715i 0.1543 - 0.4629i 0.4629 - 0.4629i -1.1504 + 0.2301i -0.9971 + 0.9971i -1.1504 + 0.8437i 0.2301 - 0.2301i 0.4629 + 0.4629i 0.1543 + 0.1543i -0.1543 + 0.1543i 0.1543 - 0.4629i 0.6903 + 0.2301i -0.6903 + 0.6903i 0.3835 + 0.5369i 0.3835 + 0.0767i -1.0801 + 0.7715i 0.4629 - 1.0801i 0.4629 + 1.0801i -0.4629 + 0.4629i -0.6903 + 0.8437i -0.3835 - 0.2301i 0.5369 + 0.8437i 0.9971 - 0.9971i -1.0801 + 0.7715i -0.1543 - 0.1543i 0.7715 + 1.0801i -0.4629 - 0.1543i 0.8437 + 0.5369i -0.2301 + 0.0767i -0.6903 - 0.0767i -0.0767 - 0.6903i -0.4629 - 1.0801i -0.7715 - 0.1543i 0.1543 - 1.0801i -0.1543 + 0.1543i 0.2301 - 0.3835i 1.1504 + 0.2301i -1.1504 - 1.1504i -1.1504 - 1.1504i 0.7715 + 1.0801i 1.0801 - 0.4629i 1.0801 + 1.0801i -0.1543 - 1.0801i -0.0767 + 0.0767i 0.3835 + 0.9971i 0.0767 - 0.6903i 0.5369 - 0.8437i ⋮

Input Arguments

collapse all

DL-SCH codewords, specified as one of these values:

  • Cell array of one or two binary column vectors — Use this value to specify one or two DL-SCH codewords, as described in TS 38.212 Section 7.2.6.

  • Binary column vector — Use this value to specify one DL-SCH codeword.

Data Types:double|single|cell

Modulation scheme, specified as'QPSK','16QAM','64QAM', or'256QAM', a string array, or a cell array of character vectors. This modulation scheme specifies the modulation type of the codewords and the number of bits used per modulation symbol. Ifcwscontains two codewords, the modulation scheme applies to both codewords. Alternatively, you can specify different modulation schemes for each codeword by using a string array or a cell array of character vectors.

Modulation Scheme Number of Bits Per Symbol
'QPSK' 2
'16QAM' 4
'64QAM' 6
'256QAM' 8

Example:To specify different modulation schemes for two codewords, you can use any of these formats:{'QPSK','16QAM'}or["QPSK","16QAM"]

Data Types:char|string|cell

Number of transmission layers, specified as an integer from 1 to 8. For one codeword, use an integer between 1 to 4. For two codewords, use an integer between 5 to 8.

Data Types:double

Scrambling identity, specified as an integer from 0 to 1023.nidis the physical layer cell identity number (0 to 1007) or higher layer parameterdataScramblingIdentityPDSCH(0 to 1023). For more information, see TS 38.331 Section 6.3.2.

Data Types:double

RNTI of the UE, specified as an integer from 0 to 65,535.

Data Types:double

Data type of the output symbols, specified as'double'or'single'

Data Types:char|string

Output Arguments

collapse all

PDSCH modulation symbols, returned as a complex matrix.

Data Types:single|double
Complex Number Support:Yes

References

[1]3GPP TS 38.211. “NR; Physical channels and modulation.”第三代合作伙伴项目;技术规范ification Group Radio Access Network

[2]3GPP TS 38.212. “NR; Multiplexing and channel coding.”第三代合作伙伴项目;技术规范ification Group Radio Access Network

Extended Capabilities

Introduced in R2018b