Skip to question
asic.fyi
DesignVerificationSystemVerilogFirmwareArchitectureInterviews
asic.fyi/Interview questions/Wait fork

Hardware interview practice

Wait fork

EasyVerification UtilitiesSystemVerilog

At what time does done print?

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

initial begin
  fork #2 $display("X"); join_none
  fork #4 $display("Y"); join_none
  wait fork;
  $display("done %0t", $time);
end
Choose one

Answer choices

  1. A. 0
  2. B. 2
  3. C. 4
  4. D. It never prints
Continue practicing

Related questions

Verification UtilitiesFork-join_any→Verification UtilitiesFork-join_none→
asic.fyi · Learn silicon end to end.info@asic.fyi