5g nr-凯发k8网页登录
this example shows how to generate standard-compliant 5g nr test models (nr-tms) and uplink and downlink fixed reference channels (frcs) for frequency range 1 (fr1) and frequency range 2 (fr2). for the nr-tm and frc waveform generation, you can specify the nr-tm or frc name, the channel bandwidth, the subcarrier spacing, and the duplexing mode.
introduction
the 3gpp 5g nr standard defines sets of link and waveform configurations for the purposes of conformance testing. two specific types of downlink conformance waveforms are nr test models (nr-tm), for the purpose of base station (bs) rf testing, and downlink fixed reference channels (frc), for user equipment (ue) input testing.
the nr-tms for fr1 are defined in section 4.9.2, and the nr-tms for fr2 are defined in section 4.9.2.
they are used in a range of rf tests, including:
bs output power
timing alignment error (tae)
occupied bandwidth emissions
adjacent channel leakage ratio (aclr)
operating band unwanted emissions
transmitter spurious emissions
transmitter intermodulation
specific test models are aimed at specific sets of measurements.
the physical downlink shared channel (pdsch) frc for fr1 are defined in annex a.3, and for fr2 are defined in annex a.3.
they are used in a number of ue tests, including:
ue receiver requirements
maximum ue input level testing
the physical uplink shared channel (pusch) frc for fr1 and fr2 are defined in annex a.
they are used in a number of base station reception tests, including:
reference sensitivity
adjacent channel selectivity (acs)
in-band and out-of-band blocking
receiver intermodulation
in-channel selectivity
dynamic range
performance requirements
nr-tms and frcs are defined across a standardized set of transmission bandwidth configurations for a valid range of channel bandwidth and subcarrier spacing combinations.
this reference application example uses the matlab class hnrreferencewaveformgenerator
. this class provides access to the bandwidth configuration tables, the release 15, 16, and 17 test model and frc lists, and provides baseband waveform generation and resource grid visualization.
the hnrreferencewaveformgenerator
class contains two constant matlab table properties. the fr1bandwidthtable
property contains the fr1 transmission bandwidth configurations defined in table 5.3.2-1. see also the fr1 maximum transmission bandwidth configurations defined in table 5.3.2-1. the fr2bandwidthtable
property contains the fr2 transmission bandwidth configurations defined in tables 5.3.2-2 and 5.3.2-3. see also the fr2 maximum transmission bandwidth configurations defined in table 5.3.2-1.
% nr transmission bandwidth configurations
fr1bandwidthtable = hnrreferencewaveformgenerator.fr1bandwidthtable
fr1bandwidthtable=3×15 table
5mhz 10mhz 15mhz 20mhz 25mhz 30mhz 35mhz 40mhz 45mhz 50mhz 60mhz 70mhz 80mhz 90mhz 100mhz
____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ ______
15khz 25 52 79 106 133 160 188 216 242 270 nan nan nan nan nan
30khz 11 24 38 51 65 78 92 106 119 133 162 189 217 245 273
60khz nan 11 18 24 31 38 44 51 58 65 79 93 107 121 135
fr2bandwidthtable = hnrreferencewaveformgenerator.fr2bandwidthtable
fr2bandwidthtable=4×7 table
50mhz 100mhz 200mhz 400mhz 800mhz 1600mhz 2000mhz
_____ ______ ______ ______ ______ _______ _______
60khz 66 132 264 nan nan nan nan
120khz 32 66 132 264 nan nan nan
480khz nan nan nan 66 124 248 nan
960khz nan nan nan 33 62 124 148
the hnrreferencewaveformgenerator
class also contains two constant properties which list the test model names for fr1 ( section 4.9.2) and test model names for fr2 ( section 4.9.2).
% release 15, 16, and 17 nr-tm test models for fr1 and fr2
fr1testmodels = hnrreferencewaveformgenerator.fr1testmodels
fr1testmodels = 10x1 string
"nr-fr1-tm1.1"
"nr-fr1-tm1.2"
"nr-fr1-tm2"
"nr-fr1-tm2a"
"nr-fr1-tm2b"
"nr-fr1-tm3.1"
"nr-fr1-tm3.1a"
"nr-fr1-tm3.1b"
"nr-fr1-tm3.2"
"nr-fr1-tm3.3"
fr2testmodels = hnrreferencewaveformgenerator.fr2testmodels
fr2testmodels = 5x1 string
"nr-fr2-tm1.1"
"nr-fr2-tm2"
"nr-fr2-tm2a"
"nr-fr2-tm3.1"
"nr-fr2-tm3.1a"
for the downlink frcs, the class contains additional constant properties which list the downlink frc names for fr1 ( annex a.3) and for fr2 ( annex a.3).
% release 15, 16, and 17 downlink fixed reference channels for fr1 and fr2
fr1downlinkfrc = hnrreferencewaveformgenerator.fr1downlinkfrc
fr1downlinkfrc = 4x1 string
"dl-frc-fr1-qpsk"
"dl-frc-fr1-64qam"
"dl-frc-fr1-256qam"
"dl-frc-fr1-1024qam"
fr2downlinkfrc = hnrreferencewaveformgenerator.fr2downlinkfrc
fr2downlinkfrc = 3x1 string
"dl-frc-fr2-qpsk"
"dl-frc-fr2-16qam"
"dl-frc-fr2-64qam"
for the uplink frcs, the class contains two constant properties which list the uplink frc names for fr1 and fr2 ( annex a).
% release 15 uplink fixed reference channels for fr1 and fr2
fr1uplinkfrc = hnrreferencewaveformgenerator.fr1uplinkfrc
fr1uplinkfrc = 89x1 string
"g-fr1-a1-1"
"g-fr1-a1-2"
"g-fr1-a1-3"
"g-fr1-a1-4"
"g-fr1-a1-5"
"g-fr1-a1-6"
"g-fr1-a1-7"
"g-fr1-a1-8"
"g-fr1-a1-9"
"g-fr1-a2-1"
"g-fr1-a2-2"
"g-fr1-a2-3"
"g-fr1-a2-4"
"g-fr1-a2-5"
"g-fr1-a2-6"
"g-fr1-a3-1"
"g-fr1-a3-2"
"g-fr1-a3-3"
"g-fr1-a3-4"
"g-fr1-a3-5"
"g-fr1-a3-6"
"g-fr1-a3-7"
"g-fr1-a3-8"
"g-fr1-a3-9"
"g-fr1-a3-10"
"g-fr1-a3-11"
"g-fr1-a3-12"
"g-fr1-a3-13"
"g-fr1-a3-14"
"g-fr1-a3-15"
⋮
fr2uplinkfrc = hnrreferencewaveformgenerator.fr2uplinkfrc
fr2uplinkfrc = 37x1 string
"g-fr2-a1-1"
"g-fr2-a1-2"
"g-fr2-a1-3"
"g-fr2-a1-4"
"g-fr2-a1-5"
"g-fr2-a3-1"
"g-fr2-a3-2"
"g-fr2-a3-3"
"g-fr2-a3-4"
"g-fr2-a3-5"
"g-fr2-a3-6"
"g-fr2-a3-7"
"g-fr2-a3-8"
"g-fr2-a3-9"
"g-fr2-a3-10"
"g-fr2-a3-11"
"g-fr2-a3-12"
"g-fr2-a4-1"
"g-fr2-a4-2"
"g-fr2-a4-3"
"g-fr2-a4-4"
"g-fr2-a4-5"
"g-fr2-a4-6"
"g-fr2-a4-7"
"g-fr2-a4-8"
"g-fr2-a4-9"
"g-fr2-a4-10"
"g-fr2-a5-1"
"g-fr2-a5-2"
"g-fr2-a5-3"
⋮
for more information, access the help of hnrreferencewaveformgenerator
by typing 'doc hnrreferencewaveformgenerator'
.
nr-tm and pdsch frc waveform generation
each pdsch reference waveform is defined by a combination of:
nr-tm or frc name
channel bandwidth
subcarrier spacing
duplexing mode
different nr-tms are defined for fr1 and fr2. depending on the test model purposes, nr-tms have varying pdsch characteristics. for example: full band, single modulation scheme, or full band, multiple modulation schemes with varying power boosting/deboosting or single, varying prb allocation. common features to all nr-tms are: no ss burst, pdsch mapping type a with one (fr2) or two (fr1) dm-rs positions per slot transmission, and a single pdcch across two symbols with ncce = 1. there is no transport or dci coding used and the input to the pdsch and pdcch is all 0's or pn23. fdd nr-tm waveforms are 10 ms in length and tdd cases are 20 ms. pt-rs are specified for fr2 nr-tm.
by comparison, downlink frc waveforms contain transport coded pdsch using rv = 0. the reference pdsch are not defined in slots which overlap the ss burst (slot 0 or slots 0 and 1). they use front loaded pdsch mapping type a with 2 additional dm-rs positions. there is no fdm between the pdsch and the dm-rs. the full-band pdsch start at symbol 2 and the first 2 symbols in a slot contain a full occupied coreset. the frc waveforms generated in this example do not contain additional ocng. power levels for all resource elements are uniform. the transport block data source is itu pn9.
the channel bandwidth and subcarrier spacing combination have to be a valid pair from the associated fr bandwidth configuration table. the standard only defines fr2 nr-tm and frc for tdd but with this example you can also create fdd waveforms.
this matlab code creates an hnrreferencewaveformgenerator
object for the selected nr-tm or frc configuration. you can use this object to generate the associated baseband waveform and to display the underlying prb and subcarrier-level resource grids.
% select the nr-tm or pdsch frc waveform parameters dlnrref = "nr-fr1-tm3.2"; % model name and properties bw = "10mhz"; % channel bandwidth scs = "15khz"; % subcarrier spacing dm = "fdd"; % duplexing mode ncellid = 1; % ncellid % run this entire section to generate the required waveform % create generator object for the above nr-tm/pdsch frc reference model dlrefwavegen = hnrreferencewaveformgenerator(dlnrref,bw,scs,dm,ncellid)
dlrefwavegen = hnrreferencewaveformgenerator with properties: fr1bandwidthtable: [3x15 table] fr2bandwidthtable: [4x7 table] fr1testmodels: [10x1 string] fr2testmodels: [5x1 string] fr1downlinkfrc: [4x1 string] fr2downlinkfrc: [3x1 string] fr1uplinkfrc: [89x1 string] fr2uplinkfrc: [37x1 string] config: [1x1 nrdlcarrierconfig] isreadonly: 1 configuredmodel: {["nr-fr1-tm3.2"] ["10mhz"] ["15khz"] ["fdd"] [1] ["17.8.0"]} targetrnti: 1
% generate waveform [dlrefwaveform,dlrefwaveinfo,dlresourceinfo] = generatewaveform(dlrefwavegen); % view transmission information about the set of pdsch within the waveform dlresourceinfo.waveformresources.pdsch
ans=1×3 struct array with fields:
name
cdmlengths
resources
% view detailed information about one of the pdsch sequences
dlresourceinfo.waveformresources.pdsch(1).resources
ans=1×10 struct array with fields:
nslot
transportblocksize
transportblock
rv
codeword
g
gd
channelindices
channelsymbols
dmrsindices
dmrssymbols
dmrssymbolset
ptrsindices
ptrssymbols
ptrssymbolset
% waveform sample rate (hz)
samplerate = dlrefwaveinfo.info.samplerate
samplerate = 15360000
plot(abs(dlrefwaveform)); title(sprintf('magnitude of %s baseband waveform',dlnrref)); xlabel('sample index'); ylabel('magnitude');
% visualize the associated prb and subcarrier resource grids
displayresourcegrid(dlrefwavegen);
fullparameterset = dlrefwavegen.config % full low-level parameter set
fullparameterset = nrdlcarrierconfig with properties: label: 'nr-fr1-tm3.2' frequencyrange: 'fr1' channelbandwidth: 10 ncellid: 1 numsubframes: 10 windowingpercent: 0 samplerate: [] carrierfrequency: 0 scscarriers: {[1x1 nrscscarrierconfig]} bandwidthparts: {[1x1 nrwavegenbwpconfig]} ssburst: [1x1 nrwavegenssburstconfig] coreset: {[1x1 nrcoresetconfig]} searchspaces: {[1x1 nrsearchspaceconfig]} pdcch: {[1x1 nrwavegenpdcchconfig]} pdsch: {[1x1 nrwavegenpdschconfig] [1x1 nrwavegenpdschconfig] [1x1 nrwavegenpdschconfig]} csirs: {[1x1 nrwavegencsirsconfig]}
% make the config parameters writable and boost the power on all pdsch dm-rs
dlrefwavegen = makeconfigwritable(dlrefwavegen)
dlrefwavegen = hnrreferencewaveformgenerator with properties: fr1bandwidthtable: [3x15 table] fr2bandwidthtable: [4x7 table] fr1testmodels: [10x1 string] fr2testmodels: [5x1 string] fr1downlinkfrc: [4x1 string] fr2downlinkfrc: [3x1 string] fr1uplinkfrc: [89x1 string] fr2uplinkfrc: [37x1 string] config: [1x1 nrdlcarrierconfig] isreadonly: 0 configuredmodel: {["nr-fr1-tm3.2"] ["10mhz"] ["15khz"] ["fdd"] [1] ["17.8.0"]} targetrnti: 1
% set dm-rs power parameter on all the pdsch pdscharray = [dlrefwavegen.config.pdsch{:}]; % extract all pdsch configs into an array [pdscharray.dmrspower] = deal(3); % boost the dm-rs power on all the pdsch dlrefwavegen.config.pdsch = num2cell(pdscharray); % reassign the updated pdsch configs
pusch frc waveform generation
each pusch frc reference channel definition in ts 38.104 annex a explicitly defines a number of key parameters including:
frequency range
channel bandwidth
subcarrier spacing
code rate
modulation
dm-rs configuration
additionally, the associated receiver tests introduce some additional parameters that are not specified in the ts 38.104 annex a tables, for example, the general test parameters defined in:
table 8.2.1.1-1 (conducted performance requirements for pusch without transform precoding)
table 8.2.2.1-1 (conducted performance requirements for pusch with transform precoding)
table 11.2.2.1.1-1 (radiated performance requirements for bs type 2-o for pusch without transform precoding)
table 11.2.2.2.1-1 (radiated performance requirements for bs type 2-o for pusch with transform precoding)
the parameter sets that are captured in the matlab reference waveform generator use the above specification sources. since a given frc can be used in different tests with different parameters requirements, the following general rules apply to the default generator configurations. all parameters can be modified after construction. transform precoding is enabled for appropriate frc. fr2 waveforms are tdd and 20ms in length, and fr1 waveforms are fdd and 10ms. the pusch frc are defined with type a mapping, type b mapping, or, in some cases, either mapping type. in the latter case, type a mapping is configured. fr2 waveforms without transform precoding are configured with pt-rs, otherwise pt-rs are off. scrambling identities are set to 0. power levels for all resource elements are uniform. the transport block data source is itu pn9 with rv = 0 i.e. no retransmissions.
this matlab code creates an hnrreferencewaveformgenerator
object for the selected pusch frc configuration. due to the large number of frc, the live script frc drop-down lists only those from section ts 38.104 a.1 (reference sensistivity, acs, in-band blocking etc.) and a.2 (dynamic range). the performance test frc defined in a.3, a.4, a.5 can be chosen by specifying the frc name string directly in the code below. after the generator object is created, all configuration parameters can be changed by making them writable using the makeconfigwritable
function.
% select the pusch frc waveform ulnrref = "g-fr1-a1-1"; % this live script down-drop list is preconfigured for ts 38.104 annex a.1 and a.2 subsets % possible overrides to annex a definitions (empty values provide the annex a defaults) bw = []; % bandwidth override (5,10,15,20,25,30,40,50,60,70,80,90,100,200,400,800,1600,2000 mhz) scs = []; % subcarrier spacing override (15,30,60,120,480,960 khz) dm = []; % duplexing mode override ("fdd","tdd") ncellid = []; % cell identity override (used to control scrambling identities) % run this entire section to generate the required waveform % create generator object for the above pusch frc reference model ulrefwavegen = hnrreferencewaveformgenerator(ulnrref,bw,scs,dm,ncellid)
ulrefwavegen = hnrreferencewaveformgenerator with properties: fr1bandwidthtable: [3x15 table] fr2bandwidthtable: [4x7 table] fr1testmodels: [10x1 string] fr2testmodels: [5x1 string] fr1downlinkfrc: [4x1 string] fr2downlinkfrc: [3x1 string] fr1uplinkfrc: [89x1 string] fr2uplinkfrc: [37x1 string] config: [1x1 nrulcarrierconfig] isreadonly: 1 configuredmodel: {["g-fr1-a1-1"] [] [] ["fdd"] [0]} targetrnti: 0
% generate waveform [ulrefwaveform,ulrefwaveinfo,ulresourceinfo] = generatewaveform(ulrefwavegen); % view transmission information about the set of pusch within the waveform ulresourceinfo.waveformresources.pusch
ans = struct with fields:
name: 'pusch sequence for g-fr1-a1-1'
cdmlengths: [1 1]
resources: [1x10 struct]
% view detailed information about one of the pusch sequences
ulresourceinfo.waveformresources.pusch(1).resources
ans=1×10 struct array with fields:
nslot
transportblocksize
transportblock
rv
codeword
g
gd
channelindices
channelsymbols
dmrsindices
dmrssymbols
dmrssymbolset
ptrsindices
ptrssymbols
ptrssymbolset
% waveform sample rate (hz)
samplerate = ulrefwaveinfo.info.samplerate
samplerate = 7680000
plot(abs(ulrefwaveform)); title(sprintf('magnitude of %s baseband waveform',ulnrref)); xlabel('sample index'); ylabel('magnitude');
% visualize the associated prb and subcarrier resource grids
displayresourcegrid(ulrefwavegen);
fullparameterset = ulrefwavegen.config % full low-level parameter set
fullparameterset = nrulcarrierconfig with properties: label: 'g-fr1-a1-1' frequencyrange: 'fr1' channelbandwidth: 5 ncellid: 0 numsubframes: 10 windowingpercent: 0 samplerate: [] carrierfrequency: 0 scscarriers: {[1x1 nrscscarrierconfig]} bandwidthparts: {[1x1 nrwavegenbwpconfig]} pusch: {[1x1 nrwavegenpuschconfig]} pucch: {[1x1 nrwavegenpucch0config]} srs: {[1x1 nrwavegensrsconfig]}
references
[1] 3gpp ts 38.101-1. “nr; user equipment (ue) radio transmission and reception; part 1: range 1 standalone.” 3rd generation partnership project; technical specification group radio access network.
[2] 3gpp ts 38.101-2. “nr; user equipment (ue) radio transmission and reception; part 2: range 2 standalone.” 3rd generation partnership project; technical specification group radio access network.
[3] 3gpp ts 38.104. “nr; base station (bs) radio transmission and reception.” 3rd generation partnership project; technical specification group radio access network.
[4] 3gpp ts 38.141-1. “nr; base station (bs) conformance testing part 1: conducted conformance testing.” 3rd generation partnership project; technical specification group radio access network.
[5] 3gpp ts 38.141-2. “nr; base station (bs) conformance testing part 2: radiated conformance testing.” 3rd generation partnership project; technical specification group radio access network.