how to configure parameters for NCO(frequency shifting or frequency correction) simulink block set based on the NCO operation has performed in the matlab script
조회 수: 12 (최근 30일)
이전 댓글 표시
i have to build the hdl block set for NCO(frequency shifting). so i selected a HDL NCO block, but i dont know how to set the parameter configuration according to my script. i have gone through the MATLAB simulink HDL guide, but i could not understand. i will attach the details of NCO block configuartion tab screen shots, if anyone can you help me to do that. please be kind enough to give a support
% 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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1420388/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1420393/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1420398/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1420403/image.jpeg)
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 HDL Coder에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!