Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
21615 Discussions

the execution time

Altera_Forum
Honored Contributor II
1,278 Views

hi, 

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

thk for all. 

0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
561 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
561 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