How can I control block parameter value by input port at Altera DE2-115 FPGA ?

I am using HDL workflow advisor in MATLAB 2014a to generate code for Altera DE2-115 FPGA. I want to change certain block parameters by some switches on the board, for example I want to change the parameter 'frequency' of sine block depending on the a signal that comes to the FPGA. Is there any way to do this? If yes, please help. I want the answer to be in very vivid steps to follow!!!

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2015년 7월 9일
편집: Azzi Abdelmalek 2015년 7월 9일
You can create your own sine block
In this figure, the frequency is generated by a Constant block, in your case it depends on your signals

댓글 수: 1

The problem is that the clock is not supported by HDL coder. To check which blocks are supported by HDL coder you can type hdllib in the command window.

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

질문:

2015년 7월 9일

댓글:

2015년 7월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by