Generic Rules
generic_001
This rule has been moved to entity_200 to isolate the rule to entity declarations.
generic_002
This rule checks the indent of the generic keyword.
Violation
entity fifo is
generic (
entity fifo is
generic (
Fix
entity fifo is
generic (
entity fifo is
generic (
generic_003
This rule checks for a single space between the generic keyword and the (.
Refer to Configuring Whitespace Rules for options on changing the number of whitespaces..
Violation
generic (
generic(
Fix
generic (
generic (
generic_004
This rule checks the indent of generic declarations.
Violation
generic (
g_width : integer := 32;
g_depth : integer := 512
)
Fix
generic (
g_width : integer := 32;
g_depth : integer := 512
)
generic_005
This rule checks for a single space after the colon in a generic declaration.
Refer to Configuring Whitespace Rules for options on changing the number of whitespaces..
Violation
g_width :integer := 32;
Fix
g_width : integer := 32;
generic_006
This rule checks for a single space after the default assignment.
Refer to Configuring Whitespace Rules for options on changing the number of whitespaces..
Violation
g_width : integer :=32;
g_depth : integer := 512;
Fix
g_width : integer := 32;
g_depth : integer := 512;
generic_007
This rule checks the generic names have proper case.
Refer to Configuring Uppercase and Lowercase Rules for more information.
Violation
G_WIDTH : integer := 32;
Fix
g_width : integer := 32;
generic_008
This rule checks the indent of the closing parenthesis.
Violation
g_depth : integer := 512
);
Fix
g_depth : integer := 512
);
generic_009
This rule checks the generic keyword has proper case.
Refer to Configuring Uppercase and Lowercase Rules for more information.
Violation
GENERIC (
Fix
generic (
generic_010
This rule checks the location of the closing “)” character for the generic clause.
The default location is on a line by itself.
Refer to Configuring Move Token Rules for more information.
Violation
g_depth : integer := 512);
Fix
g_depth : integer := 512
);
generic_013
This rule checks for the generic keyword on the same line as a generic declaration.
Violation
generic (g_depth : integer := 512;
Fix
generic (
g_depth : integer := 512;
generic_014
This rule checks for at least a single space before the colon.
Refer to Configuring Whitespace Rules for options on changing the number of whitespaces..
Violation
g_address_width: integer := 10;
g_data_width : integer := 32;
g_depth: integer := 512;
Fix
g_address_width : integer := 10;
g_data_width : integer := 32;
g_depth : integer := 512;
generic_016
This rule checks for multiple generics defined on a single line.
Violation
generic (
g_width : std_logic := '0';g_depth : std_logic := '1'
);
Fix
generic (
g_width : std_logic := '0';
g_depth : std_logic := '1'
);
generic_017
This rule checks the generic type has proper case if it is a VHDL keyword.
Refer to Configuring Uppercase and Lowercase Rules for more information.
Violation
generic (
g_width : STD_LOGIC := '0';
g_depth : Std_logic := '1'
);
Fix
generic (
g_width : std_logic := '0';
g_depth : std_logic := '1'
);
generic_018
This rule checks the generic keyword is on the same line as the (.
Violation
generic
(
Fix
generic (
generic_019
This rule checks for blank lines before the ); of the generic declaration.
Violation
generic (
g_width : std_logic := '0';
g_depth : Std_logic := '1'
);
Fix
generic (
g_width : std_logic := '0';
g_depth : Std_logic := '1'
);
generic_020
This rule checks for valid prefixes on generic identifiers. The default generic prefix is g_.
Refer to Configuring Prefix and Suffix Rules for more information.
Violation
generic(my_generic : integer);
Fix
generic(g_my_generic : integer);
generic_021
This rule checks the semicolon is not on its own line.
Violation
U_FIFO : FIFO
generic (
G_WIDTH : integer
)
;
Fix
U_FIFO : FIFO
generic (
G_WIDTH : integer
);
generic_600
This rule checks for valid suffixes on generic identifiers. The default generic suffix is _g.
Refer to Configuring Prefix and Suffix Rules for more information.
Violation
generic(my_generic : integer);
Fix
generic(my_generic_g : integer);