编码标准与报告
编码标准报告、lint 工具脚本及编码标准规则列表
行业编码标准建议使用特定 HDL 编码规范。HDL Coder™ 生成遵循行业标准规则的代码,并生成报告以显示生成的 HDL 代码符合行业编码标准的程度。
HDL Coder 检查 MATLAB® 算法或 Simulink® 模型是否符合 HDL 编码标准规则。要修复与这些规则相关的错误或警告,请更新您的模型设计。您可自定义部分编码标准规则。
App
| HDL Coder | Generate HDL and High-Level Synthesis (HLS) code from MATLAB code |
函数
hdlcoder.CodingStandard | Create HDL coding standard customization object |
属性
| HDL Coding Standard Customization Properties | Customize HDL coding standard |
主题
报告
- HDL Coding Standards
Learn about HDL coding standards and rules. - HDL Coding Standard Report
What an HDL coding standard report is, the rule summary, and how you can fix warnings or errors related to rule violations. - Generate an HDL Coding Standard Report from MATLAB
Generate a coding standard report for a model. - Generate an HDL Lint Tool Script
Generate lint tool scripts and integrate with third-party tools. - Code Generation Reports
View code generation results.
HDL 编码标准规则参考
- Basic Coding Practices
A list of rules related to basic coding practices, the rule description, and how you can fix warnings or errors resulting from rule violations. - RTL Description Rules and Checks
A list of rules related to RTL description techniques, the rule description, and how you can fix warnings or errors resulting from rule violations. - RTL Design Methodology Guidelines
A list of rules related to RTL design methodology, the rule description, and how you can fix warnings or errors resulting from rule violations.
编码标准注意事项
- Cascaded Conditional Region Variable Assignments
Pass and fail examples of HDL code patterns for the check for the presence of assignments to the same variable in multiple cascaded conditional regions.