main content

uplink waveform modeling using srs and pucch -凯发k8网页登录

this example demonstrates how to configure user equipment (ue) and cell-specific sounding reference signals (srs) transmission. physical uplink control channel (pucch) is also configured for transmission.

introduction

the srs configuration is split into 2 parts - ue-specific and cell-specific. the ue-specific part describes the schedule and content of actual srs transmissions for this ue. the cell-specific part describes the time schedule when any ue in the cell can transmit - the ue-specific schedule must be a subset of this schedule.

in this example the cell-specific srs configuration has 5ms periodicity with an offset of 0 (signaled by srs.subframeconfig = 3 as indicated in ts36.211, table 5.5.3.3-1 [ 1 ]). the ue-specific srs configuration has 10ms periodicity with an offset of 0 (signaled by srs.configidx = 7 as indicated in ts36.213, table 8.2-1 [ 2 ]). the cell-specific configuration means that for this cell, two opportunities for srs transmission exist within each frame, subframes 0 and 5. all ues in the cell must shorten their physical uplink control channel (pucch) transmissions during these subframes to allow for srs reception without interference, even if they are not transmitting srs themselves. the ue-specific configuration means that this ue is configured to generate srs only in subframe 0.

the output at the matlab® command window when running this example shows pucch transmission in all 10 subframes, with shortening in subframes 0 and 5, and an srs transmission in subframe 0.

ue configuration

ue = struct;
ue.nulrb = 15;                  % number of resource blocks
ue.ncellid = 10;                % physical layer cell identity
ue.hopping = 'off';             % disable frequency hopping
ue.cyclicprefixul = 'normal';   % normal cyclic prefix
ue.duplexmode = 'fdd';          % frequency division duplex (fdd)
ue.ntxants = 1;                 % number of transmit antennas
ue.nframe = 0;                  % frame number

pucch configuration

pucch = struct;
% vector of pucch resource indices, one per transmission antenna
pucch.resourceidx = 0:ue.ntxants-1;
pucch.deltashift = 1;               % pucch delta shift parameter
pucch.cyclicshifts = 0;             % pucch delta offset parameter
pucch.resourcesize = 0;             % size of resources allocated to pucch

srs configuration

srs = struct;
srs.ntxants = 1;        % number of transmit antennas
srs.subframeconfig = 3; % cell-specific srs period = 5ms, offset = 0
srs.bwconfig = 6;       % cell-specific srs bandwidth configuration
srs.bw = 0;             % ue-specific srs bandwidth configuration
srs.hoppingbw = 0;      % srs frequency hopping configuration
srs.txcomb = 0;         % even indices for comb transmission
srs.freqposition = 0;   % frequency domain position
srs.configidx = 7;      % ue-specific srs period = 10ms, offset = 0
srs.cyclicshift = 0;    % ue-cyclic shift

subframe loop

the processing loop generates a subframe at a time. these are all concatenated to create the resource grid for a frame (10 subframes). the loop performs the following operations:

  • srs information: by calling we can get information related to srs for a given subframe. the issrssubframe field of the structure srsinfo returned from the ltesrsinfo call indicates if the current subframe (given by ue.nsubframe) is a cell-specific srs subframe (issrssubframe = 1) or not (issrssubframe = 0). the value of this field can be copied into the ue.shortened field. this ensures that the subsequent pucch generation will correctly respect the cell-specific srs configuration for all subframes, omitting the last symbol of the pucch in the cell-specific srs subframes.

  • pucch 1 demodulation reference signal (drs) generation and mapping: the drs signal is located in the 3rd, 4th and 5th symbols of each slot and therefore never has the potential to collide with the srs.

  • pucch 1 generation and mapping: unlike the drs, the pucch 1 transmission can occupy the last symbol of the subframe unless ue.shortened = 1. in this case the last symbol of the subframe will be left empty.

  • srs generation and mapping: here we generate and map the srs according to the ue-specific srs configuration. both the and functions use the fields ue.nsubframe and srs.configidx to determine if the current subframe is configured for srs transmission; if not, the output of both functions is empty.

txgrid = [];    % create empty resource grid
for i = 1:10    % process 10 subframes
        % configure subframe number (0-based)
        ue.nsubframe = i-1;
        fprintf('subframe %d:\n',ue.nsubframe);
        % establish if this subframe is a cell-specific srs subframe,
        % and if so configure the pucch for shortened transmission
        srsinfo = ltesrsinfo(ue, srs);
        ue.shortened = srsinfo.issrssubframe; % copy srs info to ue struct
        % create empty uplink subframe
        txsubframe = lteulresourcegrid(ue);
        % generate and map pucch1 drs to resource grid
        drsindices = ltepucch1drsindices(ue, pucch);% drs indices
        drssymbols = ltepucch1drs(ue, pucch);       % drs sequence
        txsubframe(drsindices) = drssymbols;        % map to resource grid
        % generate and map pucch1 to resource grid
        pucchindices = ltepucch1indices(ue, pucch); % pucch1 indices
        ack = [0; 1];                               % harq indicator values
        pucchsymbols = ltepucch1(ue, pucch, ack);   % pucch1 sequence
        txsubframe(pucchindices) = pucchsymbols;    % map to resource grid
        if (ue.shortened)
            disp('transmitting shortened pucch');
        else
            disp('transmitting full-length pucch');
        end
        % configure the srs sequence group number (u) according to ts
        % 36.211 section 5.5.1.3 with group hopping disabled
        srs.seqgroup = mod(ue.ncellid,30);
        % configure the srs base sequence number (v) according to ts 36.211
        % section 5.5.1.4 with sequence hopping disabled
        srs.seqidx = 0;
        % generate and map srs to resource grid
        % (if active under ue-specific srs configuration)
        [srsindices, srsindicesinfo] = ltesrsindices(ue, srs);% srs indices
        srssymbols = ltesrs(ue, srs);                         % srs seq.
        if (srs.ntxants == 1 && ue.ntxants > 1) % map to resource grid
            % select antenna for multiple antenna selection diversity
            txsubframe( ...
                hsrsoffsetindices(ue, srsindices, srsindicesinfo.port)) = ...
                srssymbols;
        else
            txsubframe(srsindices) = srssymbols;
        end
        % message to console indicating when srs is mapped to the resource
        % grid.
        if(~isempty(srsindices))
            disp('transmitting srs');
        end
        % concatenate subframes to form frame
        txgrid = [txgrid txsubframe]; %#ok
end
subframe 0:
transmitting shortened pucch
transmitting srs
subframe 1:
transmitting full-length pucch
subframe 2:
transmitting full-length pucch
subframe 3:
transmitting full-length pucch
subframe 4:
transmitting full-length pucch
subframe 5:
transmitting shortened pucch
subframe 6:
transmitting full-length pucch
subframe 7:
transmitting full-length pucch
subframe 8:
transmitting full-length pucch
subframe 9:
transmitting full-length pucch

results

the figure produced shows the number of active subcarriers in each sc-fdma symbol across the 140 symbols in txgrid. all sc-fdma symbols contain 12 active subcarriers corresponding to the single resource block bandwidth of the pucch except:

  • symbol 13, the last symbol of subframe 0 which has 48 active subcarriers corresponding to an 8 resource block srs transmission

  • symbol 83, the last symbol of subframe 5 which has 0 active subcarriers corresponding to the shortened pucch (last symbol empty) to allow for potential srs transmission by another ue in this cell.

figure;
for i = 1:ue.ntxants
    subplot(ue.ntxants,1,i);
    plot(0:size(txgrid,2)-1,sum(abs(txgrid(:,:,i)) ~= 0),'r:o')
    xlabel('symbol number');
    ylabel('active subcarriers');
    title(sprintf('antenna %d',i-1));
end

plot the resource grid with the pucch at the band edges and the srs comb transmission in subframe 0.

figure;
pcolor(abs(txgrid));
colormap([1 1 1; 0 0 0.5])
shading flat;
xlabel('sc-fdma symbol'); ylabel('subcarrier')

further exploration

srs transmit antenna selection can be demonstrated by setting ue.ntxants = 2 and examining the subplots produced for each antenna; the srs is transmitted on antenna 0 while the pucch is shortened on both (all) antennas. a pattern of antenna selection across this one-frame run can be shown by further configuring srs.subframeconfig = 0 and srs.configidx = 0. this configures a cell-specific srs configuration of 2ms periodicity with an offset of 0 (signaled by srs.subframeconfig = 0) and also a ue-specific srs configuration of 2ms periodicity with an offset of 0 (signaled by srs.configidx = 0). in this case an srs is transmitted by this ue on even subframes, and the transmit antenna alternates with each transmission.

srs transmission on multiple antennas using resource diversity can be shown by setting ue.ntxants = 2 and srs.ntxants = 2. in this case the srs is always transmitted on both (all) antennas with orthogonal resources on each antenna.

appendix

this example uses this helper function.

selected bibliography

  1. 3gpp ts 36.211 "physical channels and modulation"

  2. 3gpp ts 36.213 "physical layer procedures"

网站地图