module fork_test;
initial begin
for(int j=0;j<3;j++)
begin
fork
$display("%d",j);
join_none
end
end
endmodule
The code above prints 3,3,3. I don’t understand why it doesn’t print the intermediate values. I know the functionality of fork…join_none still can’t understand how it is operating in this case. Could someone please explain.