Process Control

  • Wait Fork
  • Disable Fork
  • Example : Fork Join_Any Wait Fork

    module fork_join_any();
    logic clk,a,b,c;
    initial
    begin
    clk = 0;
    a = 1;
    b = 1;
    #5;
    fork
    #300 a = 0;
    #200 b = 0;
    #100 c =1;
    join_any
    #5
    wait fork
    clk = 1;
    $display ("clk=%b",clk,$time );
    end

    endmodule

    OUT PUT :

    # ----------------OUTPUT RESULT -----------------------
    # clk=1 610
    # ------------------------------------------------------