vhdl-style-guide/tests/if_statement/rule_010_test_input.fixed.vhd

53 lines
665 B
VHDL

architecture RTL of FIFO is
begin
process
begin
if a = '1' then
b <= '0';
elsif c = '1' then
b <= '1';
else
if x = '1' then
z <= '0';
elsif x = '0' then
z <= '1';
else
z <= 'Z';
end if;
end if;
-- Violations below
if a = '1' then
b <= '0';
elsif c = '1' then
b <= '1';
else
if x = '1' then
z <= '0';
elsif x = '0' then
z <= '1';
else
z <= 'Z';
end if;
end if;
-- loop statements
if a = '1' then
loop
end loop;
else
end if;
end process;
end architecture RTL;