主要内容

编程工作流

用于代码生成和配置的命令行函数以及使用 HDL 工作流脚本执行端到端工作流

在命令行中,您可以使用 makehdl 函数为 Simulink® 模型生成 HDL 代码。如果要将生成的代码部署到目标 FPGA 设备,可以使用 HDL 工作流顾问。您可以将工作流设置导出到脚本,然后在命令行中运行工作流。要了解详细信息,请参阅Run HDL Workflow with a Script

hdlcoder.WorkflowConfigConfigure HDL code generation and deployment workflows
hdlcoder.TimingGeneratorBase class to implement custom tool and device support for critical path estimation reporting (自 R2024a 起)

函数

全部展开

makehdlGenerate HDL RTL code from model, subsystem, or model reference
makehdltbGenerate HDL test bench from model or subsystem
hdladvisorDisplay HDL Workflow Advisor
hdlcoder.runWorkflowRun HDL code generation and deployment workflow
exportGenerate MATLAB script that recreates the workflow configuration
setAllTasksEnable all tasks in workflow
clearAllTasksDisable all tasks in workflow
validateCheck property values in HDL Workflow CLI configuration object
hdlsetupSet model configuration parameters for HDL code generation
hdlsetuptoolpathSet up system environment to access FPGA synthesis software
hdlset_paramSet HDL-related parameters at model or block level
hdlget_paramReturn value of specified HDL block-level parameter for specified block
hdlsaveparamsSave nondefault block- and model-level HDL parameters
hdlrestoreparamsRestore block- and model-level HDL parameters to model
hdldispmdlparamsDisplay HDL model parameters with nondefault values
hdldispblkparamsDisplay HDL block parameters with nondefault values
hdlcleanupClear all HDL code generation states (自 R2021a 起)
genhdltdbGenerate timing databases for specified target device, device speed grade, and synthesis tool (自 R2021a 起)

主题

使用命令行界面

使用 HDL 工作流脚本

HDL 模块属性