This rule checks the indent of the generate declaration.
Violation
architecture rtl of fifo is
begin
ram_array : for i in 0 to 7 generate
ram_array : for i in 0 to 7 generate
Fix
architecture rtl of fifo is
begin
ram_array : for i in 0 to 7 generate
ram_array : for i in 0 to 7 generate
|phase_2| |error| |whitespace|
This rule checks for a single space between the label and the colon.
|configuring_whitespace_rules_link|
Violation
ram_array: for i in 0 to 7 generate
Fix
ram_array : for i in 0 to 7 generate
|phase_3| |error| |blank_line|
This rule checks for a blank line below the end generate keywords.
|configuring_blank_lines_link|
Violation
end generate ram_array;
wr_en <= '1';
Fix
end generate ram_array;
wr_en <= '1';
|phase_3| |error| |blank_line|
This rule checks for blank lines or comments before the generate label.
|configuring_previous_line_rules_link|
Violation
wr_en <= '1';
ram_array : for i in 0 to 7 generate
Fix
wr_en <= '1';
ram_array : for i in 0 to 7 generate
|phase_6| |error| |case| |case_label|
This rule checks the generate label has proper case.
|configuring_uppercase_and_lowercase_rules_link|
Violation
RAM_ARRAY: for i in 0 to 7 generate
Fix
ram_array: for i in 0 to 7 generate
This rule checks the indent of the begin keyword.
Violation
ram_array : for i in 0 to 7 generate
begin
Fix
ram_array : for i in 0 to 7 generate
begin
This rule checks the indent of the end generate keyword.
Violation
ram_array : for i in 0 to 7 generate
begin
end generate ram_array;
Fix
ram_array : for i in 0 to 7 generate
begin
end generate ram_array;
|phase_2| |error| |whitespace|
This rule checks for a single space after the end keyword.
|configuring_whitespace_rules_link|
Violation
end generate ram_array;
Fix
end generate ram_array;
|phase_6| |error| |case| |case_keyword|
This rule checks the end keyword has proper case.
|configuring_uppercase_and_lowercase_rules_link|
Violation
END generate ram_array;
Fix
end generate ram_array;
|phase_6| |error| |case| |case_keyword|
This rule checks the generate keyword has the proper case in the end generate line.
|configuring_uppercase_and_lowercase_rules_link|
Violation
end GENERATE ram_array;
Fix
end generate ram_array;
|phase_1| |error| |structure| |structure_optional|
This rule checks the end generate label on for, case and if generate statements.
|configuring_optional_items_link|
Violation
ram_array : for i in 0 to 127 generate
end generate;
Fix
ram_array : for i in 0 to 127 generate
end generate ram_array;
|phase_6| |error| |case| |case_label|
This rule checks the end generate label has proper case.
|configuring_uppercase_and_lowercase_rules_link|
Violation
end generate RAM_ARRAY;
Fix
end generate ram_array;
|phase_2| |error| |whitespace|
This rule checks for a single space after the generate keyword and the label in the end generate keywords.
|configuring_whitespace_rules_link|
Violation
end generate ram_array;
Fix
end generate ram_array;
|phase_2| |error| |whitespace|
This rule checks for a single space between the colon and the for keyword.
|configuring_whitespace_rules_link|
Violation
ram_array :for i in 0 to 7 generate
ram_array : for i in 0 to 7 generate
Fix
ram_array : for i in 0 to 7 generate
ram_array : for i in 0 to 7 generate
This rule checks the generate label and the generate keyword are on the same line. Keeping the label and generate on the same line reduces excessive indenting.
Violation
ram_array :
for i in 0 to 7 generate
Fix
ram_array : for i in 0 to 7 generate
This rule checks the indent of the when keyword in generate case statements.
Violation
GEN_LABEL : case condition generate
when 0 =>
when 1 =>
when 2 =>
Fix
GEN_LABEL : case condition generate
when 0 =>
when 1 =>
when 2 =>
|phase_7| |disabled| |error| |naming|
This rule checks for valid prefixes on generate statement labels. The default prefix is gen_.
|configuring_prefix_and_suffix_rules_link|
Violation
label : case condition generate
Fix
gen_label : case condition generate
This rule checks the indent of the end keyword in the generate statement body.
Violation
ram_array : for i in 0 to 7 generate
begin
end;
end generate;
Fix
ram_array : for i in 0 to 7 generate
begin
end;
end generate;
This rule checks the end keyword is on its own line.
Violation
ram_array : for i in 0 to 7 generate
a <= b; end generate;
Fix
ram_array : for i in 0 to 7 generate
a <= b;
end generate;
This rule checks the identifiers for all declarations are aligned in the generate declarative part in for generate statements.
|configuring_identifier_alignment_rules_link|
Violation
variable var1 : natural;
constant c_period : time;
Fix
variable var1 : natural;
constant c_period : time;
This rule checks the colons are in the same column for all declarations in the generate declarative part in for generate statements.
|configuring_keyword_alignment_rules_link|
Violation
signal sig1: natural;
variable var2 : natural;
constant c_period : time;
file my_test_input : my_file_type;
Fix
signal sig1 : natural;
variable var2 : natural;
constant c_period : time;
file my_test_input : my_file_type;
This rule checks the identifiers for all declarations are aligned in the generate declarative part in if generate statements.
|configuring_identifier_alignment_rules_link|
Violation
variable var1 : natural;
constant c_period : time;
Fix
variable var1 : natural;
constant c_period : time;
This rule checks the colons are in the same column for all declarations in the generate declarative part in if generate statements.
|configuring_keyword_alignment_rules_link|
Violation
signal sig1: natural;
variable var2 : natural;
constant c_period : time;
file my_test_input : my_file_type;
Fix
signal sig1 : natural;
variable var2 : natural;
constant c_period : time;
file my_test_input : my_file_type;
This rule checks the identifiers for all declarations are aligned in the generate declarative part in case generate statements.
|configuring_identifier_alignment_rules_link|
Violation
variable var1 : natural;
constant c_period : time;
Fix
variable var1 : natural;
constant c_period : time;
This rule checks the colons are in the same column for all declarations in the generate declarative part in case generate statements.
|configuring_keyword_alignment_rules_link|
Violation
signal sig1: natural;
variable var2 : natural;
constant c_period : time;
file my_test_input : my_file_type;
Fix
signal sig1 : natural;
variable var2 : natural;
constant c_period : time;
file my_test_input : my_file_type;
|phase_6| |error| |case| |case_keyword|
This rule checks the begin keyword has the proper case.
|configuring_uppercase_and_lowercase_rules_link|
Violation
for condition generate
BEGIN
Fix
for condition generate
begin
|phase_6| |error| |case| |case_keyword|
This rule checks the end keyword has the proper case.
|configuring_uppercase_and_lowercase_rules_link|
Violation
for condition generate
begin
END
end generate;
Fix
for condition generate
begin
end
end generate;
|phase_7| |disabled| |error| |naming|
This rule checks for valid suffixes on generate statement labels. The default suffix is _gen.
|configuring_prefix_and_suffix_rules_link|
Violation
label : case condition generate
Fix
label_gen : case condition generate
|phase_7| |disabled| |error| |naming|
This rule checks for valid prefixes on generate parameter identifiers. The default generate prefix is gv_.
|configuring_prefix_and_suffix_rules_link|
Violation
gen_label : for index in t_range generate
Fix
gen_label : for gv_index in t_range generate
|phase_7| |disabled| |error| |naming|
This rule checks for valid suffixes on generate parameter identifiers. The default generate suffix is _gv.
|configuring_prefix_and_suffix_rules_link|
Violation
gen_label : for index in t_range generate
Fix
gen_label : for index_gv in t_range generate