The Performance Counter Data Read Register (PCDRR) reads the sampled values of the counters. To read the values of all configured counters, the register should be read repeatedly. This register is a read-only register. Issuing a write request to the register does nothing.
See the following figure and table.
Bits | Name | Description | Reset Value |
---|---|---|---|
31:0 | Item | Sampled counter value item | 0 |
Because a counter can have more than 32 bits, depending on the configuration, the register might need to be read repeatedly to retrieve all information for a particular counter. This is detailed in the following table.
Counter Type | Item | Description | |
---|---|---|---|
C_DEBUG_COUNTER_WIDTH
= 32 |
|||
Event Counter | 1 | The number of times the event occurred | |
Latency Counter | 1 | The number of times the event occurred | |
2 | The sum of each event latency | ||
3 | The sum of each event latency squared | ||
4 |
31:16 15:0 |
Minimum measured latency, 16 bits Maximum measured latency, 16 bits |
|
C_DEBUG_COUNTER_WIDTH
= 48 |
|||
Event Counter | 1 | 31:1615:0 |
0x0000 The number of times the event occurred, 16 most significant bits |
2 | The number of times the event occurred, 32 least significant bits | ||
Latency Counter | 1 | The number of times the event occurred | |
2 |
31:16 15:0 |
0x0000 The sum of each event latency, 16 most significant bits |
|
3 | The sum of each event latency, 32 least significant bits | ||
4 |
31:16 15:0 |
0x0000 The sum of each event latency squared, 16 most significant bits |
|
5 | The sum of each event latency squared, 32 least significant bits | ||
6 | Minimum measured latency, 32 bits | ||
7 | Maximum measured latency, 32 bits | ||
C_DEBUG_COUNTER_WIDTH
= 64 |
|||
Event Counter | 1 | The number of times the event occurred, 32 most significant bits | |
2 | The number of times the event occurred, 32 least significant bits | ||
Latency Counter | 1 | The number of times the event occurred, 32 bits | |
2 | The sum of each event latency, 32 most significant bits | ||
3 | The sum of each event latency, 32 least significant bits | ||
4 | The sum of each event latency squared, 32 most significant bits | ||
5 | The sum of each event latency squared, 32 least significant bits | ||
6 | Minimum measured latency, 32 bits | ||
7 | Maximum measured latency, 32 bits |