But can I get the accumulated number of clocks or the number of clocks in function units?
The accumulated number of clocks cannot be shown in the trace window.
Although this is not a direct method, the approximate value can be obtained as follows:
The following is an actual example:
- Execute the program and make it stop at the function entry breakpoint.
- Then execute the "Go" command and make it stop at the next breakpoint.
- Next, open the timer dialog box and select "Timer Name" and then "Run-Break."
The execution time then appears.
"Run-Break" is the default timer event in the simulator used to measure the execution time from the last (latest) "Go" command to the "Stop" command.
In addition, the time shown in the timer window is based on the clock cycle obtained from the frequency set in the Clock field of the configuration dialog box.
Therefore, the approximate number of clocks can be obtained as follows:
Here, time measurement is performed simply by setting breakpoints at the beginning and end of the function and obtained by "Run-break."
Measurement of the execution time using an event is also possible.
Refer to 4.2.6 of V800 Series Development Tools Tutorial Guide
Document Number U15196*. Here, read ID850 as SM850 in 4.2.6.