主要内容

nrPDSCHDMRS

生成 PDSCH DM-RS 符号

说明

sym = nrPDSCHDMRS(carrier,pdsch) 返回一个包含物理下行链路共享信道 (PDSCH) 解调参考信号 (DM-RS) 符号的矩阵,如 TS 38.211 第 7.4.1.1.1 节 [1] 中所定义。carrier 指定特定 OFDM 参数集的载波配置参数。pdsch 指定 PDSCH 配置参数。

示例

sym = nrPDSCHDMRS(carrier,pdsch,'OutputDataType',datatype) 指定 DM-RS 符号的数据类型。

示例

全部折叠

创建一个载波配置对象,将时隙数指定为 10。

carrier = nrCarrierConfig('NSlot',10);

创建物理下行链路共享信道 (PDSCH) 配置对象 pdsch,其物理资源块 (PRB) 分配范围为 0 到 30。

pdsch = nrPDSCHConfig;
pdsch.PRBSet = 0:30;

创建一个具有指定属性的 PDSCH 解调参考信号 (DM-RS) 对象 dmrs

dmrs = nrPDSCHDMRSConfig;
dmrs.DMRSConfigurationType = 2;
dmrs.DMRSLength = 2;
dmrs.DMRSAdditionalPosition = 1;
dmrs.DMRSTypeAPosition = 2;
dmrs.DMRSPortSet = 5;
dmrs.NIDNSCID = 10;
dmrs.NSCID = 0;

将 PDSCH DM-RS 配置对象赋值给 PDSCH 配置对象的 DMRS 属性。

pdsch.DMRS = dmrs;

为指定载波、PDSCH 配置和输出格式 name-value 对组参量生成 PDSCH DM-RS 符号和索引。

sym = nrPDSCHDMRS(carrier,pdsch,'OutputDataType','single')
sym = 496×1 single column vector

  -0.7071 - 0.7071i
  -0.7071 + 0.7071i
  -0.7071 + 0.7071i
   0.7071 + 0.7071i
   0.7071 + 0.7071i
  -0.7071 - 0.7071i
   0.7071 - 0.7071i
  -0.7071 + 0.7071i
   0.7071 - 0.7071i
  -0.7071 - 0.7071i
   0.7071 - 0.7071i
   0.7071 - 0.7071i
  -0.7071 + 0.7071i
   0.7071 + 0.7071i
   0.7071 + 0.7071i
      ⋮

ind = nrPDSCHDMRSIndices(carrier,pdsch,'IndexBase','0based','IndexOrientation','carrier')
ind = 496×1 uint32 column vector

   1252
   1253
   1258
   1259
   1264
   1265
   1270
   1271
   1276
   1277
   1282
   1283
   1288
   1289
   1294
      ⋮

在载波资源网格上显示生成的 DM-RS 符号。

grid = complex(zeros([carrier.NSizeGrid*12 carrier.SymbolsPerSlot pdsch.NumLayers]));
grid(ind+1) = sym;
imagesc(abs(grid(:,:,1)));
axis xy;
xlabel('OFDM Symbols');
ylabel('Subcarriers');
title('PDSCH DM-RS Resource Elements in the Carrier Resource Grid');

Figure contains an axes object. The axes object with title PDSCH DM-RS Resource Elements in the Carrier Resource Grid, xlabel OFDM Symbols, ylabel Subcarriers contains an object of type image.

输入参数

全部折叠

特定 OFDM 参数集的载波配置参数,指定为 nrCarrierConfig 对象。此函数仅使用 nrCarrierConfig 对象的以下属性。

PDSCH 配置参数,指定为 nrPDSCHConfig 对象。此函数仅使用 nrPDSCHConfig 对象的以下属性。

生成的 DM-RS 符号的数据类型,指定为 'double''single'

数据类型: char | string

输出参量

全部折叠

DM-RS 符号,以复矩阵形式返回。列数对应于配置的天线端口数。

数据类型: single | double
复数支持:

参考

[1] 3GPP TS 38.211. “NR; Physical channels and modulation.” 3rd Generation Partnership Project; Technical Specification Group Radio Access Network.

扩展功能

全部展开

版本历史记录

在 R2020a 中推出