Community
cancel
Showing results for 
Search instead for 
Did you mean: 
fpgaLover22
Beginner
57 Views

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

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
Moderator
42 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_nii5...

EricMunYew_C_Intel
Moderator
26 Views

EricMunYew_C_Intel
Moderator
26 Views

EricMunYew_C_Intel
Moderator
26 Views