Check for non-integer constants
Specify whether to check for non-integer constants
Model Configuration Pane: Global Settings / Coding standards
Description
Specify whether to check for non-integer constants. This check corresponds to CGSL-3.B.D.1 of the Industry standard guidelines.
Dependencies
To clear the Check for non-integer constants check box, set the HDL coding standard parameter to Industry.
Settings
on (default) | offDefault: On
onCheck for non-integer constants.
offDo not check for non-integer constants.
Tips
To set this property:
Create an HDL coding standard customization object.
cso = hdlcoder.CodingStandard('Industry');Set the
NonIntegerTypesproperty of the HDL coding standard customization object.For example, to disable the check for non-integer constants, enter:
cso.NonIntegerTypes.enable = false;
Set the
HDLCodingStandardCustomizationsproperty 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:
NonIntegerTypes property of
hdlcoder.CodingStandard object |
| Type: character vector |
Values: 'on' | 'off' |
Default: 'on' |
Version History
Introduced in R2020b