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

Microprocessor for debugging programs

Assignee: Mitsubishi Electric Corp
•
Filing: 1993-11-12
•
Granted: 1995-01-03
•
Expires: 2013-11-12
📄 Original PDF 🌐 Google Patents 🔄 Sync Now

Abstract

Abstract A microprocessor, comprising a register 18 for setting either a first mode in which a trap instruction is not executed, or a second mode in which the trap instruction can be executed is set, wherein an instruction decoding circuit 23, in case of operating in the first mode, outputs an internal signal SG1 directing execution of a subroutine call, when decoding a subroutine call instruction, to an instruction executing unit 14, and in case of operating in the second mode, outputs the internal signal SG1 directing execution of a trap when decoding the subroutine call instruction, to the instruction executing unit 14. By such a configuration, a break can be effected in a unit of subroutine under a simple control when debugging the program, and by enabling the breaking without decoding a program to be debugged, the debugging can be effected efficiently under a real time environment.

Inventors

  • 👤 Koichi Sato
  • 👤 Koji Hirano
  • 👤 Kazunori Saitoh

Bibliographic Details

Application Number —
Jurisdiction US
Data Source google_patents
Last Synchronized 2026-10-23 13:55
CPC Classifications
G; G06; G06F; G06F11/00; G06F11/36; G06F11/362; G06F11/3648

Claims Analysis

Total Claims: 13
Claim 1
Independent Claim 171 words
A microprocessor, comprising: instruction fetching means for fetching respective instruction of an instruction set including a subroutine call instruction and a trap instruction from external storing means; instruction decoding means for decoding the instruction fetched into said instruction fetching means, and outputting an internal signal responding to a decoded result; instruction executing means for executing the instruction according to the internal signal outputted from said instruction decoding means; and mode setting means for setting either a first mode in which the trap instruction is not executed, or a second mode in which the trap instruction can be executed; wherein said instruction decoding means, in case where said first mode is set in said mode setting means, outputs the internal signal directing execution of a subroutine call to said instruction executing means when decoding the subroutine call instruction, and in case where said second mode is set in said mode setting means, outputs the internal signal directing execution of a trap to said instruction executing means when decoding the subroutine call instruction.
Claim 2
Dependent Claim 171 words
A microprocessor, comprising: instruction fetching means for fetching respective instruction of an instruction set including a subroutine call instruction and a trap instruction from external storing means; instruction decoding means for decoding the instruction fetched into said instruction fetching means, and outputting an internal signal responding to a decoded result; instruction executing means for executing the instruction according to the internal signal outputted from said instruction decoding means; and mode setting means for setting either a first mode in which the trap instruction is not executed, or a second mode in which the trap instruction can be executed; wherein said instruction decoding means, in case where said first mode is set in said mode setting means, outputs the internal signal directing execution of a subroutine call to said instruction executing means when decoding the subroutine call instruction, and in case where said second mode is set in said mode setting means, outputs the internal signal directing execution of a trap to said instruction executing means when decoding the subroutine call instruction.
Claim 3
Dependent Claim 208 words
A microprocessor, comprising: instruction fetching means for fetching respective instructions of an instruction set including a subroutine call instruction and a trap instruction from external storing means; instructions decoding means for decoding the instruction fetched into said instruction fetching means, and outputting a microprogram address responding to the decoded result as an internal signal; microprogram storing means for storing the microprogram responding to the respective instructions of said instruction set; instruction executing means for executing the microprogram stored in an address of said microprogram storing means designated by the internal signal outputted from said instruction decoding means; and mode setting means for setting either a first mode in which the trap instruction is not executed, or a second mode in which the trap instruction can be executed; wherein said instruction decoding means, in case where said first mode is set in said mode setting means, outputs to said microprogram storing means the internal signal directing the address of the microprogram executing a subroutine call when decoding the subroutine call instruction, and in case where said second mode is set in said mode setting means, outputs to said microprogram storing means the internal signal directing the address of the microprogram executing a trap when decoding the subroutine call instruction.
Claim 4
Dependent Claim 208 words
A microprocessor, comprising: instruction fetching means for fetching respective instructions of an instruction set including a subroutine call instruction and a trap instruction from external storing means; instructions decoding means for decoding the instruction fetched into said instruction fetching means, and outputting a microprogram address responding to the decoded result as an internal signal; microprogram storing means for storing the microprogram responding to the respective instructions of said instruction set; instruction executing means for executing the microprogram stored in an address of said microprogram storing means designated by the internal signal outputted from said instruction decoding means; and mode setting means for setting either a first mode in which the trap instruction is not executed, or a second mode in which the trap instruction can be executed; wherein said instruction decoding means, in case where said first mode is set in said mode setting means, outputs to said microprogram storing means the internal signal directing the address of the microprogram executing a subroutine call when decoding the subroutine call instruction, and in case where said second mode is set in said mode setting means, outputs to said microprogram storing means the internal signal directing the address of the microprogram executing a trap when decoding the subroutine call instruction.
Claim 5
Dependent Claim 209 words
A microprocessor, comprising: instruction fetching means for fetching respective instructions of an instruction set including a first kind of instruction executing non-consecutive processing and a second kind of instruction executing consecutive processing from external storing means; instruction decoding means for decoding the instructions fetched into said instruction fetching means, and outputting an internal signal responding to the decoded result; instruction executing means for executing the instructions according to the internal signal outputted from said instruction decoding means, and information saving controlling means for, when an instruction fetched by said instruction fetching means is said first kind of instruction, controlling to save information necessary for executing said first or second instruction succeeding said fetched instruction in the external storing means; further comprising: saved information holding means for holding same information as that saved in the external storing means by said information saving controlling means; and comparing means for comparing information fetched from the external storing means to execute the instruction succeeding said first kind of instruction by said instruction executing means with information saved in said saved information holding means, and for, when the comparing result by said comparing means coincides, making said instruction executing means break all subsequent processings without executing the instruction succeeding said first kind of instruction.
Claim 6
Dependent Claim 209 words
A microprocessor, comprising: instruction fetching means for fetching respective instructions of an instruction set including a first kind of instruction executing non-consecutive processing and a second kind of instruction executing consecutive processing from external storing means; instruction decoding means for decoding the instructions fetched into said instruction fetching means, and outputting an internal signal responding to the decoded result; instruction executing means for executing the instructions according to the internal signal outputted from said instruction decoding means, and information saving controlling means for, when an instruction fetched by said instruction fetching means is said first kind of instruction, controlling to save information necessary for executing said first or second instruction succeeding said fetched instruction in the external storing means; further comprising: saved information holding means for holding same information as that saved in the external storing means by said information saving controlling means; and comparing means for comparing information fetched from the external storing means to execute the instruction succeeding said first kind of instruction by said instruction executing means with information saved in said saved information holding means, and for, when the comparing result by said comparing means coincides, making said instruction executing means break all subsequent processings without executing the instruction succeeding said first kind of instruction.
Claim 7
Dependent Claim 24 words
A microprocessor as set forth in claim 3, further comprising: selecting means for selecting whether to operate said saved information holding means or not.
Claim 8
Dependent Claim 230 words
A microprocessor, comprising: instruction fetching means for fetching respective instructions of an instruction set including a first kind of instruction executing non-consecutive processing and a second kind of instruction executing consecutive processing from external storing means; instruction decoding means for decoding the instructions fetched into said instruction fetching means, and outputting an internal signal responding to the decoded result; instruction executing means for executing the instruction according to the internal signal outputted from said instruction decoding means, and information saving controlling means for, when an instruction fetched by said instruction fetching means is said first kind of instruction, controlling to save information necessary for executing said first or second instruction succeeding said fetched instruction in the external storing means; further comprising: saved information holding means for holding same information as that saved in the external storing means by said information saving controlling means; and counting means for, in which any initial value is set as a count value, for down counting own count value when comparing result of information fetched from the external storing means to execute the instruction succeeding said first kind of instruction by said instruction executing means with information saved in said saved information holding means are coincided, and for, when the count value becomes a predetermined value, making said instruction executing means break all subsequent processings without executing the instruction succeeding said first kind of instruction.
Claim 9
Dependent Claim 230 words
A microprocessor, comprising: instruction fetching means for fetching respective instructions of an instruction set including a first kind of instruction executing non-consecutive processing and a second kind of instruction executing consecutive processing from external storing means; instruction decoding means for decoding the instructions fetched into said instruction fetching means, and outputting an internal signal responding to the decoded result; instruction executing means for executing the instruction according to the internal signal outputted from said instruction decoding means, and information saving controlling means for, when an instruction fetched by said instruction fetching means is said first kind of instruction, controlling to save information necessary for executing said first or second instruction succeeding said fetched instruction in the external storing means; further comprising: saved information holding means for holding same information as that saved in the external storing means by said information saving controlling means; and counting means for, in which any initial value is set as a count value, for down counting own count value when comparing result of information fetched from the external storing means to execute the instruction succeeding said first kind of instruction by said instruction executing means with information saved in said saved information holding means are coincided, and for, when the count value becomes a predetermined value, making said instruction executing means break all subsequent processings without executing the instruction succeeding said first kind of instruction.
Claim 10
Dependent Claim 24 words
A microprocessor as set forth in claim 5, further comprising: selecting means for selecting whether to operate said saved information holding means or not.
Claim 11
Dependent Claim 143 words
A microprocessor, comprising: instruction fetching means for fetching respective instructions of an instruction set including a first kind of instruction executing non-consecutive processing and a second kind of instruction executing consecutive processing from external storing means; instruction decoding means for decoding the instructions fetched into said instruction fetching means, and outputting an internal signal responding to the decoded result; instruction executing means for executing the instruction according to the internal signal outputted from said instruction decoding means, and information saving controlling means for, when an instruction fetched by said instruction fetching means is said first kind of instruction, controlling to save information necessary for executing said first or second kind of instruction succeeding said fetched instruction in the external storing means; further comprising: breaking means for breaking all subsequent processings only when said information saving means saves information in the external storing means.
Claim 12
Dependent Claim 143 words
A microprocessor, comprising: instruction fetching means for fetching respective instructions of an instruction set including a first kind of instruction executing non-consecutive processing and a second kind of instruction executing consecutive processing from external storing means; instruction decoding means for decoding the instructions fetched into said instruction fetching means, and outputting an internal signal responding to the decoded result; instruction executing means for executing the instruction according to the internal signal outputted from said instruction decoding means, and information saving controlling means for, when an instruction fetched by said instruction fetching means is said first kind of instruction, controlling to save information necessary for executing said first or second kind of instruction succeeding said fetched instruction in the external storing means; further comprising: breaking means for breaking all subsequent processings only when said information saving means saves information in the external storing means.
Claim 13
Dependent Claim 22 words
A microprocessor as set forth in claim 7, further comprising: selecting means for selecting whether to operate said holding means or not.

References Cited (Backward Citations)

US4571677A Cited
US4635193A Cited
US5067073A Cited
US5121489A Cited

USPTO Annuity & Maintenance Windows

Annuity Stage Window Opens Payment Deadline Surcharge Period Until Estimated Fee Status
3.5 Years (Year 4) 1998-01-02 1998-07-04 1999-01-03 $2000.00 Window Closed / Lapsed
7.5 Years (Year 8) 2002-01-02 2002-07-04 2003-01-03 $3760.00 Window Closed / Lapsed
11.5 Years (Year 12) 2006-01-02 2006-07-04 2007-01-03 $7700.00 Window Closed / Lapsed

Assigned Categories & Tags

No categories assigned to this patent yet.

Assign Category Tag