Forum Discussion
Altera_Forum
Honored Contributor
15 years agoWatching the video you posted, it looks to me that the Nios versions are faster than the ATmega version. By the time the ATmega has finished one frame, the Nios II/e has finished almost 3 and the Nios II/e has finished almost 5 frames.
Given the 32 bit vs 8 bit and floating point vs non floating point differences, I too would have guessed there would be a bigger difference. You would have to analyze the compiled code of each in detail to see why it performs the way it does. You still have not confirmed you actually enabled optimizations in the Nios II version. As others have pointed out -O0 is the default optimization setting which will produce very inefficient code. Another though I had is that you may want to verify your Nios code is actually using the FP hardware. I don't have any experience with this, but I have seen quite a few other posts on these forums about people having trouble with the compiler not actually using the FP hardware but using software emulation instead.