引导式代码生成
使用“配置参数”对话框和 Simulink HDL 工作流顾问进行引导式代码生成
您可以通过 UI 使用 Simulink® 工具条中的 HDL 代码选项卡或“配置参数”对话框生成 Simulink 模型的 HDL 代码。在此对话框中,您可以指定各种 HDL 代码生成设置,包括基本文件夹、语言选择以及更高级优化参数。要了解如何从 HDL 代码选项卡生成 HDL 代码,请参阅Generate HDL Code from Simulink Model。
要将生成的代码部署到目标设备,请使用 Simulink HDL 工作流顾问。该顾问可运行端到端工作流,以检查 HDL 兼容性并将生成的代码部署到目标设备。HDL 工作流顾问在 Simulink Online™ 中不可用。
函数
hdladvisor | Display HDL Workflow Advisor |
hdlsetup | Set model configuration parameters for HDL code generation |
hdlsetuptoolpath | Set up system environment to access FPGA synthesis software |
检查
模型设置
主题
使用 HDL 工作流顾问
- Workflows in HDL Workflow Advisor
Learn about the HDL Workflow Advisor and various workflows you can choose and platforms you can target. - Getting Started with the HDL Workflow Advisor
Learn the basics of the HDL Workflow Advisor and how to run various tasks. - HDL Workflow Advisor Tasks
Describes HDL Workflow Advisor tasks. - Generate Code and Synthesize on FPGA Using HDL Workflow Advisor
The HDL Workflow Advisor guides you through the stages of generating HDL code for a Simulink subsystem and the FPGA design process, such as: - Generate RTL Lint Check Report Using HDL Workflow Advisor and Synopsys SpyGlass Lint Tool
Generate RTL lint check report using HDL Workflow Advisor and SpyGlass Lint tool. - Generate HDL Code and Perform Synthesis Using Cadence Genus on ASIC Devices
Generate HDL code and perform synthesis using HDL Workflow Advisor and Cadence Genus on ASIC devices.
使用“模型配置参数”对话框
- Set HDL Code Generation Options
Access HDL options in the Configuration Parameters dialog box, Simulink Toolstrip, or HDL Block Properties window. - Generate HDL Code from Simulink Model Using Configuration Parameters
Use the Configuration Parameters dialog box to generate HDL code for your Simulink model. - Obfuscate Generated HDL Code from Simulink Models
Learn how to obfuscate the generated VHDL®, Verilog® or SystemVerilog code from your model.
模型配置参数
- Model Configuration Parameters: HDL Code Generation
Use this pane to set code generation parameters, initiate compatibility checking, and generate HDL code for your design. - Model Configuration Parameters: Target
Use this pane to specify the target hardware settings. - Model Configuration Parameters: Optimization
Use this pane to improve area and timing. - Model Configuration Parameters: Floating Point
Use this pane to specify floating-point IP libraries. - Model Configuration Parameters: Global Settings
Use this pane to specify detailed characteristics of the generated code. - Model Configuration Parameters: Report
Use this pane to specify the generation of reports. - Model Configuration Parameters: Test Bench
Use this pane to determine characteristics of generated test bench code. - Model Configuration Parameters: EDA Tool Scripts
Use this pane to control generation of script files for third-party HDL simulation and synthesis tools.