Main Content

Check for duplicate names

Check for duplicate names in the design

Since R2020b

Model Configuration Pane: Global Settings / Coding standards


Specify whether to check for duplicate names in the design. This check corresponds to CGSL-1.A.A.5 of the Industry standard guidelines.


To clear the Check for duplicate names check box, set the HDL coding standard parameter to Industry.


on (default) | off

Default: On


Check for duplicate names.


Do not check for duplicate names.


To set this property:

  1. Create an HDL coding standard customization object.

    cso = hdlcoder.CodingStandard('Industry');

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

    For example, to disable the check for duplicate names, enter:

    cso.DetectDuplicateNamesCheck.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', ...

Recommended Settings

No recommended settings.

Programmatic Use

Parameter: DetectDuplicateNamesCheck property of hdlcoder.CodingStandard object
Type: character vector
Values:'on' | 'off'
Default: | 'off'

Version History

Introduced in R2020b