blob: 2330e18230bb054600cc0e320ed20895a8a8896a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
entity test is
end test;
architecture only of test is
begin -- only
p: process
type color is ( red, blue, green );
variable x : color;
begin -- process p
for i in red to green loop
x := i;
end loop; -- i
assert x = green report "TEST FAILED x was " & color'image(x) severity ERROR;
report "TEST PASSED" severity NOTE;
wait;
end process p;
end only;
|