Measuring Execution Cycle Count - Fujitsu SOFTUNE F2 MC-16 User Manual

Software for developing programs for the f2 mc-16 family of microprocessors / microcontrollers
Hide thumbs Also See for SOFTUNE F2 MC-16:
Table of Contents

Advertisement

CHAPTER 2 DEPENDENCE FUNCTIONS
2.1.10

Measuring Execution Cycle Count

This function measures the program execution cycle count.
■ Measurement Items
Measures program execution cycle count and step counts.
● Execution Cycle Count
This is calculated based on the basic cycle count of each instruction described in the Programming Manual.
A compensation value (a, b), which is described in the list of an instruction in Programming Manual, is
calculated as 1.
The maximum measurable value varies, as shown below, whether the normal or the high-speed simulator
debugger is used.
Normal debugger:
High-speed debugger:
● Execution Step Count
Measures program execution step counts.
For both the normal simulator debugger and the high-speed simulator debugger, the maximum measurable
count is "2 to the power of 32 - 1", in other words, up to 4,294,967,295 steps.
The measurement is performed whenever a program is executed, and the measurement result displays the
following two values:
• Step counts spent on the previous program execution
• Total step counts spent on the program execution since the previous clearing
■ Displaying Measurement Results
Either of the following methods can be used to display the measurement results.
● Display by dialog
The results appear in the time measurement dialog, which can be displayed by selecting [Debug] – [Time
Measurement] menu.
For details, refer to Section "4.6.8 Time Measurement" in "SOFTUNE Workbench Operation Manual".
● Display by command
Enter the SHOW TIMER command in the command window.
For details, refer to Section "4.27 SHOW TIMER" in "SOFTUNE Workbench Command Reference Manual".
50
Max. (2 to the power of 32 - 1) = 4,294,967,295 cycles
Max. (2 to the power of 64 - 1) = 18,446,744,073,709,551,615 cycles

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Softune workbench

Table of Contents