Fork join_none inside for loop

Try this…

for(int i = 0; i < 5; i++) begin
  automatic int j;
  j = i;
  fork
   thread(j);
  join_none
end


1 Like