Minimize use of variables
Specify whether to minimize use of variables
Since R2020b
Model Configuration Pane: Global Settings / Coding standards
Description
Specify whether to minimize use of variables. This check corresponds to CGSL-2.G of the Industry standard guidelines.
Dependencies
To select the Minimize use of variables check box, set the HDL coding standard parameter to Industry
.
Settings
off
(default) | on
Default: Off
on
Minimize use of variables.
off
Do not minimize use of variables.
Tips
To set this property:
Create an HDL coding standard customization object.
cso = hdlcoder.CodingStandard('Industry');
Set the
MinimizeVariableUsage
property of the HDL coding standard customization object.For example, to minimize use of variables, enter:
cso.MinimizeVariableUsage.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:
MinimizeVariableUsage property of
hdlcoder.CodingStandard object |
Type: character vector |
Values: 'on' | 'off' |
Default: 'off' |
Version History
Introduced in R2020b