Hardware Modeling with MATLAB Code
MATLAB® design and test bench guidelines for High-Level Synthesis code
generation
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
- Model a Counter for HDL and High-Level Synthesis Code Generation
To write MATLAB code that models hardware and is suitable for HDL and High-Level Synthesis (HLS) code generation, use this design pattern.
- Model a State Machine for HDL and High-Level Synthesis Code Generation
The following design pattern shows MATLAB examples of Mealy and Moore state machines which are suitable for HDL and High-Level Synthesis (HLS) code generation.