1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
entity call1 is end; use work.pkg.all; architecture behav of call1 is function func return rec is variable res : rec_4; begin return res; end func; begin process variable v : rec_4 := func; begin wait; end process; end behav;