Error detection/correction and fault detection/recovery – Data processing system error or fault handling – Reliability and availability
Reexamination Certificate
1999-10-01
2003-09-02
Iqbal, Nadeem (Department: 2184)
Error detection/correction and fault detection/recovery
Data processing system error or fault handling
Reliability and availability
Reexamination Certificate
active
06615370
ABSTRACT:
BACKGROUND OF THE INVENTION
1. Field of the Invention
The invention relates generally to performing trace on a system-on-chip (SOC), and more specifically, to storing trace information.
2. Related Art
System-on-chip devices (SOCs) are well-known. These devices generally include a processor, one or more modules, bus interfaces, memory devices, and one or more system busses for communicating information. Because multiple modules and their communications occur internally to the chip, access to this information is generally difficult when problems occur in software or hardware. Thus, debugging on these systems is not straightforward. As a result of development of these SOCs, specialized debugging systems have been developed to monitor performance and trace information on the chip. Such systems typically include dedicated hardware or software such as a debug tool and debug software which accesses a processor through serial communications.
However, debugging an SOC generally involves intrusively monitoring one or more processor registers or memory locations. Accesses to memory locations are sometimes destructive, and a data access to a location being read from a debugging tool may impede processor performance. Similarly, accesses are generally performed over a system bus to the processor, memory, or other module, and may reduce available bandwidth over the system bus for performing general operations. Some debugging systems do not perform at the same clock speed as that of the processor, and it may be necessary to slow the performance of the processor to enable use of debugging features such as obtaining trace information. By slowing or pausing the processor, some types of errors may not be reproduced, and thus cannot be detected or corrected. Further, accurate information may not be available altogether due to a high speed of the processor; information may be skewed or missing.
Some systems include one or more dedicated functional units within the SOC that are dedicated to debugging the processor, sometimes referred to as a debug unit or module. However, these units affect the operation of the processor when obtaining information such as trace information. These devices typically function at a lower speed than the processor, and thus affect processor operations when they access processor data. The debug system relies upon running debug code on the target processor itself, and this code is usually built into the debugee. Thus, the presence of the debug code is intrusive in terms of memory layout, and instruction stream disruption.
Other debugging systems referred to as in-circuit emulators (ICEs) match on-chip hardware and are connected to it. Thus, on-chip connections are mapped onto the emulator and are accessible on the emulator. However, emulators are prohibitively expensive for some applications, and do not successfully match all on-chip speeds or communications. Thus, emulator systems are inadequate. Further, these systems generally transfer information over the system bus, and therefore necessarily impact processor performance.
Another technique for troubleshooting includes using a Logic State Analyzer (LSA) which is a device connected to pins of the integrated circuit that monitors the state of all off-chip communications. LSA devices are generally expensive devices, and do not allow access to pin information inside the chip. In sum, there are many systems which are inadequate for monitoring the internal states of a processor and for providing features such as real-time state and real-time trace in a non-intrusive manner.
SUMMARY OF THE INVENTION
These and other drawbacks of conventional debug systems are overcome by providing a non-intrusive trace system which receives trace information from one or more processors or other devices. The trace system may include a first-in, first-out (FIFO) buffer which stores trace information. In one embodiment, the FIFO buffer is memory-mapped and is capable of being accessed by other systems without affecting processor performance. In one aspect of the invention, the trace system includes a trace buffer which receives information at an internal clock speed of the processor.
Non-intrusive methods are provided that specify what to do with trace information directly and do not interfere with processor operation. Specifically, the trace system includes devices which operate separately from the processor, operate at internal clock speeds of the processor, or operate in modes wherein the loss of trace information does not affect processor operation. Further, the trace information collected includes all of the information needed to perform trace operations; the processor does not need to be interrupted to obtain additional information, such as by a software program running on a debug tool. According to one aspect of the invention, the trace system is implemented in hardware associated with the processor, the hardware not requiring software intervention. In one embodiment, the trace information includes both address information and message information. In another aspect, the trace information includes timing information. In one aspect, the trace system may be used as a rate converter for converting a transmission rate of messages transmitted to a memory system on-chip or an external system.
In another aspect, the trace information may be compressed by the trace system. By compressing information, trace information is preserved for transmission over lower-bandwidth links and maximizes on-chip trace storage. For example, trace information may be compressed by compressing timestamp and address information. Further, trace information may be compressed by omitting duplicate types of information, such as one trace packet of a particular operation type. Also, information may be filtered by predefining criteria upon which trace information is generated. By filtering information and eliminating duplicate information on-chip, bandwidth requirements of links to external systems and on-chip storage requirements are reduced. A trace message may be compressed by replacing an absolute value of a data field in the message with a relative value. Periodic reference messages including absolute values of compressed information may be provided to provide a reference for the relative value.
These and other advantages are provided by an integrated circuit comprising at least one processor; a debug module operatively connected to the processor, the debug module including a FIFO buffer wherein the debug module is configurable by a user to store trace information produced by the processor in one of the following modes: a mode wherein the FIFO buffer is configured as a circular buffer; a mode wherein the debug module stops storing trace information when the FIFO buffer is full; and a mode wherein the debug module discards additional trace information when the FIFO buffer is full.
In one aspect, the debug module provides an indication to the processor that the FIFO is approaching a full level. The debug module may, for example, provide the indication within a finite number of storage locations from the full level of the FIFO. In one aspect, in the mode wherein the debug module stops storing trace information when the FIFO buffer is full, the integrated circuit generates an interrupt to disable storing of trace information or the generation of trace information. The integrated circuit may also execute handler code that accepts the interrupt and disables the storing of trace information or the creation of trace information, or empties the FIFO such that additional trace information can be stored. Alternatively, a software system may be provided that allows a user to manually inspect contents of the FIFO. In one aspect, the trace information includes address and message information.
In one aspect, the trace information is stored on byte-based boundaries. In one aspect, the trace information stored in the FIFO includes variable length messages. The trace information may also include a plurality of state information bits representing triggered conditions of the processor.
In on
Edwards David Alan
Rich Anthony Willis
Iqbal Nadeem
Townsend and Townsend / and Crew LLP
LandOfFree
Circuit for storing trace information does not yet have a rating. At this time, there are no reviews or comments for this patent.
If you have personal experience with Circuit for storing trace information, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Circuit for storing trace information will most certainly appreciate the feedback.
Profile ID: LFUS-PAI-O-3045526