IP Library › Granted Patent US 7,287,245
Granted Patent B2
US 7,287,245 · App. 10/605,231 · Granted Oct 23, 2007

Method for real-time instruction information tracing

Assignee: Faraday Technology Corp.
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 7,287,245
App. No.
10/605,231
Granted
Oct 23, 2007
Kind
B2
Abstract

A method for real-time instruction information tracing for recording the information about a plurality of specific instructions executed by a processor. The method contains the following steps. A trace count value is set to an initial value. A trigger count value is set according to the tracing start point. The trace count value is increased whenever a specific instruction executed by the processor. If the increased trace count value is equal to or larger than the trigger count value, record the instruction information about the specific instruction executed by the processor in a buffer; if the buffer is full, stop running the program and output the instruction information stored in the buffer. During this time reset the trigger count value according to the trace count value, reset the trace count value as the initial value, and then start running the program with the processor again.

Claims (19)

1. A method for real-time instruction information tracing,

when a microprocessor runs a program comprising a plurality of specific instructions, the method records instruction information of the specific instructions executed by the microprocessor from a tracing start point, the method comprising:

setting a trace count value as an initial value;

setting a trigger count value according to the tracing start point;

starting to run the program with the microprocessor;

when a specific instruction is executed by the microprocessor, increasing the trace count value;

if the increased trace count value is equal to or larger than the trigger count value, recording the instruction information of the specific instruction executed by the microprocessor in a buffer;

when the buffer is full, stopping running the program with the microprocessor and outputting instruction information recorded in the buffer via an output interface;

resetting the trigger count value according to the trace count value while the buffer is full, resetting the tracing value with the initial value, using the microprocessor to start to run the program; and when the microprocessor finishes running the program, outputting instruction information recorded in the buffer via the output interface.

2. The method of claim 1 , wherein the method further comprises:

setting a stop count value according to a tracing stop point; and

when the trace count value is equal to or larger than the stop count value, stopping running the program with the microprocessor and outputting instruction information recorded in the buffer via the output interface.

3. The method of claim 2 , wherein the method further comprises providing a stop count register for storing the stop count value.

4. The method of claim 2 , wherein the method further comprises providing a comparator for comparing the trace count value with the stop count value.

5. The method of claim 1 , wherein the method further comprises providing a trace count register for storing the trace count value.

6. The method of claim 1 , wherein the method further comprises providing a trigger count register for storing the trigger count value.

7. The method of claim 1 , wherein the method further comprises providing a comparator for comparing the trace count value with the trigger count value.

8. The method of claim 1 , wherein the method further comprises providing a filter for filtering instruction information of the specific instructions executed by the microprocessor when the microprocessor is running the program.

9. The method of claim 1 , wherein the method further comprises providing a storage device electrically connected to the output interface for reading out and recording instruction information recorded in the buffer.

Assignments (3)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 5, 2017
From: FARADAY TECHNOLOGY CORP.
To: NOVATEK MICROELECTRONICS CORP.
Reel/Frame 041174/0755 →
CORRECTIVE COVERSHEET TO CORRECT THE ASSIGNEES NAME THAT WAS PREVIOUSLY RECORDED ON REEL 013983, FRAME 0678. Recorded Mar 23, 2005
From: WANG, YU-MIN
To: FARADAY TECHNOLOGY CORP.
Reel/Frame 015949/0451 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 17, 2003
From: WANG, YU-MIN
To: FARADAY TECHNOLOGY CROP.
Reel/Frame 013983/0678 →
Continuity (1)
Related Publication 20050060521A1 · Mar 17, 2005