Download TABLE OF CONTENTS (Continued)

Transcript
Development Support
Table 19-5. Load/Store Data Events
EVENT NAME
EVENT FUNCTION (SEE NOTE)
G
(Gmatch0 | Gmatch1 | Gmatch2 | Gmatch3)
H
(Hmatch0 | Hmatch1 | Hmatch2 | Hmatch3)
(G & H)
((Gmatch0 & Hmatch0) | (Gmatch1 & Hmatch1) | (Gmatch2 & Hmatch2) | (Gmatch3 & Hmatch3))
(G | H)
((Gmatch0 | Hmatch0) | (Gmatch1 | Hmatch1) | (Gmatch2 | Hmatch2) | (Gmatch3 | Hmatch3))
NOTE:
& denotes a logical AND, but | denotes a logical OR.
The four load/store data events, combined with the match events of the load/store address
comparators and the instruction watchpoints, are used to generate the load/store
watchpoints and breakpoint according to the user’s programming.
Table 19-6. Load/Store Watchpoints Programming Options
NAME
DESCRIPTION
INSTRUCTION EVENTS
PROGRAMMING
OPTIONS
L-ADDRESS EVENTS
PROGRAMMING
OPTIONS
L-DATA EVENTS
PROGRAMMING
OPTIONS
LW0
1st Load/Store
Watchpoint
IW0, IW1, IW2, IW3,
Ignore Instruction
Events
Comparator E
Comparator F
Comparators (E & F)
Comparators (E | F)
Ignore L-addr Events
Comparator G
Comparator H
Comparators (G & H)
Comparators (G | H)
Ignore L-data Events
LW1
2nd Load/Store
Watchpoint
IW0, IW1, IW2, IW3,
Ignore Instruction
Events
Comparator E
Comparator F
Comparators (E & F)
Comparators (E | F)
Ignore I-addr Events
Comparator G
Comparator H
Comparators (G & H)
Comparators (G | H)
Ignore L-data Events
When programming the load/store watchpoints to ignore L-addr events and L-data events,
the instruction must be a load/store instruction for the load/store watchpoint event to trigger.
19.2.2.3 THE COUNTERS. There are two 16-bit down counters. Each counter is able to
count one of the instruction watchpoints or one of the load/store watchpoints. Both generate
the corresponding breakpoint when they reach zero. When working in the masked mode,
the counters do not count detected watchpoints when MSRRI =0. For details, refer to
Section 19.2.1.4 Context Dependent Filter. Counter values are not predictable if they are
counting watchpoints programmed on the instructions that alter the counters. Readings from
the counters when active must be synchronized by inserting a sync instruction before the
read is performed.
MOTOROLA
MPC821 USER’S MANUAL
19-17