Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
17 years ago

the execution time

hi,

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

thk for all.

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- 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).