How to change frequency of sine wave on FPGA IO334?
2 ビュー (過去 30 日間)
古いコメントを表示

0 件のコメント
回答 (1 件)
Bharath Venkataraman
2021 年 9 月 30 日
編集済み: Bharath Venkataraman
2021 年 9 月 30 日
One way to do this is by using the NCO HDL Optimized block and change the phase increment. Here is an example of how to use the block to generate a sine wave.
The other option is to have the build a counter using the delay and add blocks. The step size of the counter will need to be programmable, decided by an input port. Changing this step will change the input to the sine block, hence changing the frequency of the sinve wave emitted.
11 件のコメント
Bharath Venkataraman
2021 年 11 月 23 日
Could you generate the generated model with HDL code generation as well? That will help make sure that the functionality is correct.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!