Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

Simulink to FPGA implementation

Hi,

there is a way by which you can interface FPGA with your simulink so that you can put your input in to the block and the input get processed by the FPGA and oupput result is shown on the Simulink graph.

I have managed to make a 3 tap FIR filter in verilog. Now I would like to add this code in to one of the simulink block so that I could add input and output from that block and simulate the performance of my code using cyclone 2 DE1.

I am a beginner to FPGA world. I only read about this method but I have NO idea how to implement this... PLEASE can some one give me a step by step method...

4 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi

    I think you can do that (HIL-Tests) with altera dsp builder for Matlab/Simulink.

    But probably it is a bit oversized if you don't want to generate VHDL out of your simulink model. It's quite expensive if you don't want to use all features of it.

    Regards
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    thanks pillemann

    1.But how do I implement using DSPbuilder. I got the DSPbuilder with my cyclone 2 CD

    2.Also can't I do my implementation without DSP builder..... I have the code ready all I need to do assign my input output pins....I was trying to using the MIC-in and Line-out pins but can't fing the pin assignment I look everywhere :S
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Oh, didn't know that you already used the DSP Builder.

    I thought it was a general question wether there is a tool for it.

    Sorry but I never used it myself, so I am not really a help.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Use a "Altera simulink black-box block" and add your code to it.

    The use the block in a simulink model.