Forum Discussion
Altera_Forum
Honored Contributor
11 years agoThere are two issues here: 1) Functional error in the code, which was a bug in the compiler; it will be fixed in the next release. 2) Printf instructions printing out-of-order. Currently, this is expected. There is no ordering guarantees between different printf calls. In this case, because the loop is unrolled, the body contains multiple printfs (one for each iteration), and these printfs can print in different order, not in iteration order.