In reply to dave_59:
Hi Dave,
Thanks for the explanation.Have a look at the code
fork
forever
begin:label_1
wait(flag1==1);
$display("flag1 asserted");
#(duration);
flag2 = 1;
end
forever
begin
@(flag1);
if(flag1==0)
disable label_1;
end
join
multiple processes of label_1 will get created at same time or create one after the other after flag2 becomes 1.
Best Regards,
Sandy.
October 28, 2014 at 9:33 am
sandy1664
sandy1664