how to convert matlab code in VHDL ? which tool boxes to download?

3 views (last 30 days)
how to convert MATLAB code in VHDL ? which tool boxes to download?

Accepted Answer

Kiran Kintali
Kiran Kintali on 3 Dec 2021
You need to partition the MATLAB code into design and testbench files and create a HDL Coder project.
Try a sample MATLAB to HDL example
mlhdlc_demo_setup('heq')
  1 Comment
Trushita Chaware
Trushita Chaware on 7 Dec 2021
Yes Thanks. For using HDL coder, do weneed to write function for executing?
Also it is asking for some compiler to download and visit to site http://www.mathworks.com/support/compilers.html.
Is it? and which compiler I should download.

Sign in to comment.

More Answers (2)

Harikrishnan Balachandran Nair
Hi,
You can use the HDLCoder toolbox to convert your Matlab Code to required HDL Code.
HDL CoderTM generates portable, synthesizable Verilog® and VHDL® code from MATLAB® functions, Simulink® models, and Stateflow® charts. The generated HDL code can be used for FPGA programming or ASIC prototyping and design.

Trushita Chaware
Trushita Chaware on 3 Dec 2021
Yes Thanks. For using HDL coder, do weneed to write function for executing?
Also it is asking for some compiler to download and visit to site http://www.mathworks.com/support/compilers.html.
Is it? and which compiler I should download.

Tags

Community Treasure Hunt

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

Start Hunting!