Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21328 Discussions

the execution time

Altera_Forum
Honored Contributor II
1,178 Views

hi, 

How can I calculate the execution time of processur NIOSII.? 

thk for all. 

0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
461 Views

I would personally try to measure the execution time if it is possible. It's very boring work to try to calculate it, escpecially if you have caches and things like that 

 

You could use a timer to measure the time, do it a couple of thousand time and take a mean value. You could also make a custom instruction to count the number of clock ticks. 

 

Best Regards, 

Ola Bångdahl
0 Kudos
Altera_Forum
Honored Contributor II
461 Views

 

--- Quote Start ---  

hi, 

 

How can I calculate the execution time of processur NIOSII.? 

thk for all. 

 

 

--- Quote End ---  

 

 

Use the timer tick functions to calculate the time. Also, try gprof (gnu profiler).
0 Kudos
Reply