C5000 Debugger | 58
©
1989-2022
Lauterbach
CPU specific BenchMarkCounter Commands
The benchmark counters can be read at run-time.
For information about
architecture-independent
BMC
commands, refer to
For information about
architecture-specific
BMC
command(s), see command description(s) below.
BMC.<counter>.ATOB
Advise counter to count within AB-range
Advise the counter to count the specified event only in AB-range. Alpha and Beta markers are used to
specify the AB-range.
Example to measure the time used by the function sieve:
Format:
BMC.
<counter>
.ATOB
[
ON
|
OFF
]
BMC.<counter> ClockCylces
; <counter> counts clock cycles
BMC.CLOCK 450.Mhz
; core is running at 450.MHz
Break.Set sieve /Alpha
; set a marker Alpha to the entry
; of the function sieve
Break.Set V.END(sieve)-1 /Beta
; set a marker Beta to the exit
; of the function sieve
BMC.<counter>.ATOB ON
; advise <counter> to count only
; in AB-range