Trace Unit
21-16
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
The number of valid entries in
TBUF
is held in the
TBUFCNT
field of the
TBUFSTAT
register. On every second read,
TBUFCNT
is decremented. Because
each entry corresponds to two pieces of data, a total of
2 x TBUFCNT
reads
empties the
TBUF
register.
L
Discontinuities that are the same as either of the last two entries in
the trace buffer are not recorded.
Because reading the trace buffer is a destructive operation, it is rec-
ommended that
TBUF
be read in a non-interruptible section of
code.
Note, if single-level compression has occurred, the least significant bit
(LSB) of the branch target address is set. If two-level compression has
occurred, the LSB of the branch source address is set.
TBUFCTL Register
The Trace Unit is enabled by two control bits in the Trace Buffer Control
register (
TBUFCTL
) register. First, the Trace Unit must be activated by set-
ting the
TBUFPWR
bit. If
TBUFPWR = 1
, then setting
TBUFEN
to 1 enables the
Trace Unit.
Figure 21-9
describes the Trace Buffer Control register (
TBUFCTL
). If
TBUFOVF = 1
, then the Trace Unit does not record discontinuities in the
exception, NMI, and reset routines.
Summary of Contents for ADSP-BF53x Blackfin
Page 38: ...Conventions xxxviii ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 134: ...System Reset and Powerup 3 18 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 324: ...Instruction Overview 7 20 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 486: ...Instruction Overview 13 28 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 512: ...Instruction Overview 14 26 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 604: ...Instruction Overview 15 92 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 688: ...Instruction Overview 18 48 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 742: ...Instruction Overview 19 54 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 752: ...Examples 20 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 790: ...ADSP BF535 Flags A 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 800: ...Performance Monitor Registers B 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 1042: ...Index I 40 ADSP BF53x BF56x Blackfin Processor Programming Reference...