How do I pass an empty integer_vector with length equals zero? (= NULL array)
Background:
Inside a Testbench I´d like to use a procedure for different types of transactions. Something like this:
entity foo is
end entity foo;
architecture bar of foo is
procedure Transaction (
constant RX_BYTES : integer_vector
) is
begin
report "RX_BYTES'length = " & to_string(RX_BYTES'length);
end procedure;
begin
Transaction(RX_BYTES => ""); -- it´s about this line
end architecture bar;
I have something like this in mind, but that doesn´t work:
Transaction(RX_BYTES => "");
ModelSim error:
** Error: C:/Users/sbuhrow/Desktop/NULL_Vector.vhd(13): (vcom-1600) No feasible entries for subprogram "Transaction".