Skip to question
asic.fyi
DesignVerificationSystemVerilogFirmwareArchitectureInterviews
asic.fyi/Interview questions/Nonblocking event triggers

Hardware interview practice

Nonblocking event triggers

HardVerification UtilitiesSystemVerilog

What print order is guaranteed, and why?

Try it in the question bankReason first. Then compare.

Keep this exact question selected while you check your answer and review the full solution.

Practice this question →
Starting point

Question code

event e;
initial fork
  begin #1 ->> e; $display("T"); end
  begin #1 @e;   $display("W"); end
join
Choose one

Answer choices

  1. A. W then T, because an event waiter has priority
  2. B. T then W, because ->> schedules the trigger nonblockingly after active-region code
  3. C. Only T, because @e always misses a same-time trigger
  4. D. The order is nondeterministic because both delays expire at time 1
Continue practicing

Related questions

Verification UtilitiesMailbox peek and blocking put→
asic.fyi · Learn silicon end to end.info@asic.fyi