Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21611 Discussions

Simulink and Altera library compatibility

Altera_Forum
Honored Contributor II
1,030 Views

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.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
359 Views

1. you can't use Simulink blocks as stimulus in the FPGA hardware, you can only use DSP Builder blocks 

 

2. the DSP Builder clock block is to be set with the input oscillator frequency, not the desired frequency. you can use a PLL block in DSP Builder to synthesize other clock frequencies, but i would opt to do this in Quartus instead 

 

3. i think this is sort of answered above
0 Kudos
Reply