FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
6184 Discussions

How do I calculate the elapsed time and see how many instructions a specific operation has occurred

fpgaLover22
Beginner
464 Views

For example

while (x <10 && x <50)

x ++;

How can I measure how many instructions a loop like and what the elapsed time is?

Or are there functions that we know precisely the time elapsed in NIOS II  and how many instructions sets they consist of?

0 Kudos
4 Replies
sstrell
Honored Contributor III
449 Views

You can use alarms and related functions all documented in the software developer's handbook:

https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/nios2/archives/n2sw_nii5v2gen2-20-1.pdf

0 Kudos
EricMunYew_C_Intel
Moderator
433 Views
0 Kudos
EricMunYew_C_Intel
Moderator
433 Views
0 Kudos
EricMunYew_C_Intel
Moderator
433 Views
0 Kudos
Reply