I want to know that for the code typed below how is timing functioning? The outputs are 1,2,3. I am unable to understand how the output is getting these values.
module fork_t;
initial begin
for(int i=0;i<3;i++)
begin
//$display(i,$time);
#1
//$display(i);
fork
$display(i);
join_none
end
end
endmodule