Main Content

Detect usage of asynchronous reset signals

Specify whether to check for asynchronous reset signals in the generated code

Since R2020b

Model Configuration Pane: Global Settings / Coding standards

Description

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.

Dependencies

To clear the Detect usage of asynchronous reset signals check box, set the HDL coding standard parameter to Industry.

Settings

off (default) | on

Default: Off

on

Check for asynchronous reset signals in the generated code.

off

Do not check for asynchronous reset signals in the generated code.

Tips

To set this property:

  1. Create an HDL coding standard customization object.

    cso = hdlcoder.CodingStandard('Industry');

  2. Set the AsynchronousResetCheck property of the HDL coding standard customization object.

    For example, to minimize use of variables, enter:

    cso.AsynchronousResetCheck.enable = true;

  3. 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: AsynchronousResetCheck property of hdlcoder.CodingStandard object
Type: character vector
Values: 'on' | 'off'
Default: 'off'

Version History

Introduced in R2020b