Contenu principal

Algorithm Design for HLS

R2026b
Supported MATLAB® syntax and functions, best practices

Use your MATLAB algorithm to generate High-Level Synthesis (HLS) code that you can efficiently deploy on hardware. It is important that you use hardware modeling best practices and that you use only the supported MATLAB syntax and functions.

The MATLAB functions and language syntax supported for High-Level Synthesis code generation are available on this page. If your MATLAB algorithm uses an unsupported function, you can generate code by replacing the function with a lookup table approximation. See Replace a Function with a Lookup Table from the Command Line.

You can write MATLAB code to model state machines and implement hardware elements such as counters and RAM for High-Level Synthesis (HLS) code generation. When authoring the code, follow for loop best practices and guidelines to write efficient MATLAB code to generate HLS code.

Topics

Supported MATLAB Functions and Data Types

Best Practices

Basic Hardware Modeling