一、disable fork终止父进程的说明
`define DELAY 10
module top_tb;
bit valid;
task taska(int delay);
fork:thread_a
begin:sub_thread_a
$display("@%0t:ENTER SUB_THREAD_A",$time);
wait(top_tb.valid == 1'b1);
$display("@%0t:ENTER SUB_THREAD_A",$time);
end:sub_thread_a
begin:sub_thread_b
$display("@%0t:ENTER SUB_THREAD_B",$time);
#(20*delay)
$display("@%0t:ENTER SUB_THREAD_B",$time);
end
join_any:thread_a
disable fork;
#(`