TC1796
System Units (Vol. 1 of 2)
On-Chip System Buses and Bus Bridges
User’s Manual
6-32
V2.0, 2007-07
Buses, V2.0
OCDS Debug Example 2
•
Task: generation of a BCU debug trigger event on any half-word access in user mode
to address area 01FFFFFF
H
to 02FFFFFF
H
by any master.
For this task, the following programming settings for the BCU breakpoint logic must be
executed:
1. Writing SBCU_DBADR1 = 01FFFFFF
H
2. Writing SBCU_DBADR2 = 02FFFFFF
H
3. Writing SBCU_DBCNTL = 32206010
H
:
ONBOS[3:0] = 0011
B
means that the signal status trigger is disabled for a read or for
write signal status match but enabled for supervisor mode match AND opcode match
conditions according to the settings of bit SVM and bit field OPC in register
SBCU_DBBOS.
ONA2 = 10
B
means that the address 2 trigger is generated if the FPI Bus address is
greater or equal to SBCU_DBADR2.
ONA1 = 10
B
means that the address 1 trigger is generated if the FPI Bus address is
greater or equal to SBCU_DBADR1.
ONG = 0 means that the grant debug trigger is disabled.
CONCOM[2:0] = 110
B
means that the address trigger is created by address trigger 1
AND address trigger 2 (CONCOM1 = 1), and that the grant trigger is OR-ed with the
address trigger (CONCOM0 = 0), and that the signal status trigger is ANDed with the
address trigger (CONCOM2 = 1).
RA = 1 means that the BCU breakpoint logic is rearmed.
4. Writing SBCU_DBGRNT = FFFFFFFF
H
:
means that no grant trigger for SPB masters is selected (“don’t care” because also
disabled by ONG = 0).
5. Writing SBCU_DBBOS = 00000001
H
:
means that the signal status trigger is generated for read (RD = 0) and write (WR = 0)
half-word transfers (OPC = 0001
B
) in user mode (SVM = 0).
OCDS Debug Example 3
•
Task: Generation of a BCU debug trigger event on any access into address area
01FFFFFF
H
to FFFFFFFF
H
by the PCP.
For this task the following programming settings for the BCU breakpoint logic must be
executed:
1. Writing SBCU_DBADR1 = 01FFFFFF
H
2. Writing SBCU_DBADR2 = don’t care
3. Writing SBCU_DBCNTL = 00215010
H
:
ONBOS[3:0] = 0000
B
means that a signal status trigger is generated for all FPI Bus
opcodes not equal to a “no operation” opcode.
ONA2 = 00
B
means that no address 2 trigger is generated.
ONA1 = 10
B
means that the address 1 trigger is generated if the FPI Bus address is