vhdl-style-guide/tests/if_statement/rule_027_test_input.fixed_u...

43 lines
566 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;
end process;
end architecture RTL;