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.
Содержание ADSP-BF53x Blackfin
Страница 38: ...Conventions xxxviii ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 134: ...System Reset and Powerup 3 18 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 324: ...Instruction Overview 7 20 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 486: ...Instruction Overview 13 28 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 512: ...Instruction Overview 14 26 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 604: ...Instruction Overview 15 92 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 688: ...Instruction Overview 18 48 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 742: ...Instruction Overview 19 54 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 752: ...Examples 20 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 780: ...Product Identification Register 21 28 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 790: ...ADSP BF535 Flags A 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 800: ...Performance Monitor Registers B 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 994: ...Instructions Listed By Operation Code C 194 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 1042: ...Index I 40 ADSP BF53x BF56x Blackfin Processor Programming Reference...