# US 2010/0169610 A1 · Processor

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

- Number: US 2010/0169610 A1
- Document ID: US20100169610A1
- Status: Published application
- Kind: A1
- Application number: 12/161,124
- Filed: 2006-10-16
- Published: 2010-07-01
- Earliest claimed: 2006-01-20
- Assignees: Matsushita Electric Industrial Co., Ltd.
- Inventors: Shin-ichiro Fukai; Makoto Kawamura
- Web page: https://patentgrep.com/patent/US20100169610A1

## CPC

- G06F 9/3869: {Implementation aspects, e.g. pipeline latches; pipeline synchronisation and clocking}
- G06F 9/3826: {Bypassing or forwarding of data results, e.g. locally between pipeline stages or within a pipeline stage}
- G06F 9/3832: {Value prediction for operands; operand history buffers}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The processor according to the present invention is a processor having a forwarding function and includes an attribute information holding unit that holds attribute information regarding inhibition of writing to a register and a register write inhibition circuit that holds, when forwarding is performed, the writing of the data forwarded according to attribute information. The attribute information holding unit holds the attribute information by relating the attribute information to at least one register. Alternatively, the attribute information holding unit is a part of plural pipeline buffers and passes the attribute information along with the data to be forwarded, to a pipeline buffer in a subsequent stage.

## Claims

### Claim 1

A processor having a forwarding function, comprising:
a holding unit configured to hold attribute information regarding inhibition of writing to a register; and
a control unit configured to inhibit, when data is forwarded, writing of the forwarded data to the register, according to the attribute information.

### Claim 2 (depends on 1)

The processor according to claim 1,
wherein said holding unit is configured to hold the attribute information in association with at least one register.

### Claim 3 (depends on 1)

The processor according to claim 1, comprising
pipeline buffers structured in stages and sequentially passing data between pipeline stages,
wherein said holding unit is a part of said pipeline buffers and configured to pass the attribute information, along with data to be forwarded, to one of said pipeline buffers in a subsequent stage.

### Claim 4 (depends on 3)

The processor according to claim 3, further comprising
an instruction decoding unit configured to output the attribute information to one of said pipeline buffers, when an instruction including a register write inhibition indication is decoded.

### Claim 5 (depends on 2)

The processor according to claim 2, comprising
pipeline buffers structured in stages and sequentially passing data between pipeline stages,
wherein said control unit is further configured to inhibit, when the data is forwarded, the writing of the data to a subsequent one of said pipeline buffers.

### Claim 6 (depends on 2)

The processor according to claim 2, comprising
a control register configured to direct whether or not to inhibit the writing to the register,
wherein said holding unit is configured to hold attribute information corresponding to data held in said control register.

### Claim 7 (depends on 2)

The processor according to claim 2,
wherein said processor is further configured to update the attribute information in said holding unit by executing an attribute change instruction to change attribute information.

### Claim 8 (depends on 1)

A program conversion apparatus that converts an original program into a program for use in the processor according to claim 1, said program conversion apparatus comprising:
an extraction unit configured to extract, from the original program, a variable to be stored in a register;
a detection unit configured to detect a live range for the extracted variable;
a first judgment unit configured to judge whether or not only one reference instruction is present in the live range, the reference instruction being an instruction to refer to the variable;
a second judgment unit configured to judge whether or not a definition instruction and the reference instruction are intended for forwarding, the definition instruction being an instruction to define the variable; and
a generation unit configured to generate a program including an inhibition instruction to inhibit writing to the register according to the definition instruction, in the case where it is judged that only one reference instruction is present in the live range and that the reference instruction is intended for forwarding.

### Claim 9 (depends on 8)

The program conversion apparatus according to claim 8,
wherein, the inhibition instruction includes: an attribute change instruction to set, prior to the live range, first attribute information to said holding unit, the first attribute information being for inhibiting the writing to the register in which the variable is to be stored; and an attribute change instruction to set, subsequent to the live range, second attribute information to said holding unit, the second attribute information being for not inhibiting the writing to the register in which the variable is to be stored, and
said generation unit is configured to add the attribute change instructions to the original program.

### Claim 10 (depends on 8)

The program conversion apparatus according to claim 8,
wherein the inhibition instruction is a definition instruction with inhibition, which involves a same operation as the definition instruction and a register write inhibition indication, and
said generation unit is configured to generate the program by changing the definition instruction in the original program into the definition instruction with inhibition.

### Claim 11 (depends on 1)

A program conversion method for converting an original program into a program for use in the processor according to claim 1, said program conversion method comprising:
extracting, from the original program, a variable to be stored in a register;
detecting a live range for the extracted variable;
judging whether or not only one reference instruction is present in the live range, the reference instruction being an instruction to refer to the variable;
judging whether or not a definition instruction and the reference instruction are intended for forwarding, the definition instruction being an instruction to define the variable; and
generating a program including an inhibition instruction to inhibit writing to the register according to the definition instruction, in the case where it is judged that only one reference instruction is present in the live range and that the reference instruction is intended for forwarding.
