
GR716-DS-UM, May 2019, Version 1.29
417
www.cobham.com/gaisler
GR716
Note that IDs 0x39 (LOAD instructions) and 0x3A (STORE instructions) will both count all LDST
and SWAP instructions. The sum of events counted for 0x39 and 0x3A may therefore be larger than
the number of events counted with ID 0x38 (LOAD and STORE instructions).
41.2
Using the LEON3 statistics unit
The debug monitor GRMON3 has build-in support for using LEON3 statistical unit. For more infor-
mation see chapter for using the LEON3 statistical unit in the GRMON3 User’s Manual [GRMON3].
41.3
Registers
The L3STAT core is programmed through registers mapped into APB address space.
0x83**
Request by CAN core 0
0x84**
Request by CAN core 1
0x85**
Request by AHBUART core
0x86**
Request by Main => DMA bridge
0x87**
Request by PWRX core
0x88**
Request by PWTX core
0x89**
Request by DMA core 0
0x8A**
Request by DMA core 1
0x90 - 0x9F
Active when master selected by CPU/AHBM field has request asserted while grant is deas-
serted for the master correspoding to the least significant nibble of the event ID. 0x90 is mas-
ter 0 grant, 0x91 is master 1 grant, .., and so on.
* Only valid for L3STAT for Main system bus
** Only valid for L3STAT for DMA bus
Table 559.
L3STAT counter control register*
APB address offset
Register
0x0
Counter 0
value register
0x4
Counter 1
value register
0x8
Counter 2
value register
0xC
value register
0x100
0x104
0x108
0x10C
0x200
Counter 0 max/latch register
0x204
Counter 1 max/latch register
0x208
Counter 2 max/latch register
0x20C
Counter 3 max/latch register
0x300
Timestamp register
Table 558.
Event types and IDs for Main and DMA AMBA bus
ID
Event description