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