Forum Discussion

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

Can I do this in DSP Builder.

I have a turbo decoder written in VHDL and I have performed 'compile' in quartus II. Can I perform a simulation using Simulink, like import my VHDL code to simulink and make use of simulink tools to model encoder, AWGN channel, while using my vhdl code to decode and check the BER? This is like a test bench....

3 Replies

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

    there is an HDL Import block in DSP Builder that you might try. there are limitations on how it can be used which are covered in the User Guide.

    i think the Mathworks also has a solution which allows Simulink blocks to be sinks and sources for HDL which is simulated in the background using ModelSim. i haven't tried this but it sounds useful.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    I have tried cosimulation with Modelsim and Simulink and it works perfectly. It's a good solution. If you have questions about it don't hesitate.

    Best regards,

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

    Just in case you are still seeking a solution...

    DSP Builder HIL may meet your requirement. If your Quartus II project contains a single clock domain, the project can be imported in a HIL block, and you can test the Quartus II project using simulink simulation. Of course, you can use simulink stimuli and scopes in the simulation.