使用工作流顾问生成代码
使用工作流顾问从 MATLAB® 代码生成 HDL 代码
您可使用 HDL Coder 启动工作流顾问,生成 HDL 代码并在目标设备上综合您的 MATLAB 算法。有关示例,请参阅Basic HDL Code Generation and FPGA Synthesis from MATLAB。HDL 工作流顾问在 Simulink® Online™ 中不可用。
App
HDL Coder | Generate HDL and High-Level Synthesis (HLS) code from MATLAB code |
函数
codegen | Generate HDL or High-Level Synthesis (HLS) code from MATLAB code |
coder.config | Create HDL Coder code generation configuration objects |
hdlcoder.CodingStandard | Create HDL coding standard customization object |
hdlsetuptoolpath | Set up system environment to access FPGA synthesis software |
对象
coder.HdlConfig | HDL codegen configuration object |
主题
- Workflows in HDL Workflow Advisor
Learn about the HDL Workflow Advisor and various workflows you can choose and platforms you can target.
- HDL Workflow Advisor
Overview of the HDL Workflow Advisor.
- Create and Set Up Your Project
At the MATLAB command line, enter:
- Generate Instantiable Code for Functions
You can use the Generate instantiable code for functions option to generate a VHDL®
entity
, or Verilog® or SystemVerilogmodule
for each function. - Edit Configuration Parameters for HDL Coder
Edit HDL Coder configuration object parameters interactively.