How to change frequency of sine wave on FPGA IO334?

조회 수: 7 (최근 30일)
Mitali Murkar
Mitali Murkar 2021년 9월 30일
댓글: Mitali Murkar 2021년 11월 23일
I want to generate sine wave on FPGA and below is my model on IO334. I want to change the frequency of signal when HDL code generated is already on taget machine(speedgoat FPGA). How can I manipulate the frequency?

답변 (1개)

Bharath Venkataraman
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
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.
Mitali Murkar
Mitali Murkar 2021년 11월 23일
Just to clarify the attached model is generated model only from HDL workflow.

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

Community Treasure Hunt

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

Start Hunting!

Translated by