vhdl-style-guide/vsg/tests/if_statement/if_test_input.vhd

122 lines
1.7 KiB
VHDL

architecture ARCH of ENTITY is
begin
PROC_NAME : process (a, b, c) is
begin
if a = 1 then
b <= d;
c <= x;
end if;
if a = 1 or d = 20 or
g = 34 or x = 3000 then
b <= e;
c <= y;
end if;
if (a = 1 or d = 20 or
g = 34 or x = 3000 or
c = 34) then
b <= e;
c <= y;
elsif z = 45 and f = 45 then
b <= g;
c <= o;
end if;
if (a = 1 or d = 20 or
g = 34 or x = 3000 or
c = 34)then
if b = 1 then
b <= e;
c <= y;
end if;
b <= e;
c <= y;
end if;
if a = 1 or d = 20 or
g = 34 or x = 3000 or
c = 34 then
b <= e;
c <= y;
if b = 1 then
b <= e;
c <= y;
end if;
end if;
if a = 1 or d = 20 or
g = 34 or x = 3000 or
c = 34 then
b <= e;
c <= y;
if(b = 1)then
b <= e;
c <= y;
end if;
b <= e;
end if;
-- Test blank line requirements
if (a = 1 or d = 20 or
g = 34 or x = 3000 or
c = 34) then
b <= e;
c <= y;
elsif (z = 45 and f = 45) then
b <= g;
c <= o;
end if;
if (a = 1) then
b <= d;
c <= x;
else
g <= z;
end if;
if (a = 1) then
b <= d;
c <= x;
else
g <= z;
end if;
if (a = 2) then b <= d;
elsif (b = 3) then c <= e;
elsif (c = 4) then -- Not an error
c <= f;
else g <= x;
end if;
if (a = 2) then b <= '1'; else b <= '0'; end if;
if (a = 2) then
a <= '0'; elsif
(b = 3) then b <= '1'; else
c <= '1'; end if;
if (a = 2) then
a <= '0';
elsif (a = 3 or
b = 4) then
a <= '1';
end if;
end process PROC_NAME;
end architecture ARCH;