|
|
@ -1,4 +1,4 @@
|
|
|
|
%enb=struct('NCellID',424,'NDLRB',100,'NSubframe',9,'CFI',2,'CyclicPrefix','Normal','CellRefP',2,'Ng','One','PHICHDuration','Normal','DuplexMode','FDD');
|
|
|
|
enb=struct('NCellID',1,'NDLRB',50,'NSubframe',2,'CFI',2,'CyclicPrefix','Normal','CellRefP',1,'Ng','One','PHICHDuration','Normal','DuplexMode','FDD');
|
|
|
|
|
|
|
|
|
|
|
|
RNTI=65535;
|
|
|
|
RNTI=65535;
|
|
|
|
|
|
|
|
|
|
|
@ -11,8 +11,8 @@ cec.InterpType = 'linear'; % 2D interpolation type
|
|
|
|
cec.InterpWindow = 'Causal'; % Interpolation window type
|
|
|
|
cec.InterpWindow = 'Causal'; % Interpolation window type
|
|
|
|
cec.InterpWinSize = 1; % Interpolation window size
|
|
|
|
cec.InterpWinSize = 1; % Interpolation window size
|
|
|
|
|
|
|
|
|
|
|
|
%subframe_rx=lteOFDMDemodulate(enb,inputSignal);
|
|
|
|
subframe_rx=lteOFDMDemodulate(enb,y);
|
|
|
|
subframe_rx=reshape(input,[],14);
|
|
|
|
%subframe_rx=reshape(input,[],14);
|
|
|
|
[hest,nest] = lteDLChannelEstimate(enb, cec, subframe_rx);
|
|
|
|
[hest,nest] = lteDLChannelEstimate(enb, cec, subframe_rx);
|
|
|
|
|
|
|
|
|
|
|
|
% Search PDCCH
|
|
|
|
% Search PDCCH
|
|
|
@ -30,7 +30,8 @@ if ~isempty(dci)
|
|
|
|
% Get the PDSCH configuration from the DCI
|
|
|
|
% Get the PDSCH configuration from the DCI
|
|
|
|
[pdsch, trblklen] = hPDSCHConfiguration(enb, dci, pdcch.RNTI);
|
|
|
|
[pdsch, trblklen] = hPDSCHConfiguration(enb, dci, pdcch.RNTI);
|
|
|
|
pdsch.NTurboDecIts = 10;
|
|
|
|
pdsch.NTurboDecIts = 10;
|
|
|
|
%pdsch.Modulation = {'QPSK'};
|
|
|
|
pdsch.Modulation = {'QPSK'};
|
|
|
|
|
|
|
|
pdsch.RV=0;
|
|
|
|
%trblklen=75376;
|
|
|
|
%trblklen=75376;
|
|
|
|
fprintf('PDSCH settings after DCI decoding:\n');
|
|
|
|
fprintf('PDSCH settings after DCI decoding:\n');
|
|
|
|
disp(pdsch);
|
|
|
|
disp(pdsch);
|
|
|
@ -43,9 +44,9 @@ if ~isempty(dci)
|
|
|
|
[dlschBits,pdschSymbols] = ltePDSCHDecode(enb, pdsch, pdschRx, pdschHest, nest);
|
|
|
|
[dlschBits,pdschSymbols] = ltePDSCHDecode(enb, pdsch, pdschRx, pdschHest, nest);
|
|
|
|
[sib1, crc] = lteDLSCHDecode(enb, pdsch, trblklen, dlschBits);
|
|
|
|
[sib1, crc] = lteDLSCHDecode(enb, pdsch, trblklen, dlschBits);
|
|
|
|
|
|
|
|
|
|
|
|
[dec2, data, pdschRx2, pdschSymbols2, e_bits] = srslte_pdsch(enb, pdsch, ...
|
|
|
|
%[dec2, data, pdschRx2, pdschSymbols2, e_bits] = srslte_pdsch(enb, pdsch, ...
|
|
|
|
trblklen, ...
|
|
|
|
% trblklen, ...
|
|
|
|
subframe_rx, hest, nest);
|
|
|
|
% subframe_rx, hest, nest);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
scatter(real(pdschSymbols{1}),imag(pdschSymbols{1}))
|
|
|
|
scatter(real(pdschSymbols{1}),imag(pdschSymbols{1}))
|
|
|
|