Emulation system with peripherals recording emulation frame when stop generated
First Claim
1. A method of in circuit emulation of an integrated circuit including a digital data processor capable of executing program instructions, comprising the steps of:
- detecting a first debug event during normal program execution;
upon detection of the first debug event suspending normal program execution while permitting at least one type interrupt service routine executed in response to a corresponding interrupt;
incrementing a debug frame counter upon each of the at least one type interrupt received while suspending normal program execution;
decrementing the debug frame counter upon each return from interrupt received while suspending normal program execution;
detecting at least one second debug event during an interrupt service routine executing while suspending normal program execution;
upon detection of the second debug event suspending program execution of the interrupt service routine while permitting execution of other interrupt service routines in response to corresponding interrupts; and
storing the count of said debug frame counter upon each second debug event.
0 Assignments
0 Petitions
Accused Products
Abstract
In-circuit-emulation of an integrated circuit includes a digital data processor capable of executing program instructions. A first debug event is detected during normal program execution. The causes the in-circuit-emulation to suspend program execution except for real time interrupts. A debug frame counter increments on each interrupt and decrements on each return from interrupt. If a debug event is detected during an interrupt service routine, that interrupt service routine is suspended and the count of the debug frame counter is stored. Execution of other interrupt service routines in response to corresponding interrupts is still permitted. The integrated circuit includes plural debug event detectors and the debug frame count is stored at the detector detecting a debug event during an interrupt service routine. This permits a determination of the order of interrupts triggering debug events by reading the stored debug frame count from each debug event detector.
-
Citations
7 Claims
-
1. A method of in circuit emulation of an integrated circuit including a digital data processor capable of executing program instructions, comprising the steps of:
-
detecting a first debug event during normal program execution; upon detection of the first debug event suspending normal program execution while permitting at least one type interrupt service routine executed in response to a corresponding interrupt; incrementing a debug frame counter upon each of the at least one type interrupt received while suspending normal program execution; decrementing the debug frame counter upon each return from interrupt received while suspending normal program execution; detecting at least one second debug event during an interrupt service routine executing while suspending normal program execution; upon detection of the second debug event suspending program execution of the interrupt service routine while permitting execution of other interrupt service routines in response to corresponding interrupts; and storing the count of said debug frame counter upon each second debug event. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
Specification