Skip to the selected question
ASIC.FYI

ASIC Question Bank

1,000+ hardware interview questions
DescriptionQ832
Page ↗
Q832DVASIC interview problem

Wait fork

TechniquesSystemVerilogParallel process control
DifficultyEasy
TopicVerification Utilities
LanguageSystemVerilog
Format4 choices
01

Problem

At what time does done print?

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

Answer choices (4)