필터 지우기
필터 지우기

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 (최근 30일)
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

채택된 답변

Bharath Venkataraman
Bharath Venkataraman 2023년 7월 15일
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
Fayaz
Fayaz 2023년 7월 15일
is this correct? i sure wrong. can you help me to build out this?
Fayaz
Fayaz 2023년 7월 18일
#############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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by