Data processor with real-time diagnostic capability
AssigneeMotorola, Inc.
InventorsDavid R. Gonzales, Gordon A. Carichner
Life of this patent
Estimating the term…
Abstract
A data processor (20) includes a diagnostic circuit (23) with a first-in, first-out memory (FIFO) (25) for storing sequential states of an internal bus, such as a program address bus. In one mode, the diagnostic circuit (23) halts a central processing unit (CPU) (21) and the FIFO (25) on the occurrence of an event condition, such as a hardware breakpoint. In a second mode, the diagnostic circuit (23) halts the FIFO (25) but keeps the CPU (21) in normal operation. Thus, the contents of the FIFO (25) may be examined through a serial port while the CPU (21) is executing instructions normally.
Claims11
A data processor with real-time diagnostic capability, comprising:
- a central processing unit (CPU) coupled to a bus, for continuously executing instructions during a normal operation mode, and for suspending instruction execution in response to a CPU halt signal;
- a first-in, first-out memory (FIFO) coupled to a portion of said bus, for sequentially storing states of said portion of said bus at corresponding locations of a plurality of locations when a FIFO halt signal is inactive;
- and
- a debug controller coupled to said CPU and to said FIFO, for activating both said CPU halt signal and said FIFO halt signal in response to an event condition in a first mode, and for activating said FIFO halt signal but keeping said CPU halt signal inactive in response to said event condition in a second mode,
- wherein said plurality of locations of said FIFO are observable while said CPU is in said normal operation mode.
The data processor of claim I further comprising a serial port coupled to said FIFO and to said debug controller having a serial input for receiving serial input data for selectable storage in either said FIFO or said debug controller, and a serial output for providing serial output data from a selectable one of either said FIFO or said debug controller.
A data processor with real-time diagnostic capability, comprising:
- a central processing unit (CPU) coupled to a bus, said CPU having a control input for receiving a CPU halt signal, said CPU continuously executing instructions during a normal operation mode, and for suspending instruction execution in response to said CPU halt signal;
- a serial input/output port having a serial input terminal for receiving serial input data, and an output terminal for transmitting serial data;
- a first-in, first-out memory (FIFO) coupled to a portion of said bus and to said output terminal of said serial input/output port, for sequentially storing states of said portion of said bus at corresponding locations of a plurality of locations when a FIFO halt signal is inactive;
- and
- a debug controller coupled to said output terminal of said serial input/output port, for activating both said CPU halt signal and said FIFO halt signal in response to an event condition in a first mode, and for activating said FIFO halt signal but keeping said CPU halt signal inactive in response to said event condition in a second mode,
- wherein said plurality of locations of said FIFO are observable while said CPU is in said normal operation mode.
A diagnostic circuit, comprising:
- a serial input port having a serial input terminal for receiving serial input data, and an output terminal;
- a first-in, first-out memory (FIFO) coupled to a portion of a bus and to said output terminal of said serial input port, for sequentially storing states of said portion of said bus at corresponding locations of a plurality of locations when a FIFO halt signal is inactive;
- a debug controller coupled to said output terminal of said serial input/output port, for activating both a CPU halt signal and said FIFO halt signal in response to an event condition in a first mode, and for activating said FIFO halt signal but keeping said CPU halt signal inactive in response to said event condition in a second mode;
- and
- a control register, coupled to said debug controller, for storing a plurality of control bits including at least one event modifier bit, said at least one event modifier bit determining whether said debug controller is in said first mode or said second mode,
- wherein said plurality of locations of said FIFO are observable in said second mode.
Dependencies are inferred from the claim text.