There are rules which will check for blank lines either above or below a line. These rules are designed to improve readability by separating code using blank lines.
There are several options to these rules:
Option | Values | Default | Description |
---|---|---|---|
style |
no_blank_line require_blank_line require_blank_line_unless_pragma |
Rule dependent |
|
This is an example of how to configure the options.
rule :
architecture_015:
style : require_blank_line
Warning
It is important to be aware these rules may conflict with rules that enforce rules on previous lines. This can occur when a below rule is applied and then on the next line a previous rule applies. Resolve any conflicts by changing the configuration of either rule.
The following code would fail with this option:
architecture rtl of fifo is
-- Comment
architecture rtl of fifo is
signal s_sig1 : std_logic;
The following code would pass with this option:
architecture rtl of fifo is
-- Comment
architecture rtl of fifo is
signal s_sig1 : std_logic;
The following code would fail with this option:
architecture rtl of fifo is
-- Comment
architecture rtl of fifo is
signal s_sig1 : std_logic;
The following code would pass with this option:
architecture rtl of fifo is
-- Comment
architecture rtl of fifo is
signal s_sig1 : std_logic;
The following code would fail with this option:
architecture rtl of fifo is
-- synthesis translate_off
architecture rtl of fifo is
signal s_sig1 : std_logic;
The following code would pass with this option:
architecture rtl of fifo is
-- synthesis translate_off
architecture rtl of fifo is
signal s_sig1 : std_logic;
- architecture_015
- architecture_016
- architecture_017
- architecture_018
- architecture_200
- block_201
- block_202
- block_203
- block_204
- block_205
- case_009
- case_010
- case_200
- component_016
- component_018
- constant_200
- context_023
- context_024
- context_025
- entity_016
- entity_200
- entity_202
- entity_203
- generate_003
- if_030
- instantiation_019
- loop_statement_201
- loop_statement_203
- package_011
- package_012
- package_body_201
- package_body_202
- package_body_203
- port_001
- port_map_200
- pragma_401
- pragma_403
- process_011
- process_021
- process_022
- process_023
- process_026
- process_027
- record_type_definition_200
- signal_200
- subprogram_body_201
- subprogram_body_202
- subprogram_body_203
- subprogram_body_204
- subprogram_body_205
- type_011
- type_200