Altera_Forum
Honored Contributor
12 years agoVery slow Nios II performance for my c code
Hi everybody.
I am loosing my mind with this issue... I have made a FFT of 256 point, in c code, that runs very fast in my pc. The code calculates FFT points and prints them in screen. So every time i can see the new pair of numbers. When i using the same code in Eclipse the process is very slow. I see a new pair of numbers in about every half of a second, with the Media Computer from University Program. when i use the same code at a microcontroller (eg pic at 2 mhz) the results are extremly fastest than my fpga at 50mhz !!!!! I have try to solve this, with different optimizations of compiler (-O3) and using the nios II/f combinations, spending a lot of days, but no luck. I believe that the code is running in a debug mode, or somehow eclipse spent some time to communicate with my board. Is there a way (manual or tutorial) to put my code in FPGA as like i do with my microcontroller ? Because i am new in NIOS II, i am confused with all Altera's manuals and i wonder if someone can make me a suggestion. I use DE2-115 board and quartus 11.0 at Win7. Best Regards Chris