Guidelines for Writing MATLAB Code to Generate Efficient HDL and HLS Code - MATLAB & Simulink (original) (raw)

Main Content

MATLAB Design Requirements for HDL and HLS Code Generation

When you generate HDL or High-Level Synthesis (HLS) code from your MATLAB® design, you are converting an algorithm into an architecture that must meet hardware area and speed requirements.

Your MATLAB design has these requirements:

If you are generating code at the command line, verify your code readiness for code generation by using this command:

coder.screener('design_function_name')

If you use the HDL Workflow Advisor to generate code, this check runs automatically.

For a MATLAB language support reference, including supported functions from Fixed-Point Designer™, see Functions Supported for HDL and HLS Code Generation.

Guidelines for Writing MATLAB Code

For more efficient and faster HDL and HLS code generation, design your MATLAB code by using these best practices:

Additional guidelines for efficient HLS code generation:

See Also

Apps

Objects

Functions

Topics