Main Content

RTL Design Rule Parameters

This section contains configuration parameters in the RTL design 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 check for presence of non-integer constants and the line wrap length in the generated HDL code.

Check for non-integer constants

Specify whether to check for non-integer constants. This check corresponds to CGSL-3.B.D.1 of the Industry standard guidelines.

Settings

Default: On

On

Check for non-integer constants.

Off

Do not check for non-integer constants.

Dependency

To clear the Check for non-integer constants check box, set the HDL coding standard parameter to Industry.

Command-Line Information

To set this property:

  1. Create an HDL coding standard customization object.

    cso = hdlcoder.CodingStandard('Industry');

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

    For example, to disable the check for non-integer constants, enter:

    cso.NonIntegerTypes.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);

See Also

Check line length

Specify whether to check line lengths in the generated HDL code. This check corresponds to CGSL-3.A.D.5 of the Industry standard guidelines.

Settings

Default: On

On

Check line length.

Maximum

Maximum number of characters in a line, specified as a positive integer. The default is 110.

Off

Do not check line length.

Dependency

To clear the Check line length check box, set the HDL coding standard parameter to Industry.

Command-Line Information

To set this property:

  1. Create an HDL coding standard customization object.

    cso = hdlcoder.CodingStandard('Industry');

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

    For example, to enable the check line length with a maximum character length of 80, enter:

    cso.HDLKeywordsLineLength.enable = true;
    cso.HDLKeywordsLineLength.length = 80;

  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);

See Also