Fork within loop with join ALL

In reply to dave_59:

Hi Dave,

If I have two for-loop, how to handle it ? Is below code correct ?



fork 
  begin : isolating_thread
    for(int index=0;index<14;index++)begin : for_loop
      fork
      automatic int idx=index;
        for(int j=0;j<14;j++)begin 
         automatic int jdx=j;
        begin
            `ovm_do_on(sequence_inst,p_sequencer.my_sqr[idx][jdx]);
        end
      join_none;
    end : for_loop
  wait fork;
  end
  end : isolating_thread
join