GR740-UM-DS, Nov 2017, Version 1.7
312
www.cobham.com/gaisler
GR740
21.3.14 Interrupt timestamp counter register
Table 392.
0x100, 0x110 - ITCNT - Interrupt timestamp counter register
21.3.15 Timestamp control registers
Table 393.
0x1n4 - ITSTMPCn - Interrupt timestamp n control register
21.3.16 Interrupt assertion timestamp n register
Table 394.
0x1n8 - ITSTMPASn - Interrupt Assertion Timestamp n register
Timestamp of Assertion (TASSERTION) - The current Timestamp Counter value is saved in this
register when timestamping is enabled and the interrupt line selected by TSISEL is asserted.
31
0
TCNT
0
r
31: 0
Timestamp Counter (TCNT) - Current value of timestamp counter. The time value is taken from the
DSU timer and is the same timetag value available in the LEON4 up-counters and in the trace buf-
fers. The counter will only increment if the DSU and trace buffers are enabled or if at least one of the
processor up-counters is enabled.
31
27 26 25 24
6
5
4
0
TSTAMP
S1 S2
RESERVED
KS
TSISEL
0x2
0
0
0
0
0
r
wc wc
r
rw
rw
31: 27
Number of timestamp register sets (TSTAMP) - The number of available timestamp register sets.
26
Assertion Stamped (S1) - Set to ‘1’ when the assertion of the selected line has received a timestamp.
This bit is cleared by writing ‘1’ to its position. Writes of ‘0’ have no effect.
25
Acknowledge Stamped (S2) - Set to ‘1’ when the processor acknowledge of the selected interrupt
has received a timestamp. This bit can be cleared by writing ‘1’ to this position, writes of ‘0’ have no
effect. This bit can also be cleared automatically by the core, see description of the KS field below.
24: 6
RESERVED
5
Keep Stamp (KS) - If this bit is set to ‘1’ the core will keep the first stamp value for the first interrupt
until the S1 and S2 fields are cleared by software. If this bit is set to ‘0’ the core will time stamp the
most recent interrupt. This also has the effect that the core will automatically clear the S2 field when-
ever the selected interrupt line is asserted and thereby also stamp the next acknowledge of the inter-
rupt.
4: 0
Timestamp Interrupt Select (TSISEL) - This field selects the interrupt line (0 - 31) to timestamp.
31
0
TASSERTION
0
r
31: 0
The time value used for stamping is the DSU timer, which is also available as the processor internal.
up-counter.