In reply to ravi_1822:
Now It is working fine, after changing the code to like below
fork
begin
for (int i = 0; i < p_sequencer.cfg.a_devices; i = i + 1) begin
$display(" 11 SAN_@@ a_devices %0d iteration %0d at time %0t",p_sequencer.cfg.a_devices,i,$time);
ram_seq[i] = wr_rd_random_v_seq::type_id::create($psprintf(“SEQ[%0d]”,i));
fork
automatic int j =i;
begin
$display(" 22 SAN_@@ a_devices %0d iteration %0d at time %0t",a_devices,j,$time);
`uvm_do_on(a_seq[j],p_sequencer.a_vseqr[j]);
end
join_none
end
end
I could see the above display messages in the irun.log file as
11 SAN_@@ a_devices 2 iteration 0 at time 0
11 SAN_@@ a_devices 2 iteration 1 at time 0
22 SAN_@@ a_devices 2 iteration 1 at time 0
22 SAN_@@ a_devices 2 iteration 0 at time 0
Thank you to Dave,vipra and janv…