There are two questions I don’t know that both need local variable.
a will be high for 1clk, then 10 clk later b will high for 1clk.
But the tricky part is A can rise for several times. Then I need to check each a matches the right b.
a will be always high until seeing b is high, then next clk both will be deasserted. Same thing, I think I need to add local variables to count a and b and check at the end if total are the same.
But I never write before. Could anyone help on these two questions?
There are two questions I don’t know that both need local variable.
a will be high for 1clk, then 10 clk later b will high for 1clk.
But the tricky part is A can rise for several times. Then I need to check each a matches the right b.
see
a will be always high until seeing b is high, then next clk both will be deasserted. Same thing, I think I need to add local variables to count a and b and check at the end if total are the same.
But I never write before. Could anyone help on these two questions?
No need for local variables
first_match($rose(a) ##1 a[*1:$] ##1 b) |->
##1 !a && !b;