Import HDL Code as Simulink Model
R2026bImport synthesizable HDL code into the Simulink modeling environment. When you run the
importhdl function, HDL import parses the input HDL
file and generates a Simulink model. When generating the model unconnected components that do
not directly contribute to the output are removed. The model visually represents
the HDL code in terms of functionality and behavior. You can compile and run the
model to verify the functionality of the HDL code.
Round-trip code generation with HDL import is not recommended. Do not use HDL import to import the HDL code that was previously generated from a Simulink model by using the HDL Coder™ software. The Simulink model that you create is typically at a higher abstraction level. The model generated by HDL import might be at a lower abstraction level. The HDL code you generate from this model might not be usable for production code.
To generate production HDL code, develop your algorithm by using Simulink blocks, MATLAB® code, or Stateflow® charts. Then, use HDL Coder to generate code.
Functions
importhdl | Import Verilog, SystemVerilog, or VHDL code and generate Simulink model |
Topics
- Import HDL Code and Generate Simulink Model
Import HDL code in a Simulink environment and generate Simulink model.
- Supported Verilog Constructs for HDL Import
Supported Verilog® constructs that you can import into the model-based design environment.
- Supported SystemVerilog Constructs for HDL Import
Supported SystemVerilog constructs that you can import into the model-based design environment.
- Supported VHDL Constructs When Generating Simulink Models from VHDL Code
Supported VHDL® constructs that you can import into the model-based design environment.
- Verilog Dataflow Modeling with HDL Import
Supported HDL dataflow patterns that you can use when importing the HDL code into the model-based design environment.
- Supported Synthesizable RTL Constructs and Keywords in HDL Coder
Supported Synthesizable VHDL and Verilog RTL Constructs and keywords in HDL Coder for code generation.
