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

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

 採用された回答

Kiran Kintali
Kiran Kintali 2023 年 6 月 26 日
Please find attached a sample NCO block that can generate HDL code.

6 件のコメント

Fayaz
Fayaz 2023 年 6 月 27 日
thank you so much for considering my question. i had made a mistake in postig the question. now i have edited with uploading screen shots and matalb sript that i want to covert hdl simulink block set. so please be kind enough to reconsider my question again give a support
Fayaz
Fayaz 2023 年 6 月 27 日
im an undergraduate student who is a beginner for matlab platfrom. so i have a poor knowledge about the simulink block configuration acccording to my matlab code what you sent previouly,
Fayaz
Fayaz 2023 年 6 月 30 日
sir can you help me to develop this NCO simulik block set, above here i have attached all the necessaries
Can you reach out to tech support for additional help on this topic?
Fayaz
Fayaz 2023 年 7 月 1 日
how to get the support from tech. im using the crack version of matlab? can you guide for that?
Fayaz
Fayaz 2023 年 7 月 3 日
sir, can you give guidance to apply the parameters that i have mentioned in the question, to the NCO model that you have suggested. it is more complicated to understand how to apply them. pls be kind enough to give a support to me as i have no alternative method to get understand andalso im aound the corner of my final submission. please

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

製品

リリース

R2023a

質問済み:

2023 年 6 月 26 日

コメント済み:

2023 年 7 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by