blob: c10bd2211feb65aba73b59042607ceb31bff392d (
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 FAILURE;
end if;
end process;
end only;
|