A newer version of this document is available. Customers should click here to go to the newest version.
Visible to Intel only — GUID: iga1457455365573
Ixiasoft
Visible to Intel only — GUID: iga1457455365573
Ixiasoft
38.7.5. Latency Measurement with the Performance Counter
The Intel® Quartus® Prime enables you to make fast, accurate performance measurements. All examples included with this document use the Performance Counter component to measure interrupt latency.
The examples execute the following steps to measure the total time spent to service an interrupt:
- Initialize a global variable, interrupt_watch_value, to a known value, 0xfeedface.
- Set up a timer interrupt, registering an ISR that sets interrupt_watch_value to 0xfacefeed.
- Start the timer.
- Wait in a while() loop until interrupt_watch_value becomes 0xfacefeed.
- Immediately after exiting the while() loop, stop the performance counter, compute clock cycles and display the calculated value on stdout.
You can use similar methods to determine the real-time interrupt latencies in your system.