Speed and Area Optimization
For your target hardware, generate High-Level Synthesis code from a MATLAB® function that meets timing and area requirements by using speed and area optimizations. Area optimizations reduce resource usage of your design. Speed optimizations improve the timing of your design on the target hardware so that your design runs at higher frequencies by optimizing the critical path.
Classes
hdl.WorkingSet | Working set object that generates working sets form input image for HLS code generation (Since R2023a) |
Functions
coder.hdl.arraydistance | Specify minimum or maximum array distance inside pipelined
for-loop (Since R2022b) |
coder.hdl.constrainlatency | Specify the minimum and maximum acceptable hardware latency for a MATLAB function for High-Level Synthesis (HLS) code generation (Since R2022a) |
coder.hdl.literaltext | Define pragma using literal text (Since R2024b) |
coder.hdl.loopspec | Unroll or stream loops in generated HDL and High-Level Synthesis (HLS) code |
coder.hdl.stable | Define stable inputs in MATLAB design (Since R2022b) |
coder.inline | Control inlining of current function in generated code |
coder.hdl.interface | Map input or output variable to interface in generated HLS code (Since R2023a) |
getWorkingSet | Get working set from the input image at specified position (Since R2023a) |
nextWorkingSet | Get next working set from input image from last pixel position (Since R2024a) |
hasNextWorkingSet | Check whether another working set can be constructed from input image (Since R2024a) |
currentWorkingSet | Get current working set or the last generated working set from input image (Since R2024a) |
Topics
- Map Persistent Variables and Persistent Arrays to RAM
MATLAB persistent variable and persistent array variable language support language support for HDL and High-Level Synthesis (HLS) code generation.
- Control Inlining of MATLAB Functions in Generated HLS Code
Control inlining of MATLAB functions locally and globally in the generated HLS code.
- Best Practices for Inlining MATLAB Functions for HLS Code Generation
Function inlining best practices for HLS code generation.
- Pipelining of for-Loops
Pipelining allows concurrent execution of multiple iterations.
- Resource Sharing at Operator and Function Level to Optimize Area
Share resources during HLS code generation to optimize hardware area.

