Hardware interview practice
Fork-join_any
Which output and completion time are correct?
Starting point
Question code
initial begin
fork
#2 $display("A");
#5 $display("B");
#7 $display("C");
join_any
$display("after %0t", $time);
disable fork;
endChoose one
Answer choices
- A. A, then after 2; B and C are terminated
- B. A, B, C, then after 7
- C. after 0; all branches are terminated before printing
- D. A, then after 2, followed by B and C
