FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
5157 Discussions

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

fpgaLover22
Beginner
158 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
143 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
127 Views
EricMunYew_C_Intel
Moderator
127 Views
EricMunYew_C_Intel
Moderator
127 Views
Reply