Code Generation
You can generate High-Level Synthesis (HLS) code from MATLAB code by using the HDL Coder™ app. The HDL Workflow Advisor generates HLS code and synthesize the generated code by using the synthesis tools.
Apps
| HDL Coder | Generate HDL and High-Level Synthesis (HLS) code from MATLAB code |
Tools
| Workflow Advisor | Generate synthesizable HLS code and test benches from MATLAB code (Since R2022a) |
Functions
codegen | Generate HDL or High-Level Synthesis (HLS) code from MATLAB code |
coder.config | Create HDL Coder code generation configuration objects |
hdlsetuphlstoolpath | Set up system environment to access High-Level Synthesis (HLS) software (Since R2022a) |
Objects
coder.HdlConfig | HDL codegen configuration object |
Model Settings
Topics
- Workflows in HDL Workflow Advisor
Learn about the HDL Workflow Advisor and various workflows you can choose and platforms you can target.
- Specify Properties of Entry-Point Function Inputs
Specify input types so that the code generator can determine the types of all variables.
- MATLAB to HLS Code Generation Options
Describes MATLAB to HLS workflow.
- HLS Code Generation Report
High-Level Synthesis (HLS) code generation report.
- Support MATLAB Math Functions for Xilinx Vitis HLS
Support mathematical functions with floating-point types for Xilinx Vitis HLS. (Since R2026a)
- Call Custom HLS Code from the Generated HLS Code
Integrate C/C++ code with MATLAB code intended for code generation.
- Array Layouts for HLS Code Generation
Generate HLS code in row-major or column-major array layouts.

