blob: 0897bfee090d7b7c8d27b61c5cb62bde5834fba4 (
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
27
|
entity call5 is
end;
use work.pkg.all;
architecture behav of call5 is
procedure p2 (s : string) is
begin
report natural'image (s'left);
report natural'image (s'right);
assert s'left = 1;
assert s'right = 4;
end;
procedure p1 (r : rec) is
begin
p2 (r.s);
end p1;
begin
process
variable v : rec_4dyn;
begin
p1 (v);
wait;
end process;
end behav;
|