I have a struct in specman:
struct foo_s {
event foo_ev;
// some code that will emit foo_ev sometimes
};
And a list:
var foo_l: list of foo_s; // later code will manage the list
And now I want to sync on any of the foo_ev
events in the list:
first of {
sync @foo_l[0].foo_ev;
sync @foo_l[1].foo_ev;
sync @foo_l[2].foo_ev;
//etc
};
The problem is that at the time this snippet runs I don't know how many elements are in foo_l
. Is there any way for me to wait for any of the foo_ev
events to be emitted?