In reply to dave_59:
module top;
initial
begin
fork
begin : b1
#5 $display($time, " from block b1");
end : b1
begin : b2
#10 $display($time, " from block b2");
end : b2
join
$display($time, " from outside fork-join block");
end
endmodule
# 5 from block b1
# 10 from block b2
# 10 from outside fork-join block
this is the output which i get for the above code using fork-join_none
//************************************************************************************
module top;
initial
begin
fork
begin : b1
#5 $display($time, " from block b1");
end : b1
begin : b2
#10 $display($time, " from block b2");
end : b2
join_none
$display($time, " from outside fork-join block");
end
endmodule
# 0 from outside fork-join block
# 5 from block b1
# 10 from block b2
this is the output for the code with fork-join_none
my doubt is what should be done to the first code so that i get the output as the second one