vhdl-style-guide/tests/variable_assignment/rule_002_test_input.vhd

43 lines
642 B
VHDL

architecture RTL of FIFO is
begin
process
begin
SIMPLE_LABEL : x := z;
a := b;
CONDITIONAL_LABEL : x := z when b = 0 else y;
x := z when b = 0 else y;
SELECTED_LABEL : with some_expression select a := b when z = 1;
with some_expression select a := b when z = 1;
end process;
end architecture;
-- Violations below
architecture RTL of FIFO is
begin
process
begin
a :=b;
a := b;
x :=z when b = 0 else y;
x := z when b = 0 else y;
with some_expression select a :=b when z = 1;
with some_expression select a := b when z = 1;
end process;
end architecture;