Sequences in fork...join_none

In reply to dave_59:

Hi Dave,
as soon as enable is high, the 4 sequences should start parallel at the next posedge clk available, but in this case the sequence is not starting, even though enable is high. I do know where i am going worng, please let me know …


task run_phase(uvm_phase phase);
phase.raise_objections();

fork 

 begin
   env_h.reg_blk.enable.set(4'b1111);
   env_h.reg_blk.update(.path(UVM_FRONTDOOR),.parent(null),.status(status)));
 end


 begin
   for(int k=0;k<4;k++) begin
     automatic int j = k;
      fork
        @(posedge clk[j]_in) if(enable[j]==1) begin
           cap_seq[j].start(env.agent[j].seqr);
         end
      join_none
    end
    wait fork;
 end

join

phase.drop_objections();
endtask