aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/vests/vhdl-93/clifton-labs/compliant/functional/statements/block-statements/simple-grouping-block.vhdl
blob: 0223d6d94880a0cc00d41ba3c28704cb64edaba6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
entity test is
end test;

architecture only of test is
  signal delay_line_in : bit := '0';
  signal delay_line_out : bit := '0';
begin  -- only
  delay: block
  begin  -- block delay
    delay_line_out <= delay_line_in after 1 ns;
  end block delay;

  start: process
  begin  -- process
    delay_line_in <= '1';
    wait;
  end process;

  check: process( delay_line_out )
  begin
    if delay_line_out = '1' then
      assert now = 1 ns report "TEST FAILED - delay did not happen as expected!" severity FAILURE;
      assert not(now = 1 ns) report "TEST PASSED" severity WARNING;
    end if;
  end process;
end only;