In reply to pk_94:
No typo.
When you go to a hardware store (e.g., in the paint dpt) you take a ticket to get served (e.g., #22). The person who comes in later takes the next ticket (e.g., #23).
You want product X. When called, the attendant tells you “FAIL, your request for product X, we don’t carry that”. Now that the attendant (the server) is done with you, should he increment the “now_serving” number? On another hand, if the attendant tells you have product X, it will take me a few minutes to make it. When he is done and gives it to you (PASS on your request) and he is done with you, should he increment the “now_serving” number?
Same thing he, a PASS or a FAIL you want to increment the “now_serving” number to allow the next consequent of the req to be processed.
##[1:10] now_serving==v_serving_ticket ##0 ack;
Ben SystemVerilog.us