Generate Rules¶
generate_001¶
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
generate_002¶
This rule checks for a single space between the label and the :.
Violation
RAM_ARRAY: for i in 0 to 7 generate
Fix
RAM_ARRAY : for i in 0 to 7 generate
generate_003¶
This rule checks for a blank line after the end generate keywords.
Violation
end generate RAM_ARRAY;
wr_en <= '1';
Fix
end generate RAM_ARRAY;
wr_en <= '1';
generate_004¶
This rule checks for a blank line before the generate keyword.
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
generate_005¶
This rule checks the generate label has proper case.
Note
The default is uppercase.
Refer to the section Configuring Uppercase and Lowercase Rules for information on changing the default case.
Violation
ram_array: for i in 0 to 7 generate
Fix
RAM_ARRAY: for i in 0 to 7 generate
generate_006¶
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
generate_007¶
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;
generate_008¶
This rule checks for a single space after the end keyword.
Violation
end generate RAM_ARRAY;
Fix
end generate RAM_ARRAY;
generate_009¶
This rule checks the end keyword has proper case.
Note
The default is lowercase.
Refer to the section Configuring Uppercase and Lowercase Rules for information on changing the default case.
Violation
END generate RAM_ARRAY;
Fix
end generate RAM_ARRAY;
generate_010¶
This rule checks the generate keyword has the proper case in the end generate line.
Note
The default is lowercase.
Refer to the section Configuring Uppercase and Lowercase Rules for information on changing the default case.
Violation
end GENERATE RAM_ARRAY;
Fix
end generate RAM_ARRAY;
generate_011¶
This rule checks the end generate line has a label.
Violation
end generate;
Fix
end generate RAM_ARRAY;
generate_012¶
This rule checks the end generate label has proper case.
Note
The default is uppercase.
Refer to the section Configuring Uppercase and Lowercase Rules for information on changing the default case.
Violation
end generate ram_array;
Fix
end generate RAM_ARRAY;
generate_013¶
This rule checks for a single space after the generate keyword and the label in the end generate keywords.
Violation
end generate RAM_ARRAY;
Fix
end generate RAM_ARRAY;
generate_014¶
This rule checks for a single space between the : and the for keyword.
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
generate_015¶
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