# US 2013/0159783 A1 · Semiconductor device and control method thereof

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

- Number: US 2013/0159783 A1
- Document ID: US20130159783A1
- Status: Published application
- Kind: A1
- Application number: 13/678,080
- Filed: 2012-11-15
- Published: 2013-06-20
- Earliest claimed: 2011-12-14
- Assignees: Renesas Electronics Corporation
- Inventors: Kentaro TANAKA
- Web page: https://patentgrep.com/patent/US20130159783A1

## CPC

- G06F 11/348: {Circuit details, i.e. tracer hardware}
- G06F 11/3041: {where the computing system component is an input/output interface (interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units G06F13/00)}
- G06F 11/3471: {Address tracing}
- G06F 11/3636: {by tracing the execution of the program}
- G06F 11/349: {for interfaces, buses}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Provided is a semiconductor device including: a first memory that stores multiple instructions; a second memory that stores multiple data items; first and second buses; a microprocessor that fetches, through the first bus, an instruction at a specified address among the multiple instructions stored in the first memory, executes the instruction, and accesses the second memory through the second bus based on a result of the execution; and a trace information output unit that acquires, when a branch instruction is generated in the microprocessor, address information of the first memory specified before branching, and outputs the information as trace information. The trace information output from the trace information output unit is written into the second memory through the second bus in a period in which the microprocessor does not access the second memory during execution of the branch instruction.

## Claims

### Claim 1

A semiconductor device comprising:
a first memory that stores a plurality of instructions;
a second memory that stores a plurality of data items;
a first bus and a second bus;
a microprocessor that fetches, through the first bus, an instruction at a specified address among the plurality of instructions stored in the first memory, executes the instruction, and accesses the second memory through the second bus based on a result of the execution; and
a trace information output unit that acquires, when a branch instruction is generated in the microprocessor, address information of the first memory specified before branching, and outputs the information as trace information,
wherein the trace information output from the trace information output unit is written into the second memory through the second bus in a period in which the microprocessor does not access the second memory during execution of the branch instruction.

### Claim 2 (depends on 1)

The semiconductor device according to claim 1, wherein the period in which the microprocessor does not access the second memory during execution of the branch instruction is a period between a time when the microprocessor fetches an instruction after branching and a time when the microprocessor accesses the second memory based on the execution result of the instruction.

### Claim 3 (depends on 1)

The semiconductor device according to claim 1, wherein the trace information output unit outputs address information on the first bus before branching as address information of the first memory specified before branching.

### Claim 4 (depends on 1)

The semiconductor device according to claim 1, wherein the microprocessor executes a plurality of instructions by pipeline processing.

### Claim 5 (depends on 1)

The semiconductor device according to claim 1, further comprising a selection circuit that sets a signal path between one of the trace information output unit and the microprocessor, and the second bus.

### Claim 6

A control method of a semiconductor device, the semiconductor device comprising:
a first memory that stores a plurality of instructions;
a second memory that stores a plurality of data items;
a first bus and a second bus;
a microprocessor that fetches, through the first bus, an instruction at a specified address among the plurality of instructions stored in the first memory, executes the instruction, and accesses the second memory through the second bus based on a result of the execution; and
a trace information output unit that outputs trace information,
the method comprising:
acquiring, when a branch instruction is generated in the microprocessor, address information of the first memory specified before branching, and outputting the information as the trace information; and
writing the trace information output from the trace information output unit into the second memory through the second bus in a period in which the microprocessor does not access the second memory during execution of the branch instruction.

### Claim 7 (depends on 6)

The control method of a semiconductor device according to claim 6, wherein the period in which the microprocessor does not access the second memory during execution of the branch instruction is a period between a time when the microprocessor fetches an instruction after branching and a time when the microprocessor accesses the second memory based on the execution result of the instruction.

### Claim 8 (depends on 6)

The control method of a semiconductor device according to claim 6, wherein the trace information output unit outputs address information on the first bus before branching as address information of the first memory specified before branching.

### Claim 9 (depends on 6)

The control method of a semiconductor device according to claim 6, wherein the microprocessor executes a plurality of instructions by pipeline processing.
