Configuring Simple Multiline Structure Rules

There are rules which will check the structure of simple multiline expressions and conditions.

There are several options to these rules:

Method

Values

Default

Description

new_line_after_assign

yes, no, ignore

yes

  • yes = Adds a carriage return (alias “new line”) after the assignment operator.

  • no = Removes a carriage return (alias “new line”) after the assignment operator.

  • ignore = Ignores any formatting after the assignment operator.

ignore_single_line

yes, no

yes

  • yes = Ignore single line expressions.

  • no = Apply rules to single line expressions.

This is an example of how to configure these options.

rule :
  concurrent_011:
     new_line_after_assign : 'yes'
     ignore_single_line : 'no'

The following code snippet will be used in the following examples:

wr_en <= '1' when fifo_full = '0' else
         '0';

rd_en <=
         '1' when fifo_empty = '0' else
         '0';

Note

In the examples below, indenting is performed by a different rule.

Example: new_line_after_assign set to yes

Code after the assignment operator <= will be moved to the next line.

wr_en <=
         '1' when fifo_full = '0' else
         '0';

rd_en <=
         '1' when fifo_empty = '0' else
         '0';

Example: new_line_after_assign set to no

Code after the assignment operator <= will be enforced.

wr_en <= '1' when fifo_full = '0' else
         '0';

rd_en <= '1' when fifo_empty = '0' else
         '0';

Rules Enforcing Multiline Structure Rules