These parameters belong to the RTL description rules section of the Coding standards tab of the HDL Code Generation > Global Settings pane of the Configuration Parameters dialog box. Use these parameters to customize RTL description rules for clock enable and reset signals that are specified by the Industry standard guidelines.
Specify whether to check for clock enable signals in the generated code. This check corresponds to CGSL-2.C.C.4 of the Industry standard guidelines.
Default: Off
Minimize clock enables during code generation, then check for clock enable signals in the generated code.
Do not check for clock enable signals in the generated code.
To select the Check for clock enable signals check box,
set the HDL coding standard parameter to
Industry
.
To set this property:
Create an HDL coding standard customization object.
cso = hdlcoder.CodingStandard('Industry');
Set the MinimizeClockEnableCheck
property of
the HDL coding standard customization object.
For example, to minimize clock enables and check for clock enable signals in the generated code, enter:
cso.MinimizeClockEnableCheck.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);
Specify whether to check for reset signals in the generated code. This check corresponds to CGSL-2.C.C.5 of the Industry standard guidelines.
Default: Off
Minimize reset signals in the generated code, then check for reset signals after code generation.
Do not check for reset signals in the generated code.
To select the Detect usage of reset signals check box,
set the HDL coding standard parameter to
Industry
.
To set this property:
Create an HDL coding standard customization object.
cso = hdlcoder.CodingStandard('Industry');
Set the RemoveResetCheck
property of the HDL
coding standard customization object.
For example, to check for reset signals, enter:
cso.RemoveResetCheck.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);
Specify whether to check for asynchronous reset signals in the generated code. This check corresponds to CGSL-2.C.C.6 of the Industry standard guidelines.
Default: Off
Check for asynchronous reset signals in the generated code.
Do not check for asynchronous reset signals in the generated code.
To clear the Detect usage of asynchronous reset signals
check box, set the HDL coding standard parameter to
Industry
.
To set this property:
Create an HDL coding standard customization object.
cso = hdlcoder.CodingStandard('Industry');
Set the AsynchronousResetCheck
property of
the HDL coding standard customization object.
For example, to minimize use of variables, enter:
cso.AsynchronousResetCheck.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);