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?
2 ビュー (過去 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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1434913/image.jpeg)
This part of line has to be performed in the simulink HDL block using NCO.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1434918/image.jpeg)
*********************** I WILL ATTACH THE NPRACH_WAVE WORKSPACE OUTPUT
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1434923/image.jpeg)
WHAT VALUES SHOULD BE PASSED TO THIS ENTRIES WITH FIXED POINT VALUES OR WHAT KIND OF ENTRIES
0 件のコメント
採用された回答
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Sources についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!