In-circuit-emulation event management system
First Claim
1. A microprocessor with an in-circuit-emulator having an interrogation mode and an emulation mode, wherein said microprocessor outputs a plurality of trace messages over an in-circuit emulator bus, said in-circuit-emulator comprising:
- an ICEBRK pin, which when asserted for a predetermined minimum period of time, causes the microprocessor to immediately cease executing new instructions when the microprocessor transitions from said emulation mode to said interrogation mode.
1 Assignment
0 Petitions
Accused Products
Abstract
A microprocessor system utilizing an in-circuit emulator (ICE) to aid in testing and debugging by an external emulator. The microprocessor operates in two modes. One mode is emulation mode in which the microprocessor outputs trace information for allowing the emulator to reconstruct microprocessor execution, and the other mode is interrogation mode where the microprocessor ceases emulation mode, and allows the emulator to modify the state of the microprocessor or interrogate it. An ICEBRK signal is provided on the microprocessor to better handle transition from emulation to interrogation mode. An address mark counter and generator is provided to force the microprocessor to automatically issue an address mark message which includes the location of the microprocessor'"'"'s instruction pointer. An AMCTRL bit may be further provided to allow a human user to selectively inhibit the issuance of an address mark. An ICELOCK signal is provided on the microprocessor to control the writing of control registers during hardware and software initialization that the microprocessor performs. A MSGFRM signal is provided to aid the emulator in capturing trace information generated at high frequencies (in excess of 40 MHz).
107 Citations
12 Claims
-
1. A microprocessor with an in-circuit-emulator having an interrogation mode and an emulation mode, wherein said microprocessor outputs a plurality of trace messages over an in-circuit emulator bus, said in-circuit-emulator comprising:
an ICEBRK pin, which when asserted for a predetermined minimum period of time, causes the microprocessor to immediately cease executing new instructions when the microprocessor transitions from said emulation mode to said interrogation mode.
-
2. A microprocessor with an in-circuit-emulator having an interrogation mode and an emulation mode, wherein said microprocessor outputs a plurality of trace messages over an in-circuit emulator bus, said in-circuit-emulator supporting a plurality of initialization modes and a plurality of control registers, said in-circuit-emulator comprising:
an ICELOCK pin, which when asserted during said initialization mode, clears a first set of control registers in said in-circuit-emulator during initialization, wherein said ICELOCK pin when asserted also protects from being overwritten a second set of control registers when the in-circuit-emulator is engaged in said initialization mode, whereby the processor is configured for operation in said emulation mode. - View Dependent Claims (3)
-
4. A microprocessor with an in-circuit-emulator having an interrogation mode and an emulation mode, wherein said microprocessor outputs a plurality of trace messages over an in-circuit emulator bus, said in-circuit-emulator comprising:
- ;
an address mark counter loaded to an initial value upon the occurrence of a first predetermined condition, wherein said address mark counter is updated every clock cycle of said microprocessor, provided that a second predetermined condition does not occur; an address mark generator coupled to said address mark counter which automatically issues an address mark trace message upon said address mark counter reaching a predetermined state. - View Dependent Claims (5)
- ;
-
6. A microprocessor with an in-circuit-emulator having an interrogation mode and an emulation mode, said microprocessor for coupling to a host emulator, wherein said microprocessor outputs a plurality of trace messages over an in-circuit emulator bus, said in-circuit-emulator further comprising:
a MSGFRM signal which indicates to the host emulator that a first byte of said trace message has been issued to the in-circuit emulator bus.
-
7. In a microprocessor with an in-circuit-emulator having an interrogation mode and an emulation mode, wherein said microprocessor outputs a plurality of trace messages over an in-circuit emulator bus, a method for controlling the operation of said in-circuit-emulator comprising the steps of:
asserting an ICEBRK pin for a predetermined minimum period of time causing the microprocessor to immediately cease executing new instructions when the microprocessor transitions from said emulation mode to said interrogation mode.
-
8. In a microprocessor with an in-circuit-emulator having an interrogation mode and an emulation mode, wherein said microprocessor outputs a plurality of trace messages over an in-circuit emulator bus, said in-circuit-emulator supporting a plurality of initialization modes and a plurality of control registers, a method for controlling the operation of said in-circuit-emulator comprising the steps of:
-
asserting an ICELOCK pin during said initialization mode, clearing a first set of control registers in said in-circuit-emulator during initialization, protecting from being overwritten a second set of control registers when the in-circuit-emulator is engaged in said initialization mode configuring the microprocessor for operation in said emulation mode. - View Dependent Claims (9)
-
-
10. In a microprocessor with an in-circuit-emulator having an interrogation mode and an emulation mode, wherein said microprocessor outputs a plurality of trace messages over an in-circuit emulator bus, a method for controlling the operation of said in-circuit-emulator comprising the steps of:
-
loading an address mark counter with an initial value upon the occurrence of a first predetermined condition, updating said address mark counter every clock cycle of said microprocessor, provided that a second predetermined condition does not occur; automatically issuing an address mark with an address mark trace message upon said address mark counter reaching a predetermined state. - View Dependent Claims (11)
-
-
12. In a microprocessor with an in-circuit-emulator having an interrogation mode and an emulation mode, said microprocessor for coupling to a host emulator, wherein said microprocessor outputs a plurality of trace messages over an in-circuit emulator bus, a method for controlling the operation of said in-circuit-emulator further comprising the steps of:
generating a MSGFRM signal to indicate to the host emulator that a first byte of said trace message has been issued to the in-circuit emulator bus.
Specification