Claims
- 1. A circuit for tracing program execution within a processor, said circuit comprising:circuitry for acquiring instructions occurring before and after a triggering event; and circuitry for providing said acquired instructions externally from said processor.
- 2. The circuit as recited in claim 1, further comprising:circuitry for detecting said triggering event, wherein said triggering event is a predetermined action occurring in said processor.
- 3. The circuit as recited in claim 2, wherein said triggering event is an Nth time said predetermined action has occurred in said processor, wherein N is a positive integer greater than one.
- 4. The circuit as recited in claim 2, wherein said acquired instructions have been completed in real-time by said processor.
- 5. The circuit as recited in claim 1, wherein said acquiring circuitry is coupled to one or more registers within said processor.
- 6. The circuit as recited in claim 5, wherein said one or more registers includes a link register, a count register, and an instruction address register.
- 7. The circuit as recited in claim 6, wherein said acquiring circuitry further comprises:a FIFO, coupled to said link register, count register, and instruction address register, for temporarily storing information received from said link register, count register, and instruction address register, and serialization circuitry, coupled to said FIFO, for serialization of said information.
- 8. The circuit as recited in claim 1, further comprising:circuitry for acquiring one or more synchronizing events occurring before said triggering event, wherein said one or more synchronizing events signify a state of said processor at a predetermined number of clock cycles before said triggering event.
- 9. The circuit as recited in claim 1, wherein the triggering event is a predetermined action occurring in the processor.
- 10. The circuit as recited in claim 9, wherein the triggering event occurs when an event occurs within the processor that matches an event predesignated by a user of the processor.
- 11. The circuit as recited in claim 8, wherein said traced instructions provided externally from said processor occur after said one or more synchronizing events and before said triggering event.
- 12. The circuit as recited in claim 1, wherein said triggering event is encoded before being provided externally from said processor.
- 13. An integrated circuit for tracing program execution within a processor embedded in said integrated circuit, said integrated circuit comprising:circuitry for acquiring completed instructions occurring before and after a triggering event detected within said processor, wherein said triggering event is a predetermined action occurring in said processor, and circuitry for providing said acquired completed instructions externally from said processor.
- 14. The integrated circuit as recited in claim 13, wherein said acquiring circuitry further comprises:a FIFO, coupled to a link register, count register, and instruction address register in said processor, for temporarily storing instructions received from said link register, count register, and instruction address register; and serialization circuitry, coupled to said FIFO, for serialization of said instructions.
- 15. The integrated circuit as recited in claim 14, further comprising:a counter; and circuitry for acquiring one or more synchronizing events occurring before said triggering event, wherein said one or more synchronizing events signify a state of said processor a number of clock cycles before said triggering event, wherein said number of clock cycles is determined by said counter.
- 16. The integrated circuit as recited in claim 15, wherein said one or more synchronizing events are temporarily stored in said FIFO and then serialized for output from said integrated circuit by said serialization circuitry.
- 17. The integrated circuit as recited in claim 13, further comprising circuitry for outputting from said integrated circuit instruction execution status information from said processor.
- 18. The integrated circuit as recited in claim 14, further comprising circuitry for delaying output of instructions from said FIFO while information regarding said triggering event is output from said integrated circuit.
- 19. The integrated circuit as recited in claim 13, wherein said triggering event is an Nth time said predetermined action has occurred in said processor, wherein N is a positive integer greater than one.
CROSS-REFERENCE TO RELATED PATENT APPLICATION
This is a continuation of application Ser. No. 08/760,553 filed Dec. 5, 1996, now issued U.S. Pat. No. 5,996,092.
This application for patent is related to U.S. patent application Ser. No. 08/283,128 entitled “A SYSTEM AND METHOD FOR PROGRAM EXECUTION TRACING WITHIN AN INTEGRATED PROCESSOR”, now issued U.S. Pat. No. 5,809,293, which is hereby incorporated by reference herein.
US Referenced Citations (7)
Continuations (1)
|
Number |
Date |
Country |
| Parent |
08/760553 |
Dec 1996 |
US |
| Child |
09/412124 |
|
US |