HDL coding standard
Enable the Industry coding standard guidelines
Model Configuration Pane: Global Settings / Coding standards
Description
Specify whether to enable the Industry coding standard guidelines that the generated HDL code must conform to.
Dependencies
When you set the HDLCodingStandard to Industry
, configuration parameters such as PackagePostfix
, MinimizeClockEnables
, MinimizeGlobalResets
, and InstancePrefix
are ignored.
Settings
None
(default) | Industry
Default: None
None
Generate generic synthesizable HDL code. The generated code need not conform with the Industry standard guidelines.
Industry
Generate synthesizable HDL code that follows the industry standard rules supported by HDL Coder™. When you specify the
Industry
setting, the code generator enables the Report options check box and rules that you can customize in the Coding Standards tab.When you specify the
Industry
setting and generate code, HDL Coder generates a standards compliance report. The report displays errors, warnings, messages, and lists the corresponding rules. To filter the report such that the passing rules do not appear, clear the Report options check box.
Tips
To set this property, use the functions hdlset_param
or makehdl
. To view the property value, use
the function hdlget_param
.
For example, you can enable the Industry standard guidelines compliance for the symmetric_fir
subsystem inside the sfir_fixed
model using either of these methods.
Use
hdlset_param
to set the parameter on the model. Then generate HDL code usingmakehdl
.hdlset_param('sfir_fixed','HDLCodingStandard','Industry') makehdl('sfir_fixed/symmetric_fir')
Pass the property as an argument to the
makehdl
function.makehdl('sfir_fixed/symmetric_fir','HDLCodingStandard','Industry')
Recommended Settings
No recommended settings.
Programmatic Use
Parameter: HDLCodingStandard |
Type: character vector |
Value: 'None' | 'Industry' |
Default: 'None' |
Version History
Introduced in R2013a