There are several rules that enforce alignment of identifiers in group of lines. Some of the configurations are available in all keyword alignment rules, while others are rule specific.
There are several options to these rules:
Option | Values | Default | Description |
---|---|---|---|
compact_alignment |
yes , no |
yes |
|
blank_line_ends_group |
yes , no |
yes |
|
comment_line_ends_group |
yes , no |
yes |
|
The options can be combined to align identifiers.
This is an example of how to configure these options.
rule :
architecture_029:
compact_alignment : 'yes'
blank_line_ends_group : 'no'
comment_line_ends_group: 'no'
The following code snippet is used in the following examples:
-- Control signals signal wr_en : std_logic; signal rd_en : std_logic; -- Status signals signal wr_full : std_logic; signal rd_full : std_logic; signal wr_empty : std_logic; signal rd_empty : std_logic;
-- Control signals signal wr_en : std_logic; signal rd_en : std_logic; -- Status signals signal wr_full : std_logic; signal rd_full : std_logic; signal wr_empty : std_logic; signal rd_empty : std_logic;
-- Control signals signal wr_en : std_logic; signal rd_en : std_logic; -- Status signals signal wr_full : std_logic; signal rd_full : std_logic; signal wr_empty : std_logic; signal rd_empty : std_logic;
-- Control signals signal wr_en : std_logic; signal rd_en : std_logic; -- Status signals signal wr_full : std_logic; signal rd_full : std_logic; signal wr_empty : std_logic; signal rd_empty : std_logic;