--- Quote Start ---
Could you show a screenshot of your sopc system? Are you sure the Nios CPU is using the correct clock? You should see the pll's output used as a clock in the RTL view.
How do you measure the execution time? What is the order of magnitude of the execution times you are measuring?
What does your loop do? Some actions (ex: i/o) will have an execution time that can be rather independant from the cpu clock.
--- Quote End ---
Of course in the joint file the screenshot of my SOPC system.
Of course as mentionned on the screen the NIos CPU is related to the correct clock.
I mentionned this in the back thread, i say that when i try to check in the RTL viewer, i find that clock isn't related to sys_clk(150mhz) from th pll, but it is is related directly to clkin_sys, when i go to check in the assignement menu i find that this pin is related to PIN_AC34. PIN_AC34 is related to an oscillator 50 Mhz as writen in the handbook of this kit.I add a screenschot of RTL to more explain for you.
For measurement time, i measure in the NIOS II software with the instruction clock().
I make exactly as this:
start =****();
my code ;
end= clock();
I put to your attention that tha instruction clock return tim in tick. I devise by 100 to abtained the execution time in second.
For me i need to puts the final in µsecond.
I add also my small program in the attached file. My loop will make some arithmetique operation (pow, add, multiplication) and every iteration there are a variable that give the decision to exit the loop or non. The maximum of iteration of the loop is 4.
I hope that is clear for you Daixiwen. If you need some information i wil be happy to more explain for you the problem.
Think you