How to pass the complex double values as the fixed point values to the "NCO" block to generate the HDL code. many entries are in NCO, what vals & wht prt of scipt are added?

1 Ansicht (letzte 30 Tage)
This is my script:
shift_val = -3.5;
% Perform the shift using the selected shift value
for ii = 1:length(NPRACH_WAVE)
NPRACH_shifted(ii) = NPRACH_WAVE(ii)*exp(1i*2*pi*shift_val/7.68*ii);
end
This part of line has to be performed in the simulink HDL block using NCO.
*********************** I WILL ATTACH THE NPRACH_WAVE WORKSPACE OUTPUT
WHAT VALUES SHOULD BE PASSED TO THIS ENTRIES WITH FIXED POINT VALUES OR WHAT KIND OF ENTRIES

Akzeptierte Antwort

Bharath Venkataraman
Bharath Venkataraman am 15 Jul. 2023
If the shift value is constant, you can set the phase increment source to Property. The value of the phase shift should be 2^QUANT_ACCUM_BITS*3.5/7.68. You can pass this value in through the phase shift port as well.
  3 Kommentare
Fayaz
Fayaz am 18 Jul. 2023
#############SIR ANOTHER HUGE HELP SIR.................
Sir,you are the only one responding my questions and helping me. You have given me guidance for the "NCO" opration process to make it work, but still i have confusion and not able to get the correct block system for that case of frequency shifting. I studied and tried up with applying "LUT-look up table". I dont know it is using a LUT is correct or not for the process, according the MATLAB script of frequency shifting,
fs_shift1 = 4;
fs_u = 30.72;
Reverse_NCO_out_20 = combined_carrier_shifted_20.*exp(-1i*2*pi*fs_shift1/fs_u*(1:length(combined_carrier_shifted_20)));
the length of "combined_carrier_shifted_20" is multiplied with phase, so in that case do we have to add a LUT? i dont know. Sir im in the around the corner of submission of my undergraduate project and as im an undergraduate, have lack of knowledge about the MATLAB and not interacted much with it, not aware of advance things in MATALB because started use it for the final year project only. Its difficult to get good practice and knowledge within a short period with those high technical base documents available in matlab and cources are too expensive. So, sir kindly request you to consider and i would be much more grateful to you

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu HDL Code Generation finden Sie in Help Center und File Exchange

Produkte


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by