vhdl-style-guide/vsg/tests/case/case_test_input.vhd

84 lines
1.0 KiB
VHDL

architecture ARCH of ENTITY is
begin
PROC_1 : process (a, b, c) is
begin
-- This is a case statement
case boolean_1 is
when STATE_1 =>
a <= b;
b <= c;
c <= d;
when STATE_2 =>
a <= b;
b <= c;
c <= d;
when STATE_3 =>
a <= b;
b <= c;
c <= d;
when others =>
null;
end case;
-- This will be an error
end process PROC_1;
PROC_1 : process (a, b, c) is
begin
case boolean_1 or
boolean_2 or
boolean_3 is
-- This comment will be an error
when STATE_1 or
STATE_1 and STATE_3 =>
a <= b;
b <= c;
c <= d;
when STATE_2 =>
a <= b;
b <= c;
c <= d;
when STATE_3 or
STATE_3 or
STATE_4 =>
a <= b;
b <= c;
c <= d;
when others =>
null;
-- This will be an error
end case;
end process PROC_1;
PROC_1 : process (a, b, c) is
begin
case(boolean)is
end case;
end process PROC_1;
end architecture ARCH;