Forum Discussion

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

how to convert Simulink model to VHDL, ,Matlab function using VHDL

Hope all is well, i am just wondering if any one has ever converted simulink model to VHDL codes, or has ever been able to write a matlab function using VHDL rather than c or c++

3 Replies

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

    Tools like DSPBuilder(Altera) or sysgen(Xilinx) hdl coder(Mathworks) do the conversion and not anybody can do that.

    Writing hdl for matlab function is not supported by matlab.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    using HDL coder you can write M code in a similar style to HDL - but then why not just write the HDL?

    Converting simulink models to HDL is non trivial because only a subset of the simulink blocks are supported for code generation, and you will have compilation and timing problems if you do not create the simulink models in the correct way.