# US 2004/0073780 A1 · Single-step processing and selecting debugging modes

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2004/0073780 A1
- Document ID: US20040073780A1
- Status: Published application
- Kind: A1
- Application number: 09/738,649
- Filed: 2000-12-15
- Published: 2004-04-15
- Earliest claimed: 2000-12-15
- Assignees: Intel Corporation; Analog Devices, Inc.
- Inventors: Charles P. Roth; Ravi P. Singh; Tien Dinh; Ravi Kolagotla; Marc Hoffman; Russell Rivin
- Web page: https://patentgrep.com/patent/US20040073780A1

## CPC

- G06F 11/3698: Environments for analysis, debugging or testing of software
- G06F 11/3648: {using additional hardware}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In one embodiment, techniques are disclosed for causing a programmable processor to process one instruction at a time. Single-step debugging may be performed by taking an exception after each instruction or by invoking emulation mode after each instruction. The particular single-step debugging technique may be based upon state of control bits, or may be based upon the processor's current mode of operation, or both.

## Claims

### Claim 1

A method comprising:
selecting one of a plurality of debugging modes as a function of a current operating mode of a processor.

### Claim 2 (depends on 1)

The method of claim 1 further comprising raising an exception after executing an instruction.

### Claim 3 (depends on 1)

The method of claim 1 further comprising invoking an emulation mode of the processor after executing an instruction.

### Claim 4 (depends on 1)

The method of claim 1 wherein selecting the debugging mode comprises selecting a first debugging mode when the operating mode comprises user mode, and selecting a second debugging mode when the operating mode comprises supervisor mode.

### Claim 5

A method comprising:
receiving an instruction;
receiving a signal;
selecting a mode of debugging as a function of the signal, wherein selecting the debugging mode comprises selecting a first debugging mode when the signal is a first signal, and selecting a second debugging mode when the signal is a second signal; and
executing the instruction.

### Claim 6 (depends on 5)

The method of claim 5 further comprising raising an exception.

### Claim 7 (depends on 5)

The method of claim 5 further comprising invoking an emulation event.

### Claim 8 (depends on 5)

The method of claim 5 further comprising:
sensing register contents; and
outputting register contents.

### Claim 9 (depends on 5)

The method of claim 5, wherein the instruction is received by a processor adapted to operate in a plurality of states, the method further comprising:
sensing states of the processor; and
outputting states of the processor.

### Claim 10 (depends on 5)

The method of claim 5, wherein the instruction is received by a processor, the method further comprising selecting a mode of single-step debugging as a function of the operating mode of the processor.

### Claim 11

A device comprising:
a processor, the processor adapted to operate in a plurality of operating modes including an emulation mode;
a control register adapted to store the state of a control bit; and
an exception handler;
wherein the processor is adapted to select one of a plurality of debugging modes as a function of the control bit.

### Claim 12 (depends on 11)

The device of claim 11, wherein the processor is adapted to select one of a plurality of debugging modes as a function of the current operating mode of the processor.

### Claim 13 (depends on 11)

The device of claim 11, further comprising exception logic adapted to sense the state of the control bit and to trigger an exception event as a function of the state of the control bit.

### Claim 14 (depends on 11)

The device of claim 11, further comprising emulation logic adapted to sense the state of the control bit and to trigger an emulation event as a function of the state of the control bit.

### Claim 15 (depends on 11)

The device of claim 11, wherein the control bit is a first control bit, the system further comprising a second control bit, and wherein the mode of single-step debugging is a function of the state of the second control bit.

### Claim 16 (depends on 11)

The device of claim 11, wherein the processor is a digital signal processor.

### Claim 17

A device comprising:
a processor, the processor adapted to operate in a plurality of operating modes;
wherein the processor is adapted to select one of a plurality of debugging modes as a function of the current operating mode of the processor.

### Claim 18 (depends on 17)

The device of claim 17 further comprising a control register adapted to store the state of a control bit, wherein the processor is adapted to select one of the plurality of debugging modes as a function of the state of the control bit.

### Claim 19 (depends on 18)

The device of claim 18, further comprising:
an exception handler; and
logic adapted to sense the state of the control bit and to trigger an exception event as a function of the state of the control bit.

### Claim 20 (depends on 18)

The device of claim 18, further comprising logic adapted to sense the state of the control bit and to trigger an emulation event as a function of the state of the control bit.

### Claim 21 (depends on 17)

The device of claim 17, wherein the processor is a digital signal processor.

### Claim 22

A system comprising:
a processor, the processor adapted to operate in a plurality of operating modes;
a control register adapted to store the state of a control bit;
an input/output device; and
an exception handler;
wherein the processor is to adapted to select one of a plurality of debugging modes as a function of the control bit.

### Claim 23 (depends on 22)

The system of claim 22, wherein the processor is adapted to select one of a plurality of debugging modes based upon the current operating mode.

### Claim 24 (depends on 22)

The system of claim 22, further comprising a memory device coupled to the processor.

### Claim 25 (depends on 22)

The system of claim 22, further comprising logic adapted to sense the state of the control bit and to trigger an exception event as a function of the state of the control bit.

### Claim 26 (depends on 22)

The system of claim 22, further comprising logic adapted to sense the state of the control bit and to trigger an emulation event as a function of the state of the control bit.

### Claim 27 (depends on 22)

The system of claim 22, wherein the control bit is a first control bit, the system further comprising a second control bit, wherein the processor is adapted to select one of a plurality of debugging modes based upon the state of the second control bit.
