This rule checks the indent of the context keyword.
Violation
context c1 is
library ieee;
Fix
context c1 is
library ieee;
|phase_2| |error| |whitespace|
This rule checks for a single space between the context keyword and the context identifier.
|configuring_whitespace_rules_link|
Violation
context c1 is
Fix
context c1 is
|phase_3| |error| |blank_line|
This rule checks for blank lines or comments above the context keyword.
|configuring_previous_line_rules_link|
The default style is no_code
.
Violation
library ieee;
context c1 is
--Some Comment
context c1 is
Fix
library ieee;
context c1 is
--Some Comment
context c1 is
|phase_6| |error| |case| |case_keyword|
This rule checks the context keyword has proper case.
|configuring_uppercase_and_lowercase_rules_link|
Violation
CONTEXT c1 is
Fix
context c1 is
This rule checks the context identifier is on the same line as the context keyword.
Violation
context
c1
is
Fix
context c1
is
This rule checks the is keyword is on the same line as the context identifier.
Violation
context c1
is
Fix
context c1 is
This rule checks for code after the is keyword.
Violation
context c1 is -- Comments are allowed
context c1 is library ieee; -- This is not allowed
Fix
context c1 is -- Comments are allowed
context c1 is
library ieee; -- This is not allowed
This rule checks the end keyword is on its own line.
Violation
context c1 is library ieee; end context c1;
context c1 is library ieee; end;
Fix
context c1 is library ieee;
end context c1;
context c1 is library ieee;
end;
This rule checks the context keyword is on the same line as the end context keyword.
Violation
end
context c1;
Fix
end context
c1;
This rule checks the context identifier is on the same line as the end context keyword.
Violation
end context
c1;
Fix
end context c1;
This rule checks the semicolon is on the same line as the end keyword.
Violation
end
;
end context
;
end context c1
;
Fix
end;
end context;
end context c1;
|phase_6| |error| |case| |case_name|
This rule checks the context identifier has proper case in the context declaration.
|configuring_uppercase_and_lowercase_rules_link|
Violation
context C1 is
Fix
context c1 is
|phase_6| |error| |case| |case_keyword|
This rule checks the is keyword has proper case in the context declaration.
|configuring_uppercase_and_lowercase_rules_link|
Violation
context c1 IS
Fix
context c1 is
|phase_6| |error| |case| |case_keyword|
This rule checks the end keyword has proper case.
|configuring_uppercase_and_lowercase_rules_link|
Violation
End;
END context;
Fix
end;
end context;
|phase_6| |error| |case| |case_keyword|
This rule checks the context keyword has proper case in the end context declaration.
|configuring_uppercase_and_lowercase_rules_link|
Violation
end CONTEXT;
Fix
end context;
|phase_6| |error| |case| |case_name|
This rule checks the context identifier has proper case in the end context declaration.
|configuring_uppercase_and_lowercase_rules_link|
Violation
end context C1;
Fix
end context c1;
|phase_2| |error| |whitespace|
This rule checks for a single space between the context identifier and the is keyword.
|configuring_whitespace_rules_link|
Violation
context c1 is
Fix
context c1 is
|phase_2| |error| |whitespace|
This rule checks for a single space between the end keyword and the context keyword.
|configuring_whitespace_rules_link|
Violation
end;
end context;
Fix
end;
end context;
|phase_2| |error| |whitespace|
This rule checks for a single space between the context keyword and the context identifier.
|configuring_whitespace_rules_link|
Violation
end context;
end context c1;
Fix
end context;
end context c1;
This rule checks the indent of the end keyword.
Violation
context c1 is
end context c1;
Fix
context c1 is
end context c1;
|phase_1| |error| |structure| |structure_optional|
This rule checks for the keyword context in the end context statement.
|configuring_optional_items_link|
Violation
end c1;
end;
Fix
end context c1;
end context;
|phase_1| |error| |structure| |structure_optional|
This rule checks for the context name in the end context statement.
|configuring_optional_items_link|
Violation
end context;
Fix
end context c1;
|phase_3| |error| |blank_line|
This rule adds a blank line below the is keyword.
|configuring_blank_lines_link|
Violation
context c1 is
library IEEE;
Fix
context c1 is
library IEEE;
|phase_3| |error| |blank_line|
This rule checks for blank lines or comments above the end keyword.
|configuring_blank_lines_link|
The default style is no_code
.
Violation
use ieee.std_logic_1164.all;
end context;
Fix
use ieee.std_logic_1164.all;
end context;
|phase_3| |error| |blank_line|
This rule adds a blank line below the context semicolon.
|configuring_blank_lines_link|
Violation
end context;
entity fifo is
Fix
end context;
entity fifo is
The function of this rule has been moved to whitespace_200.
The function of this rule has been moved to whitespace_200.
Note
This rule has not been implemented yet.
This rule checks for alignment of inline comments in the context declaration.
|configuring_keyword_alignment_rules_link|
Violation
context c1 is -- Some comment
library ieee; -- Other comment
use ieee.std_logic_1164.all; -- Comment 3
end context c1; -- Comment 4
Fix
context c1 is -- Some comment
library ieee; -- Other comment
use ieee.std_logic_1164.all; -- Comment 3
end context c1; -- Comment 4