使用 MATLAB 代码进行硬件建模
用于高级综合代码生成的 MATLAB® 设计和测试平台规范
您可以编写 MATLAB 代码来进行状态机建模,并实现计数器、RAM 等硬件元素以生成高级综合 (HLS) 代码。在编写代码时,遵循 for 循环最佳做法和规范以编写高效的 MATLAB 代码来生成 HLS 代码。
主题
- 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.