blob: e40a98489b3930dec5357eea259c1ab163b25bb9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
entity call4 is
end;
use work.pkg.all;
architecture behav of call4 is
procedure p (s : string) is
begin
report natural'image (s'left);
report natural'image (s'right);
assert s'left = 1;
assert s'right = 4;
end;
begin
process
variable v : rec_4dyn;
begin
p (v.s);
wait;
end process;
end behav;
|