mirror of https://github.com/pvnis/srsRAN_4G.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
835 B
Matlab
21 lines
835 B
Matlab
ueConfig=struct('NCellID',1,'NULRB',25,'NSubframe',2,'RNTI',62,'CyclicPrefixUL','Normal','NTxAnts',1,'Shortened',0);
|
|
puschConfig=struct('NTurboDecIts',5,'NLayers',1,'OrthCover','Off','PRBSet',(0:24)','Modulation','16QAM','RV',3);
|
|
|
|
TBS=9144;
|
|
cfo=1000;
|
|
%t0=1;
|
|
%x=[rx(t0:end); zeros(t0-1,1)];
|
|
|
|
x=rx;
|
|
|
|
subframe_rx=lteSCFDMADemodulate(ueConfig,x.*exp(-1i*2*pi*cfo/15000*transpose(1:length(x))/512));
|
|
idx=ltePUSCHIndices(ueConfig,puschConfig);
|
|
pusch_rx=subframe_rx(idx);
|
|
dmrs_rx=subframe_rx(ltePUSCHDRSIndices(ueConfig,puschConfig));
|
|
[hest, noiseest] = lteULChannelEstimate(ueConfig,puschConfig,subframe_rx);
|
|
ce=hest(idx);
|
|
[cws,symbols] = ltePUSCHDecode(ueConfig,puschConfig,pusch_rx,ce,noiseest);
|
|
[trblkout,blkcrc,stateout] = lteULSCHDecode(ueConfig,puschConfig,TBS,cws);
|
|
disp(blkcrc)
|
|
scatter(real(symbols),imag(symbols))
|
|
%plot(angle(hest)) |