Check for assignments to the same variable in multiple cascaded control regions
Specify whether to check if there are assignments to same variable in multiple cascaded control regions
Since R2021b
Model Configuration Pane: Global Settings / Coding standards
Description
Specify whether to check if there are assignments to the same variable in multiple cascaded control regions within the same process block. This check corresponds to CGSL-2.F.B.1.a of the industry standard guidelines.
Settings
off
(default) | on
Default: Off
on
Check for assignments to the same variable in multiple cascaded control regions.
off
Do not check for assignments to the same variable in multiple cascaded control regions.
Tips
To set this property:
Create an HDL coding standard customization object.
cso = hdlcoder.CodingStandard('Industry');
Set the
CascadedConditionalAssignmentCheck
property of the HDL coding standard customization object.cso.CascadedConditionalAssignmentCheck.enable = true;
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:
CascadedConditionalAssignmentCheck property of
hdlcoder.CodingStandard object |
Type: character vector |
Values: 'on' | 'off' |
Default: 'off' |
Version History
Introduced in R2021b