Main Content

Show passing rules in coding standard report

Filter the coding standard report so passing rules do not appear

Since R2020b

Model Configuration Pane: Global Settings / Coding standards

Description

Specify whether to filter the coding standard report such that the passing rules do not appear. By default, the report displays pass, errors, warnings, messages, and lists the corresponding rules.

Dependencies

To clear the Report options check box, set the HDL coding standard parameter to Industry.

Settings

off (default) | on

Default: Off

on

Show all rules in the report including the messages and passing rules.

off

Shows rules with errors or warnings. The code generator filters out messages and passing rules from the report.

Tips

To set this property:

  1. Create an HDL coding standard customization object.

    cso = hdlcoder.CodingStandard('Industry');

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

    For example, to omit passing rules from the report, enter:

    cso.ShowPassingRules.enable = false;

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

Version History

Introduced in R2020b