1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
entity if4 is end; architecture behav of if4 is begin process variable i : natural := 0; begin report "hello"; if i = 10 then wait for 1 ns; else report "hello2"; end if; report "SUCCESS"; wait; end process; end behav;