im a bit confused as to how nested pars are handled.
I found a structure similar to the one below in the rgmii ethernet example and am wondering, if i understood whats happening.
Code: Select all
par
{
{
task1();
task2();
}
{
task3();
par {
{
task4();
task5();
}
{
task6():
}
}
}
{
task7();
}
{
task8();
}
}
post_par_task();
task 2 is run on task 1 finishing.
task 4 and 6 are started in parallel on task 3 finishing. Task 4 is followed by task 5.
if task 2,5,6,7,8 ended, post_par_task() is executed.
is that correct?