37-18
MPC860 PowerQUICC UserÕs Manual
MOTOROLA
Part VI. Debug and Test
37.2.4.5 Generating Six Compare Types
The four compare types (equal, not equal, greater than, and less than) can be used to
generate two additional compare typesÑgreater than or equal to and less than or equal to.
The greater-than-or-equal compare type can be generated by using the greater-than
compare type and programming the comparator to the value in question minus 1. Likewise,
the less-than-or-equal compare type can be generated by using the less-than compare type
and programming the comparator to the value in question plus 1. This does not work for the
following boundary cases:
¥
Less than or equal of the largest unsigned number (1111...1).
¥
Greater than or equal of the smallest unsigned number (0000...0).
¥
Less than or equal of the maximum positive number in signed mode (0111...1).
¥
Greater than or equal of the maximum negative number in signed mode (1000...).
These boundary cases do not require special support because they are considered always
true. They can be programmed using the ignore option of the load/store watchpoint
programming. See Section 37.5.1.5, ÒLoad/Store Support AND-OR Control Register
(LCTRL2).Ó
37.2.5 Load/Store Breakpoint Example
CMPE and CMPF are used for load/store addresses while CMPG and CMPH are used for
load/store data.
The procedure is as follows:
1. Write the value in the appropriate comparator register, CMPE, CMPF, CMPG, or
CMPH.
2. For load/store data, program the operand size in LCTRL1[CSx] and the byte mask
in LCTRL1[CxBMSK].
3. Write the comparison type in LCTRL1[CTx]. For load/store data, program whether
the operand is signed or unsigned LCTRL1[SUSx].
4. Select a watchpoint enable event:
Ñ DeÞne the load/store watchpoint event in LCTRL2[LWxLA] or
LCTRL2[LWxLD]
Ñ Enable the address or data event in LCTRL2[LWxLADC] or
LCTRL2[LWxLDDC]
5. Disable instruction events affecting load/store watchpointsÑClear LWxIADC
(LWxIA is a donÕt care).
6. Enable the watchpoint in LCTRL2[LWxEN].
7. Enable a trap on every watchpoint or every N watchpoints.
Содержание MPC860 PowerQUICC
Страница 3: ...MPC860UM AD 07 98 REV 1 MPC860 PowerQUICC ª UserÕs Manual ...
Страница 36: ...xxxvi MPC860 PowerQUICC UserÕs Manual MOTOROLA CONTENTS Paragraph Number Title Page Number ...
Страница 78: ...I iv MPC860 PowerQUICC UserÕs Manual MOTOROLA Part I Overview ...
Страница 88: ...1 10 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part I Overview ...
Страница 114: ...3 16 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part I Overview ...
Страница 226: ...8 32 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part II PowerPC Microprocessor Module ...
Страница 262: ...9 36 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part II PowerPC Microprocessor Module ...
Страница 274: ...III iv MPC860 PowerQUICC UserÕs Manual MOTOROLA Part III Configuration ...
Страница 320: ...12 12 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part III Configuration ...
Страница 325: ...MOTOROLA Part IV Hardware Interface IV v Part IV Hardware Interface ...
Страница 326: ...IV vi MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 352: ...13 26 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 394: ...14 42 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 426: ...15 32 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 530: ...17 26 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 632: ...21 44 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 660: ...22 28 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 708: ...24 24 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 748: ...27 20 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 846: ...31 20 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 914: ...35 12 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 948: ...36 34 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 998: ...37 48 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part VI Debug and Test ...
Страница 1016: ...A 10 MPC860 PowerQUICC UserÕs Manual MOTOROLA Appendixes ...
Страница 1024: ...B 8 MPC860 PowerQUICC UserÕs Manual MOTOROLA Appendixes ...
Страница 1030: ...C 6 MPC860 PowerQUICC UserÕs Manual MOTOROLA Appendixes ...
Страница 1086: ...Glossary 12 MPC860 PowerQUICC UserÕs Manual MOTOROLA ...
Страница 1106: ......