下面给出了事件 a、b 声明为“无法识别的结构成员”的错误。请帮我理解。
unit true_match_op {
event a, b;
my_task() @sys.any is {
emit a;
wait [2]*cycle;
emit b;
wait [5]*cycle;
emit a;
expect @b => {@a ; ~[..]};
};
run() is also {
start my_task();
stop_run();
};
};
extend sys {
my_unit : true_match_op is instance;
};