Title: Statistic Unit Architecture
1Statistic Unit Architecture
Leon Controller
Statistics Data
Stat / Config Requests
Leon Subsystem
Top Level
Statistics Unit
Event Monitor Bus (Emon Bus)
dcache
integer unit
icache
2Statistic Unit Internal Architecture
Statistics Data
Stat / Config Requests
data ready
Statistics Unit
Monitor Configuration processor
Statistics Data Storage Buffer
Statistic Counters
Event Capture
rd hit rd miss wr hit wr miss
Cache hit/miss Monitor
Stat Mod 1
Stat Mod N
Opcode monitor
Opcode probe
Stat request
Counter 1
Route logic
Data
Program running Monitor
Counter N
Address
Event Monitor Bus (Emon Bus)
3Statistics Data Storage Buffer Format
32-bits
Stat Type code
Number of Words
Stat Data
Stat Data
Stat Data
Stat Data
Stat Type code
Number of Words
Stat Data
Stat Data
Stat Data
Stat Data
Stat Type code
Number of Words
Stat Data
Stat Data
Stat Data
Stat Data
4Statistics Format Examples
32-bits
Data Cache Stats (0x40)
Number of Words 4
Read Misses
Read Hits
Write Misses
Write Hits
Instruction Cache State (0x41)
Number of Words 4
Read Misses
Read Hits
Write Misses
Write Hits
Run Time (0x10)
Number of Words 3
Overall Program
Function 1
Function 2
5Monitor Configuration Processor
Configuration Data (Monitor Type and
Configuration)
Monitor Configuration processor
Get Monitor Type
Store Configuration
Wait For Config Data
Monitor Configuration Storage
Send Cofig Data to Event Capture Unit when
appropriate
Monitor ID
Monitor Configuration
6Configuration Data Format
32-bits
Monitor Type
Config Data
Config Data
Config Data
Config Data
Monitor Type
Config Data
Config Data
Config Data
Config Data
Monitor Type
Config Data
Config Data
Config Data
Config Data
7Configuration Data Examples
32-bits
Event Count Address Range (0x01)
Upper Address
Lower Address
Function 1 Range (0x02)
Upper Address
Lower Address
Program Running Threshold Address (0x03)
Threshold Address
Reset Statistics Request (0xFF)
ID of Monitor to Reset