How to change frequency of sine wave on FPGA IO334?
3 views (last 30 days)
Show older comments

0 Comments
Answers (1)
Bharath Venkataraman
on 30 Sep 2021
Edited: Bharath Venkataraman
on 30 Sep 2021
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 Comments
See Also
Categories
Find more on HDL Code Generation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!