vhdl-style-guide/vsg/tests/variable_assignment/rule_005_test_input.vhd

46 lines
789 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;
a:= b;
x := z when b = 0 else y;
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;
with some_expression select a := b when z = 1;
end process;
end architecture;