Data processing system for performing a debug function and method therefor
AssigneeMotorola, Inc.
InventorsJoseph C. Circello, William A. Hohl
Life of this patent
Estimating the term…
Abstract
A data processor (3) executes a debug operation by minimally intruding on the real time operation of the data processor and without halting the data processor. The data processor implements a control register (40) which stores trigger response value for determining a function executed by the data processor when a breakpoint signal is asserted. The trigger response values indicates whether a central processing unit (2) of the data processor executes a special debug exception processing routine or suspends operation when the breakpoint signal is asserted.
Claims8
A data processor comprising:
- a central processor unit for executing instructions sequentially having a first debug state for executing a breakpoint exception routine and a second debug state for suspending sequential execution of instructions pending an external event;
- input means for receiving a breakpoint value and one of a plurality of breakpoint response values;
- a control register coupled to the input means for storing the breakpoint response value;
- a breakpoint register coupled to the input means for storing the breakpoint value;
- a breakpoint circuit coupled to the breakpoint register, and a data bus for generating a breakpoint signal when the breakpoint value matches a value on the data bus;
- a control circuit coupled to the control register, the central processor unit, and coupled to receive the breakpoint signal, wherein the control circuit causes the central processor unit to operate in the first state when the breakpoint response value is a first value and the control circuit causes the central processor unit to operate in the second state when the breakpoint response value is a second value.
A method of performing a debug function on a data processor, the method comprising:
- storing a breakpoint value in a first memory location;
- storing a breakpoint response value in a second memory location;
- executing instructions sequentially on a central processor unit, the central processor unit having a current data value;
- comparing the current data value to the breakpoint value for determining if a breakpoint match has occurred;
- suspending execution of instructions on the central processor unit when the breakpoint match occurs an the breakpoint response value is a first value;
- executing a breakpoint routine on the central processor unit when the breakpoint match occurs and the breakpoint response value is a second value.
Dependencies are inferred from the claim text.