Altera_Forum
Honored Contributor
10 years agoattribute 'event usage within procedure
Hi,
I'm having a procedure (non-synthesizable code) and I am trying to use the 'event attribute on a signal declared as input to the procedure: procedure priority_req(signal tb_control : in t_tb_control) is
begin
while (tb_control.command /= priority_grant) loop
wait for tb_control.cycle_time;
wait until tb_control.command'event;
end loop;
end priority_req;
tb_control is a signal (although mode 'in' within procedure) of type t_command where t_command is a record. From the compiler I am getting the error: Error, attribute event is only defined for signals. I have tried all language syntaxes from '87 to '2008, all see it as an error. Does anyone have an ideea how I can fix/rewrite it so it gets compiled?