Check for initial statements that set RAM initial values
Specify whether to check for initial statements that set RAM initial values
Since R2020b
Model Configuration Pane: Global Settings / Coding standards
Description
Specify whether to check for initial statements that set RAM initial values. This check corresponds to CGSL-2.C.D.1 of the Industry standard guidelines.
Dependencies
To clear the Check for initial statements that set RAM initial values check box, set the HDL coding standard parameter to Industry
.
Settings
on
(default) | off
Default: On
on
Check for initial statements that set RAM initial values
off
Do not check for initial statements that set RAM initial values.
Tips
To set this property:
Create an HDL coding standard customization object.
cso = hdlcoder.CodingStandard('Industry');
Set the
InitialStatements
property of the HDL coding standard customization object.For example, to disable the check for initial statements that set RAM initial values, enter:
cso.InitialStatements.enable = false;
Set the
HDLCodingStandardCustomizations
property to the HDL coding standard customization object, specify the coding standard, and generate code.For example, if your DUT is
sfir_fixed/symmetric_fir
, enter:makehdl('sfir_fixed/symmetric_fir', 'HDLCodingStandard','Industry', ... 'HDLCodingStandardCustomizations',cso);
Recommended Settings
No recommended settings.
Programmatic Use
Parameter:
InitialStatements property of
hdlcoder.CodingStandard object |
Type: character vector |
Values: 'on' | 'off' |
Default: 'on' |
Version History
Introduced in R2020b