Simulink and altera DSP Builder library

4 views (last 30 days)
Elite
Elite on 16 Nov 2011
Hi Sir,
I write you about blocks compatibility problem between simulink and altera DSP Bluider. I try to program the Altera DE2 Demoboard via Matlab-Simulink.
1)I would like to turn on/off a led via simulink pulse generator block or constant block (0 or 1). Compilation (DSP compiler) and simulations succeed but differ from D2Eboard implementation results. In fact, simulink block values has not effect on the DE2Board working (no change) If I use only altera DSP Builder blockset (constant for example), the implementation is right. How can i do to use simulink blockset?
2)An other problem is the the demoboard working frequency. The use of "clock" altera block has not effect on the D2EBoard working frequency.
3)Is there a relation between time simulation, time base and D2EBoard frenquency?
Could you help me please?
Thank you.

Answers (1)

Kaustubha Govind
Kaustubha Govind on 23 Nov 2011
1) As far as I know, Simulink HDL Coder does not generate code specific to boards (such as to control an LED). What block did you use to represent the LED in your Simulink model?
2 and 3) Sorry, I don't have any experience with the DSP Builder library - Altera documentation or Support may be able to answer this better.

Community Treasure Hunt

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

Start Hunting!