Patent US4924382A successfully refreshed from Google Patents.
← Back to Patent Explorer
US4924382A Expired / Lapsed US ⏱️ 0.0 years remaining

Debugging microprocessor capable of switching between emulation and monitor without accessing stack area

Assignee: NEC Electronics Corp
•
Filing: 1988-10-05
•
Granted: 1990-05-08
•
Expires: 2008-10-05
📄 Original PDF 🌐 Google Patents 🔄 Sync Now

Abstract

Abstract A debugging microprocessor used in an in-circuit emulator is made to be capable of moving into a debugging interrupt processing execution mode in response to an external supervisor interrupt instruction. This debugging microprocessor comprises a first program counter put in an operating condition when the microprocessor is in a user's program execution mode, a second program counter put in an operating condition when the microprocessor is in a debugging interrupt processing execution mode, and a program counter controller responding to the external supervisor interrupt instruction to cause a content of the second program counter to be outputted as a program counter value. The program counter controller also responds to a return instruction to cause a content of the first program counter to be outputted as a program counter value. Thus, the content of the first program counter can be accessed in the course of the debugging interrupt processing execution.

Inventors

  • 👤 Masahiro Shouda

Bibliographic Details

Application Number —
Jurisdiction US
Data Source google_patents
Last Synchronized 2026-11-05 09:27
CPC Classifications
G; G06; G06F; G06F11/00; G06F11/36; G06F11/362; G06F11/3648

Claims Analysis

Total Claims: 6
Claim 1
Independent Claim 320 words
A debugging microprocessor for moving into a debugging interrupt processing execution mode in response to an external supervisor interrupt instruction, comprising an execution controller for generating a supervisor interrupt acknowledge signal after an execution of an instruction being executed when a reception of a supervisor interrupt request has been completed, and also for generating a return instruction execution signal when a return instruction has been executed, a first program counter put in an operating condition when said microprocessor is in a user's program execution mode, a second program counter put in an operating condition when said microprocessor is in a debugging interrupt processing execution mode, a program counter controller coupled to receive said supervisor interrupt acknowledge signal and said return instruction execution signal and also coupled to said first and second program counters for controlling said first and second program counters, said program counter controller responding to the said supervisor interrupt acknowledge signal to disable said first program counter and to enable said second program counter so as to cause the content of said second program counter to be outputted as an address for a debug memory, and also responding to said return instruction execution signal to disable said second program counter and to enable said first program counter so as to cause the content of said first program counter to be outputted as an address for a user memory, and an address controller coupled to said first and second program counters so as to execute an instruction fetch cycle on the basis of an address outputted from an enabled one of said first and second program counters so that an instruction read in the instruction fetch cycle is fetched through an external bus and through an internal bus to a register and decoded so as to be executed, so that the content of the first program counter can be accessed in the course of the debugging interrupt processing operation.
Claim 2
Dependent Claim 320 words
A debugging microprocessor for moving into a debugging interrupt processing execution mode in response to an external supervisor interrupt instruction, comprising an execution controller for generating a supervisor interrupt acknowledge signal after an execution of an instruction being executed when a reception of a supervisor interrupt request has been completed, and also for generating a return instruction execution signal when a return instruction has been executed, a first program counter put in an operating condition when said microprocessor is in a user's program execution mode, a second program counter put in an operating condition when said microprocessor is in a debugging interrupt processing execution mode, a program counter controller coupled to receive said supervisor interrupt acknowledge signal and said return instruction execution signal and also coupled to said first and second program counters for controlling said first and second program counters, said program counter controller responding to the said supervisor interrupt acknowledge signal to disable said first program counter and to enable said second program counter so as to cause the content of said second program counter to be outputted as an address for a debug memory, and also responding to said return instruction execution signal to disable said second program counter and to enable said first program counter so as to cause the content of said first program counter to be outputted as an address for a user memory, and an address controller coupled to said first and second program counters so as to execute an instruction fetch cycle on the basis of an address outputted from an enabled one of said first and second program counters so that an instruction read in the instruction fetch cycle is fetched through an external bus and through an internal bus to a register and decoded so as to be executed, so that the content of the first program counter can be accessed in the course of the debugging interrupt processing operation.
Claim 3
Dependent Claim 95 words
A debugging microprocessor claimed in claim 1 wherein said address controller is coupled to an external address bus which is also coupled to said debug memory and said user memory, so that the content of said second program counter is outputted through said address controller and said external address bus to said debug memory at the time of executing said external supervisor interrupt instruction and the content of said first program counter is outputted through said address controller and said external address bus to said user memory at the time of executing said return instruction.
Claim 4
Dependent Claim 40 words
A debugging microprocessor claimed in claim 2 further including a segment and an adder coupled to receive and add the content of said segment and the content of said second program counter for generating an address for said debug memory.
Claim 5
Dependent Claim 359 words
A debugging microprocessor for moving into a debugging interrupt processing execution mode in response to an external supervisor interrupt instruction, comprising an execution controller for generating a supervisor interrupt acknowledge signal after an execution of an instruction being executed when reception of a supervisor interrupt request has been completed, and also for generating a return instruction execution signal when a return instruction has been executed, a first program counter put in an operating condition when said microprocessor is in a user's program execution mode, a second program counter put in an operating condition when said microprocessor is in a said debugging interrupt processing execution mode, a segment for generating a portion of an address of a debug memory, and an adder coupled to receive and add the content of said segment and the content of said second program counter for generating a completed address for said debug memory, a program counter controller coupled to receive said supervisor interrupt acknowledge signal and said return instruction execution signal and also coupled to said first and second program counters, said segment and said adder for controlling said first and second program counters, said segment and said adder, said program counter controller responding to said supervisor interrupt acknowledge signal to disable said first program counter and to enable said second program counter, said segment and said adder so as to cause an output of said adder to be outputted as the address for said debug memory, and also responding to said return instruction execution signal to disable said second program counter, said segment and said adder and to enable said first program counter so as to cause the content of said first program counter to be outputted as an address for a user memory, and an address controller coupled to said first and second program counters so as to execute an instruction fetch cycle on the basis of an address outputted from an enabled one of said first and second program counters so that an instruction read in said instruction fetch cycle is fetched through an external bus and through an internal bus to a register and decoded so as to be executed.
Claim 6
Dependent Claim 359 words
A debugging microprocessor for moving into a debugging interrupt processing execution mode in response to an external supervisor interrupt instruction, comprising an execution controller for generating a supervisor interrupt acknowledge signal after an execution of an instruction being executed when reception of a supervisor interrupt request has been completed, and also for generating a return instruction execution signal when a return instruction has been executed, a first program counter put in an operating condition when said microprocessor is in a user's program execution mode, a second program counter put in an operating condition when said microprocessor is in a said debugging interrupt processing execution mode, a segment for generating a portion of an address of a debug memory, and an adder coupled to receive and add the content of said segment and the content of said second program counter for generating a completed address for said debug memory, a program counter controller coupled to receive said supervisor interrupt acknowledge signal and said return instruction execution signal and also coupled to said first and second program counters, said segment and said adder for controlling said first and second program counters, said segment and said adder, said program counter controller responding to said supervisor interrupt acknowledge signal to disable said first program counter and to enable said second program counter, said segment and said adder so as to cause an output of said adder to be outputted as the address for said debug memory, and also responding to said return instruction execution signal to disable said second program counter, said segment and said adder and to enable said first program counter so as to cause the content of said first program counter to be outputted as an address for a user memory, and an address controller coupled to said first and second program counters so as to execute an instruction fetch cycle on the basis of an address outputted from an enabled one of said first and second program counters so that an instruction read in said instruction fetch cycle is fetched through an external bus and through an internal bus to a register and decoded so as to be executed.

References Cited (Backward Citations)

US3373408A Cited
US4128878A Cited
US4167781A Cited
US4255786A Cited
US4636945A Cited
US4670838A Cited

USPTO Annuity & Maintenance Windows

Annuity Stage Window Opens Payment Deadline Surcharge Period Until Estimated Fee Status
3.5 Years (Year 4) 1993-05-07 1993-11-06 1994-05-08 $2000.00 Window Closed / Lapsed
7.5 Years (Year 8) 1997-05-07 1997-11-06 1998-05-08 $3760.00 Window Closed / Lapsed
11.5 Years (Year 12) 2001-05-07 2001-11-06 2002-05-08 $7700.00 Window Closed / Lapsed

Assigned Categories & Tags

No categories assigned to this patent yet.

Assign Category Tag