7.10 Function call

7.10.1 Definitions

function_call ::=
     function _name [ ( actual_parameter_part ) ]

actual_parameter_part ::=
     parameter _association_list

7.10.2 Examples

exnor_out <= exnor(in1, in2);

With this function call exnor_out receives
the return value of the function exnor .

x2 <= exnor (
      a => in1(2 downto 0),
      b => in2(2 downto 0) );

x2 receives the return value of the function exnor .
Here, the transfer parameters a and b have the values
of the stated vector ranges.

i <= bit_to_integer(bit_a => in(8)) +
      count_ones(in2);

i receives the sum of the return values of the two
functions bit_to_integer and count_ones .