Is there a way to convert verilog (.v) codes to Simulink model?

25 views (last 30 days)
How to convert multuple verilog files into Simulink model without getting any clock inference error?

Accepted Answer

Pranav Verma
Pranav Verma on 16 Feb 2021
Hi Navid,
You can use importhdl function in MATLAB to import the verilog code and generate the Simulink model out of it. Please make sure that the input HDL files should contain constructs that are supported by HDL import. Here are all the constructs supported by HDL import.
Thanks
  1 Comment
Stelios Papaharalabos
Stelios Papaharalabos on 7 Nov 2022
Hello Pravan,
I'm trying to run the importhdl function but matlab says "Undefined function or variable 'importhdl'.".
I do have the HDL Coder toolboox. Could you please help to resolve this issue?
Thanks

Sign in to comment.

More Answers (0)

Categories

Find more on Code Generation in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!