Patent US5257358A successfully refreshed from Google Patents.
US5257358A
Expired / Lapsed
US
⏱️ 0.0 years remaining
Method for counting the number of program instruction completed by a microprocessor
Assignee: Renesas Electronics America Inc
•
Filing: 1992-11-20
•
Granted: 1993-10-26
•
Expires: 2012-11-20
Abstract
Abstract A means for precisely identifying the location of an error in a computer program executing in a microprocessor is provided by an instruction complete counter circuit that counts each of the program instructions completed by the microprocessor up to the time of an error in execution.
Inventors
- 👤 Paul E. Cohen
Bibliographic Details
Application Number
—
Jurisdiction
US
Data Source
google_patents
Last Synchronized
2026-11-02 18:05
CPC Classifications
G; G06; G06F; G06F11/00; G06F11/36; G06F11/362; G06F11/3648
Claims Analysis
Total Claims: 7
Claim 1
Independent Claim
258 words
A method for debugging computer program instructions executing in a processor in a normal mode of operation, wherein said processor has in addition to the normal mode of operation, an exception mode of operation, a control unit, and a programmable counter and further wherein said control unit generates an instruction complete signal upon completion of each computer program instruction and said programmable counter is responsive to said instruction complete signal, said method comprising the steps of: loading said computer program instructions by said processor so that said processor begins execution of said computer program instructions in said normal mode of operation; reading a value of said programmable counter to obtain a first reading; charging the value of said programmable counter in a selected direction in response to each instruction complete signal from said control unit; reading the value of said programmable counter upon termination of execution of said computer program instructions to obtain a second reading; forming a difference between said first reading and said second reading; reloading said computer program instructions by said processor so that said processor begins execution of said computer program instructions in said normal mode of operation; setting the programmable counter to a first selected number that is less than said difference between said first reading and said second reading; changing the value of said programmable counter in said selected direction in response to each instruction complete signal from said control unit; and forcing a change of mode of operation to the exception mode upon said programmable counter reaching a second selected number.
Claim 2
Independent Claim
258 words
A method for debugging computer program instructions executing in a processor in a normal mode of operation, wherein said processor has in addition to the normal mode of operation, an exception mode of operation, a control unit, and a programmable counter and further wherein said control unit generates an instruction complete signal upon completion of each computer program instruction and said programmable counter is responsive to said instruction complete signal, said method comprising the steps of: loading said computer program instructions by said processor so that said processor begins execution of said computer program instructions in said normal mode of operation; reading a value of said programmable counter to obtain a first reading; charging the value of said programmable counter in a selected direction in response to each instruction complete signal from said control unit; reading the value of said programmable counter upon termination of execution of said computer program instructions to obtain a second reading; forming a difference between said first reading and said second reading; reloading said computer program instructions by said processor so that said processor begins execution of said computer program instructions in said normal mode of operation; setting the programmable counter to a first selected number that is less than said difference between said first reading and said second reading; changing the value of said programmable counter in said selected direction in response to each instruction complete signal from said control unit; and forcing a change of mode of operation to the exception mode upon said programmable counter reaching a second selected number.
Claim 3
Dependent Claim
21 words
The method of claim 1 wherein the step of forcing a change to the exception mode comprises initiating a trap handler.
Claim 4
Independent Claim
26 words
The method claim of 1, wherein said processor has an execution level and further wherein said steps are performed for said execution level of said processor.
Claim 5
Dependent Claim
35 words
The claim of 1, wherein said processor has a plurality of execution levels and further wherein said steps are performed for one of said execution levels in said plurality of execution levels of said processor.
Claim 6
Independent Claim
409 words
A system for executing computer program instructions including: a control register having an execution level bit and a count trap enable bit; a decoder, operatively coupled to said execution level bit in said control register, having an input line coupled to said execution level bit and an output line wherein an output signal on said output line of said decoder has a first level upon said execution level bit being set and a second level otherwise; a control unit having a force exception input line and an instruction complete output line wherein: said control unit has a normal mode of operation and an exception mode of operation; said control unit executes said computer program instructions in said normal mode of operation and upon completion of execution of each computer program instruction generates an instruction complete signal on said instruction complete output line; and said control unit enters said exception mode of operation upon receiving a signal on said force exception input line; a first logic gate having first and second input terminals and an output line wherein: said first input terminal is connected to said decoder output line; said second input terminal is connected to said control unit instruction complete output line; and said first logic gate generates an active signal on said output line in response to said decoder first level signal on said first terminal in combination with an instruction complete signal on said second input terminal; a counter having an input line and an output line wherein: said counter input line is connected to said first logic gate output line; said counter changes value in response to said active output signal of said first logic gate; and said counter generates a signal on said counter output line upon the value of said counter equaling a predetermined value; and a second logic gate having first and second input terminals and an output line wherein: said first input terminal is connected to said count trap enable bit; said second input terminal is connected to said counter output line; and said output line is connected to said force exception line of said control unit wherein said second logic gate generates a signal on said output line of said second logic gate in response to said count trap enable bit being set in combination with said output signal from said counter and in response, to said second logic gate output signal, said control unit enters said exception mode of operation.
Claim 7
Independent Claim
409 words
A system for executing computer program instructions including: a control register having an execution level bit and a count trap enable bit; a decoder, operatively coupled to said execution level bit in said control register, having an input line coupled to said execution level bit and an output line wherein an output signal on said output line of said decoder has a first level upon said execution level bit being set and a second level otherwise; a control unit having a force exception input line and an instruction complete output line wherein: said control unit has a normal mode of operation and an exception mode of operation; said control unit executes said computer program instructions in said normal mode of operation and upon completion of execution of each computer program instruction generates an instruction complete signal on said instruction complete output line; and said control unit enters said exception mode of operation upon receiving a signal on said force exception input line; a first logic gate having first and second input terminals and an output line wherein: said first input terminal is connected to said decoder output line; said second input terminal is connected to said control unit instruction complete output line; and said first logic gate generates an active signal on said output line in response to said decoder first level signal on said first terminal in combination with an instruction complete signal on said second input terminal; a counter having an input line and an output line wherein: said counter input line is connected to said first logic gate output line; said counter changes value in response to said active output signal of said first logic gate; and said counter generates a signal on said counter output line upon the value of said counter equaling a predetermined value; and a second logic gate having first and second input terminals and an output line wherein: said first input terminal is connected to said count trap enable bit; said second input terminal is connected to said counter output line; and said output line is connected to said force exception line of said control unit wherein said second logic gate generates a signal on said output line of said second logic gate in response to said count trap enable bit being set in combination with said output signal from said counter and in response, to said second logic gate output signal, said control unit enters said exception mode of operation.
References Cited (Backward Citations)
US4297743A
Cited
US4316245A
Cited
US4099230A
Cited
US4173041A
Cited
US4342078A
Cited
US4292667A
Cited
US4787065A
Cited
US4788683A
Cited
US4740969A
Cited
US4811345A
Cited
US4956800A
Cited
US4847448A
Cited
US4953121A
Cited
USPTO Annuity & Maintenance Windows
| Annuity Stage | Window Opens | Payment Deadline | Surcharge Period Until | Estimated Fee | Status |
|---|---|---|---|---|---|
| 3.5 Years (Year 4) | 1996-10-25 | 1997-04-26 | 1997-10-26 | $2000.00 | Window Closed / Lapsed |
| 7.5 Years (Year 8) | 2000-10-25 | 2001-04-26 | 2001-10-26 | $3760.00 | Window Closed / Lapsed |
| 11.5 Years (Year 12) | 2004-10-25 | 2005-04-26 | 2005-10-26 | $7700.00 | Window Closed / Lapsed |