Parallel tasks

In reply to ben@SystemVerilog.us:
for n = 2, this code gives correct answer. Where n is a variable, I don’t know how do it with for.


                fork          
                     gen[0].run();
                     drv[0].run();
                     model[0].run();
                     gen[1].run();
                     drv[1].run();
                     model[1].run();
                
                join_any