main content

umts downlink waveform generation -凯发k8网页登录

this example shows how to generate an hsdpa frc h-set using lte toolbox™.

introduction

the lte toolbox can be used to generate standard compliant w-cdma/hspa/hspa uplink and downlink complex baseband waveforms including pre-defined configurations for standard defined measurement channels. for the downlink this includes the reference measurement channels (rmc), fixed reference channel (frc) h-sets and test models (tm) defined in ts25.101 [ 1 ].

this example demonstrates how the two downlink related functions, and , combine to support this feature. we show how they can generate an frc h-set waveform for hsdpa ue testing using one of the pre-defined configurations provided. we also present explicit matlab® code which lists all downlink generator parameters set up for this particular measurement channel. the frc h-sets are defined in ts25.101, section a.7.1 [ 1 ]. this code also provides a useful template for full waveform customization.

the umtsdownlinkwaveformgenerator function can generate custom w-cdma/hspa/hspa waveforms using the physical layer channels listed below. arbitrary coded composite transport channels (cctrch) can be configured too. the output waveforms are loopable for continuous playback in simulation or via test equipment.

physical channels supported:

  • dedicated physical channel (dpch)

  • primary common pilot channel (p-cpich)

  • secondary common pilot channel (s-cpich)

  • primary common control physical channel (p-ccpch)

  • secondary common control physical channel (s-ccpch)

  • primary synchronization channel (p-sch)

  • secondary synchronization channel (s-sch)

  • paging indicator channel (pich)

  • high speed physical downlink shared channel (hs-pdsch)

  • shared control channel for hs-dsch (hs-scch)

  • orthogonal channel noise simulator channels (ocns)

transport channels supported:

  • dedicated channel (dch)

  • broadcast channel (bch)

  • forward access channel (fach)

  • paging channel (pch)

  • high speed downlink shared channel (hs-dsch)

the physical channel processing is defined in ts25.211 and ts25.213 [ 2 ][ 4 ]. the processing for the transport channels is defined in ts25.212 [ 3 ].

the waveforms generated can be used for a number of applications:

  • golden reference for transmitter implementations

  • receiver testing and algorithm development

  • testing rf hardware and software

  • interference testing

see for a more detailed explanation of how to interface the waveforms with external hardware.

w-cdma/hspa/hspa waveform generation and parameterization functions

the waveform generator function umtsdownlinkwaveformgenerator requires a single hierarchical matlab structure which specifies the set of all parameters for the physical and transport channels present in the output waveform.

the toolbox includes a function umtsdownlinkreferencechannels, which can return a fully populated parameter structure for all the pre-configured reference measurement channels (rmc), fixed reference channel (frc) h-sets and test models (tm).

by combining the two functions these standard defined measurement waveforms can be generated easily. the pre-configured parameters returned from umtsdownlinkreferencechannels can also be used as a starting point for parameter customization, for example changing the output filtering, channel power levels or even the reference cctrch configuration, prior to calling the generator function. if full waveform parameter control is required then this example includes matlab code below which lists all possible downlink parameters. the following diagram shows these steps.

h-set1 (qpsk) generation using a pre-configured parameter structure

the umtsdownlinkreferencechannels function requires the h-set number and modulation to be specified as shown below. allowed h-set values are ('h-set1', 'h-set2', 'h-set3', 'h-set4', 'h-set5', 'h-set6', 'h-set7', 'h-set8', 'h-set10', 'h-set12') and the choices for modulation schemes are 'qpsk', '16qam' and '64qam'. the output structure preconfigparams is the pre-built configuration for frc h-set1 and this can then be used to generate the standard defined h-set waveform by calling the umtsdownlinkwaveformgenerator function.

hset = 'h-set1';     % h-set number
modulation = 'qpsk'; % modulation scheme
preconfigparams = umtsdownlinkreferencechannels(hset,modulation); % get h-set parameters
frcwaveform = umtsdownlinkwaveformgenerator(preconfigparams);     % generate h-set waveform

h-set1 (qpsk) generation using full parameter list

in this section, we will build the h-set1 (qpsk) configuration structure from scratch and show that this is identical to the structure defined using the umtsdownlinkreferencechannels function as shown above. the downlinkparams structure defined below has the full list of the parameters supported by the umtsdownlinkwaveformgenerator function and so also can be used as a template to create custom waveforms when a large set of parameter values need to be changed from the structure output by .

% h-set parameter structure definition from scratch
% general settings
downlinkparams.totframes = 1;                      % number of 10ms frames to be generated
downlinkparams.primaryscramblingcode = 0;          % primary scrambling code
downlinkparams.filtertype = 'rrc';                 % enable the rrc filter
downlinkparams.oversamplingratio = 4;              % oversampling set to 4
downlinkparams.normalizedpower = 'off';            % power normalization disabled
% define downlink dedicated physical channel  (dpch)
downlinkparams.dpch.enable = 'on';                 % enable dpch
downlinkparams.dpch.slotformat = 11;               % dpch slot format
downlinkparams.dpch.spreadingcode = 6;             % dpch spreading code
downlinkparams.dpch.nmulticodes = 1;               % number of dpch
downlinkparams.dpch.secondaryscramblingcode = 1;   % secondary scrambling code
downlinkparams.dpch.timingoffset = 0;              % timing offset
downlinkparams.dpch.power = 0;                     % power in db
downlinkparams.dpch.tpcdata = 0;                   % tpc value
downlinkparams.dpch.tfci = 0;                      % tfci value
downlinkparams.dpch.datasource = 'cctrch';         % dpch data source is cctrch
% dpch carries the coded composite transport channel (cctrch) containing
% one or more transport channels. since dpch source is specified as cctrch,
% define the cctrch containing dtch and dcch transport channels
% build dtch definition
trch(1).name = 'dtch';                             % name of the transport channel
trch(1).crc = '16';                                % crc type
trch(1).tti = 20;                                  % tti in ms
trch(1).codingtype = 'conv3';                      % the coding type and rate
trch(1).rma = 256;                                 % rate matching attribute
trch(1).datasource = 'pn9-itu';                    % tr channel data source
trch(1).activedynamicpart = 1;                     % index to active dynamic part
trch(1).dynamicpart(1) = struct('blocksize',244,'blocksetsize',244); % 1x244 blocks
% build dcch definition
trch(2).name = 'dcch';                             % name of the transport channel
trch(2).crc = '12';                                % crc type
trch(2).tti = 40;                                  % tti in ms
trch(2).codingtype = 'conv3';                      % the coding type and rate
trch(2).rma = 256;                                 % rate matching attribute
trch(2).datasource = 'pn9-itu';                    % tr channel data source
trch(2).activedynamicpart = 1;                     % index to active dynamic part
trch(2).dynamicpart(1) = struct('blocksize',100,'blocksetsize',100);   % 1x100 blocks
% finalize cctrch structure array using the trch structures defined above
downlinkparams.dpch.cctrch.name = 'dch';           % name of the cctrch
downlinkparams.dpch.cctrch.dtxposition = 'fixed';  % dtx position
downlinkparams.dpch.cctrch.trch = trch;            % assign dtch/dcch to cctrch
% define p-ccpch
downlinkparams.pccpch.enable = 'on';               % enable p-ccpch
downlinkparams.pccpch.power = 0;                   % set power to be 0db
downlinkparams.pccpch.datasource = 'cctrch';       % p-ccpch data source is cctrch
% p-ccpch cctrch carries the bch transport channel. since p-ccpch source is
% cctrch, define cctrch containing bch
clear trch;
trch(1).name = 'bch';                              % name of the tr channel
trch(1).crc = '16';                                % crc type
trch(1).tti = 20;                                  % tti in ms
trch(1).codingtype = 'conv2';                      % the coding type and rate
trch(1).rma = 256;                                 % rate matching attribute
trch(1).datasource = 'pn9-itu';                    % tr channel data source
trch(1).activedynamicpart = 1;                     % index to active dynamic part
trch(1).dynamicpart(1) = struct('blocksize',246,'blocksetsize',246); % 1x246 block
% finalize cctrch structure array using the trch structure defined above
downlinkparams.pccpch.cctrch.name = 'bch';         % name of the cctrch
downlinkparams.pccpch.cctrch.dtxposition = 'fixed';% dtx position
downlinkparams.pccpch.cctrch.trch = trch;          % assign bch to cctrch
% define s-ccpch, but this channel is not required for h-set1 generation
downlinkparams.sccpch.enable = 'off';              % disable s-ccpch
downlinkparams.sccpch.slotformat = 7;              % slot format number
downlinkparams.sccpch.spreadingcode = 3;           % s-ccpch spreading code
downlinkparams.sccpch.secondaryscramblingcode = 3; % secondary scrambling code
downlinkparams.sccpch.timingoffset = 0;            % timing offset
downlinkparams.sccpch.power = 0;                   % power in db
downlinkparams.sccpch.tfci = 0;                    % tfci value
downlinkparams.sccpch.datasource = 'cctrch';       % s-ccpch data source is cctrch
% s-ccpch cctrch can carry pch and fach transport channels. since s-ccpch
% source is cctrch, define cctrch containing pch and fach
% build pch definition
trch(1).name = 'pch';                              % name of the tr channel
trch(1).crc = '16';                                % crc type
trch(1).tti = 10;                                  % tti in ms
trch(1).codingtype = 'conv2';                      % the coding type
trch(1).rma = 256;                                 % rate matching attribute
trch(1).datasource = 'pn9-itu';                    % tr channel data source
trch(1).activedynamicpart = 1;                     % index to active dynamic part
trch(1).dynamicpart(1) = struct('blocksize',64,'blocksetsize',64);   % 1x64 block
% build fach definition
trch(2).name = 'fach';                             % name of the tr channel
trch(2).crc = '16';                                % crc type
trch(2).tti = 10;                                  % tti in ms
trch(2).codingtype = 'turbo';                      % the coding type
trch(2).rma = 256;                                 % rate matching attribute
trch(2).datasource = 'pn9-itu';                    % tr channel data source
trch(2).activedynamicpart = 1;                     % index to active dynamic part
trch(2).dynamicpart(1) = struct('blocksize',360,'blocksetsize',360);   % 1x360 block
% finalize cctrch using the above
downlinkparams.sccpch.cctrch.name = '';            % name of the cctrch
downlinkparams.sccpch.cctrch.dtxposition = 'fixed';% dtx position
downlinkparams.sccpch.cctrch.trch = trch;          % assign pch/fach to cctrch
% define p-cpich
downlinkparams.pcpich.enable = 'on';               % enable p-cpich
downlinkparams.pcpich.power = 0;                   % power in db
% define s-cpich
downlinkparams.scpich.enable = 'off';              % disable s-cpich
downlinkparams.scpich.spreadingcode = 4;           % s-cpich spreading code
downlinkparams.scpich.secondaryscramblingcode = 4; % secondary scrambling code
downlinkparams.scpich.power = 0;                   % power in db
% define p-sch
downlinkparams.psch.enable = 'on';                 % enable p-sch
downlinkparams.psch.power = 0;                     % power in db
% define s-sch
downlinkparams.ssch.enable = 'on';                 % enable s-sch
downlinkparams.ssch.power = 0;                     % power in db
% define pich
downlinkparams.pich.enable = 'on';                 % enable pich
downlinkparams.pich.spreadingcode = 16;            % pich spreading code
downlinkparams.pich.timingoffset = 0;              % timing offset
downlinkparams.pich.power = 0;                     % power in db
downlinkparams.pich.datasource = 'pagingdata';     % pich data source
downlinkparams.pich.np = 144;                      % number of paging indicators
% define hsdpa
downlinkparams.hsdpa.enable = 'on';                % enable hsdpa channels
downlinkparams.hsdpa.codegroup = 5;                % number of hs-pdschs
downlinkparams.hsdpa.codeoffset = 1;               % code offset to first hs-pdsch
downlinkparams.hsdpa.modulation = 'qpsk';          % modulation scheme
downlinkparams.hsdpa.virtualbuffercapacity = 9600; % buffer capacity
downlinkparams.hsdpa.interttidistance = 3;         % inter tti interval
downlinkparams.hsdpa.nharqprocesses = 2;           % number of harq processes
downlinkparams.hsdpa.xrvsequence = [0 2 5 6];      % the xrv sequence
downlinkparams.hsdpa.ueid = 0;                     % ue identity
downlinkparams.hsdpa.transportblocksizeid = 41;    % the transport block size id
downlinkparams.hsdpa.hsscchspreadingcode = 9;      % shared channel spreading code
downlinkparams.hsdpa.secondaryscramblingcode = 6;  % secondary scrambling code
downlinkparams.hsdpa.hspdschpower = 0;             % hs-pdsch power in db
downlinkparams.hsdpa.hsscchpower = 0;              % hs-scch power in db
downlinkparams.hsdpa.datasource = 'hsdsch';        % data source is hs-dsch
% hs-dsch transport channel definition
downlinkparams.hsdpa.hsdsch.blocksize = 3202;      % the transport block size
downlinkparams.hsdpa.hsdsch.datasource = 'pn9-itu';% hs-dsch data source
% define ocns channels as defined in ts25.101 table c.13
downlinkparams.ocns.enable = 'on';                 % enable ocns channels
downlinkparams.ocns.power = 0;                     % ocns power scaling in db
downlinkparams.ocns.ocnstype = 'h-set_6dpch';      % ocns definition
% the structure defined above can be used to generate the waveform:
frcwaveform2 = umtsdownlinkwaveformgenerator(downlinkparams);
% for completeness we can see that the h-set definition structures obtained
% by the above two parameterization approaches are identical
if(isequal(preconfigparams,downlinkparams))
    disp(['h-set1 configuration structures generated with and without using' ...
    ' umtsdownlinkreferencechannels function are the same.']);
end
h-set1 configuration structures generated with and without using umtsdownlinkreferencechannels function are the same.

waveform comparison

compare the waveforms generated using both approaches described above and see that the generated waveforms are identical

if(isequal(frcwaveform,frcwaveform2))
    disp(['h-set1 waveforms generated with and without using' ...
    ' umtsdownlinkreferencechannels function are the same.']);
end
h-set1 waveforms generated with and without using umtsdownlinkreferencechannels function are the same.

plot spectrum

plot the spectrum of the time domain signal frcwaveform.

chiprate = 3.84e6;   % chip rate of the baseband waveform
spectrumplot = spectrumanalyzer(samplerate=chiprate*downlinkparams.oversamplingratio);
spectrumplot.title = sprintf('spectrum of fixed reference channel (frc) %s (%s) waveform', hset, modulation);
spectrumplot(frcwaveform);

conclusion

this example shows how to generate standard defined and custom w-cdma/hspa/hspa waveforms using lte toolbox functions. the example also provides a full parameter template for full user customization of the pre-defined waveform configurations.

selected bibliography

  1. 3gpp ts 25.101 "user equipment (ue) radio transmission and reception (fdd)"

  2. 3gpp ts 25.211 "physical channels and mapping of transport channels onto physical channels (fdd)"

  3. 3gpp ts 25.212 "multiplexing and channel coding (fdd)"

  4. 3gpp ts 25.213 "spreading and modulation (fdd)"

网站地图