I am trying to call a task multiple times with different arguments.But the task is called only once.See the code below.
for( int i =0 ; i< div_avail ; i++ )
div_value[i] = divider_values[8*i+:8]; ////for each existing divider div[i]=1;
nxm_check( i ,div_value[i]); ////call tasks
I think the nxm_check takes the whole time in the simulation to complete so the for loop never executes twice.
My intention is to call the task "i" no. of times in parallel depending on div_avail.Is there anyway to do this.
The above piece of code is not doing this.