aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/vests/vhdl-93/clifton-labs/compliant/functional/attributes/signal/simple-last_value-attribute.vhdl
blob: eafaf406bc645fa13eadc8d1dd595b9fcf8a5f89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
entity test is
end test;

architecture only of test is
  signal s : bit;
begin
  s  <= '1' after 10 ns, '0' after 20 ns, '1' after 30 ns, '0' after 40 ns;
  p: process
   variable v: bit;
  begin
    wait for 1 ns;
   wait for 25 ns;
    v:=s'last_value;
    assert v = '1' report "TEST FAILED - s previous value incorrect!" severity failure;
    report "TEST PASSED v = 1" ;
    wait;
  end process;
end architecture only;