필터 지우기
필터 지우기

how to perform frequency shift or frequency correction in simulation using HDL NCO and LOOKUP table(LUT) in order to generate HDL code

조회 수: 3 (최근 30일)
for the below mentioned exponential part contain code,
% 5MHz carrier
fs = 7.68;
tdw=LTE5_3_1.waveform;
%% SHOLDER REMOVING
shape5_out = conv(tdw,shape5);
%% UPSAMPLING AND LOW PASS FILTERING
fs3 = 491.52;
up5_out = interp(shape5_out,64);
%% NCO operation
fc4 = 40; %shift by 40 Mhz
for ii = 1:length(up5_out)
carr_1shifted(ii) = up5_out(ii).*exp(1i*2*pi*fc4/fs3*ii);
end
data_complex = complex(real(up5_out), imag(up5_out));
complex_timeseries = timeseries(data_complex);

채택된 답변

Kranti Balaga
Kranti Balaga 2023년 7월 9일
Your logic can be replicated with the help of the NCO HDL followed by mulitplier. Similar application, we used to correct the frequency offset in our Simulink receivers. You can see here in the Coarse Frequency Compensator subsystem.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Code Generation에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by