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

39 lines
546 B
VHDL

architecture RTL of FIFO is
begin
process
begin
if a = '1' then
b <= '0';
elsif c = '1' then
b <= '1';
end if;
-- Violations below
if a = '1' then
b <= '0';
elsif c = '1' then
b <= '1';
end if;
if a = '1' then
b <= '0';
elsif c = '1' then
b <= '1';
end if;
if a = '1' then
b <= '0';
elsif c = '1' and
d = '0' then
b <= '1';
end if;
end process;
end architecture RTL;