Forum Discussion
fpgaLover22
New Contributor
5 years agoHow 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?
4 Replies
- sstrell
Super Contributor
You can use alarms and related functions all documented in the software developer's handbook:
- EricMunYew_C_Intel
Frequent Contributor
You can do it with Performance counter IP.
https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/an/an391.pdf
- EricMunYew_C_Intel
Frequent Contributor
You can do it with Performance counter IP.
https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/an/an391.pdf
- EricMunYew_C_Intel
Frequent Contributor
You can try Performance counter IP.
https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/an/an391.pdf