A
Amal
Guest
Assuming you have a procedure that has a few output values. You need
one such output to be either a signal or a variable. Overloading does
not seem to work in this sense.
procedure p( signal s : out std_logic ) is
begin
s <= '1';
end procedure p;
procedure p( variable v : out std_logic ) is
begin
v := '1';
end procedure p;
I do NOT want to use a function in this case. Is there any way to do
this in VHDL? That is know if a procedure argument is a signal or a
variable?
-- Amal
one such output to be either a signal or a variable. Overloading does
not seem to work in this sense.
procedure p( signal s : out std_logic ) is
begin
s <= '1';
end procedure p;
procedure p( variable v : out std_logic ) is
begin
v := '1';
end procedure p;
I do NOT want to use a function in this case. Is there any way to do
this in VHDL? That is know if a procedure argument is a signal or a
variable?
-- Amal