In reply to ravi_1822:
The issue is that you are calling the for loop inside the fork, which means that the for loop is one branch of the fork.
I am not sure if you can call a “forked for loop” in SystemVerilog like you are trying to. This is something that I think I saw either in Cuda or OpenCL.
You will have to modify the code so that each call of the for loop is a fork branch such as:
for (int i = 0; i < p_sequencer.cfg.a_devices; i = i + 1) begin
fork begin
a_seq[i] = wr_rd_random_v_seq::type_id::create($psprintf(“SEQ[%0d]”,i));
a_seq[i].start(p_sequencer.a_vseqr[i]);
end
join_none
end