Forum Discussion
Altera_Forum
Honored Contributor
16 years agonoping
Hi, if I want the NIOS to do nothing or nop for 100 cycles so does this code below work it well, for (i=0; i< 99; i++) { asm ("nop"); } In other words, does every "nop" pause th...
Altera_Forum
Honored Contributor
16 years agoYour little loop is going to result in a lot more than 100 cycles, You are incrementing a counter, doing a compare, and a branch in addition to your NOP each time through the loop. Enable the Object dump in the NIOS IDE, then when you compile this little project, you will get the objdump file and you can see what your code produced.
Jake