# US 2010/0169616 A1 · Reducing instruction collisions in a processor

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

- Number: US 2010/0169616 A1
- Document ID: US20100169616A1
- Status: Published application
- Kind: A1
- Application number: 12/631,098
- Filed: 2009-12-04
- Published: 2010-07-01
- Earliest claimed: 2008-12-31
- Assignees: STMicroelectronics R&D Co. Ltd. (Beijing)
- Inventors: Kai-Feng WANG; Hong-Xia Sun; Peng-fei Zhu; Yong-qiang Wu
- Web page: https://patentgrep.com/patent/US20100169616A1

## CPC

- G06F 9/3836: {Instruction issuing, e.g. dynamic instruction scheduling or out of order instruction execution}
- G06F 9/3856: {Reordering of instructions, e.g. using queues or age tags}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An embodiment of a technique for selecting instructions for execution from an issue queue at multiple function units while reducing the chances of instruction collisions. Each function unit in a processor may include a selection logic circuit that selects a specific instruction from the issue queue for execution. In order to avoid instruction collision, a function unit may have a selection logic circuit that may select two instructions from an instruction queue: one according to a first selection technique and one according to a second selection technique. Then, by comparing the instruction selected by the first selection technique to the instruction selected by the selection logic circuit of another function unit, the instruction selected by the second technique may be used instead if there will be an instruction collision because the instruction selected by the first selection technique is the same as the instruction selected at a different function unit.

## Claims

### Claim 1

A processor, comprising:
a first instruction-selection logic circuit operable to pass a first selected instruction to a first function unit; and
a second instruction-selection logic circuit operable to pass a second selected instruction to a second function unit if and only if the second selected instruction is different from the first selected instruction.

### Claim 3 (depends on 1)

The processor of claim 1 disposed on a single integrated circuit chip.

### Claim 3 (depends on 1)

The processor of claim 1 wherein the first instruction-selection logic selects and instruction according to a first instruction-selection technique comprising one of: an oldest-first instruction-selection technique and a position-based instruction-selection technique.

### Claim 4 (depends on 1)

The processor of claim 1 wherein the second instruction-selection logic circuit further comprises:
instruction-selection logic for selecting an instruction according to a first instruction-selection technique;
instruction-selection logic for selecting an instruction according to a second instruction-selection technique; and
decision logic for passing an instruction to the second function unit for execution.

### Claim 5 (depends on 4)

The processor of claim 4 wherein the first instruction-selection technique comprises an oldest-first instruction-selection technique and the second instruction-selection technique comprises a position-based instruction-selection technique.

### Claim 6 (depends on 4)

The processor of claim 4, further comprising passing an instruction selected according to the first instruction-selection technique if and only if the selected instruction is different from the instruction selected by the first instruction-selection logic, otherwise passing an instruction selected according to the second instruction-selection technique.

### Claim 7 (depends on 4)

The processor module of claim 4, wherein the second instruction-selection logic circuit further comprises instruction-selection logic for selecting an instruction according to a third instruction-selection technique and passing the instruction selected according to the third instruction-selection technique if and only if the instruction selected according to the first and second techniques are the same as the instruction selected by the first instruction-selection logic circuit.

### Claim 8 (depends on 4)

The processor of claim 4, wherein the decision logic further comprises:
an AND gate having two inputs wherein the first input is operable to be set if the instructions selected by the first and second instruction-selection logic circuits are the same and the second input is operable to be set if the instruction selected by the first and third instruction-selection logic circuits are the same;
a first multiplexor operable to pass an instruction selection by the second selection logic circuit if the instructions selected by the first and second instruction-selection logic circuits are not the same and operable to pass an instruction selection by the third instruction-selection logic circuits if the instructions selected by the first and second instruction-selection logic circuits are the same; and
a second multiplexor operable to pass the instruction passed by the first multiplexor if the output of the AND gate is not set and operable to pass a NOP if the output of the AND gate is set.

### Claim 9 (depends on 1)

The processor of claim 1, further comprising:
an instruction-issue queue coupled to instruction-selection logic circuit; and
an instruction loader coupled to the instruction issue queue and operable to receive instructions from an execution control send module.

### Claim 10

A computer-readable storage medium having computer-executable instructions operable to:
store instructions at an issue queue;
select an instruction for execution at a first function unit according to a first instruction-selection technique;
select an instruction for execution at a second function unit according to a first instruction-selection technique;
determine that the instruction selected for execution at the first function unit and the instruction selected for execution at the second function unit are the same instruction; and
in response, select a different instruction for execution at the second function according to a second instruction-selection technique.

### Claim 11

A method for executing instructions in a processor, comprising;
storing instructions in an instruction issue queue;
selecting an instruction from the instruction issue queue for execution at a first function unit using a first instruction-selection technique;
selecting an instruction for execution at a second function unit using the first instruction-selection technique, but if the instruction selected at the second function unit is the same instruction selected at the first function unit, then selecting an instruction for execution at the second function unit using a second instruction-selection technique; and
executing the selected instructions.

### Claim 12 (depends on 11)

The method of claim 11, further comprising selecting the first instruction according to a first instruction-selection technique that is based upon reading an age field associated with each instruction and selecting an instruction having the largest age field value.

### Claim 13 (depends on 11)

The method of claim 11, further comprising selecting the second instruction according to a second instruction-selection technique that is based upon a position in the instruction-issue queue.

### Claim 14 (depends on 11)

The method of claim 11, further comprising selecting an instruction at a third function unit using the first instruction-selection technique, but if the instruction selected at the third function unit is the same instruction selected at the first function unit or second function unit, then selecting an instruction at the third function unit using the second instruction-selection technique.

### Claim 15 (depends on 11)

The method of claim 11, further comprising selecting an instruction at the second function unit using a third instruction-selection technique if the instruction selected at the second function using the second instruction-selection technique is the same instruction selected at the first function unit.

### Claim 16 (depends on 11)

The method of claim 11, further comprising:
executing each selected instruction at each function unit; and
loading instructions into the instruction-issue queue to replace the executed instruction.

### Claim 17

A method for executing an instruction in a processor, comprising;
storing instructions in an instruction issue queue;
selecting an instruction from the instruction-issue queue for execution at a first function unit using a first instruction-selection technique;
selecting an instruction for execution at a second function unit using the first instruction-selection technique, and selecting an instruction for execution at the second function unit using a second instruction-selection technique; and
at the second function unit, if the instruction selected by the first instruction-selection technique is the same as the instruction selected for execution at the first function unit, then executing the instruction selected by the second instruction-selection technique.

### Claim 18

A system, comprising:
a processor, comprising:
a first instruction-selection logic circuit operable to pass a first selected instruction to a first function unit;
a second instruction-selection logic circuit operable to pass a second selected instruction to a second function unit if and only if the second selected instruction is different from the first selected instruction; and
an instruction-issue queue coupled to the first and second instruction-selection logic circuits;
an integrated circuit coupled to the processor.

### Claim 19 (depends on 18)

The system of claim 18 wherein the processor and the integrated circuit are disposed on the same integrated-circuit die.

### Claim 20 (depends on 18)

The system of claim 18 wherein the system comprises a memory.

### Claim 21 (depends on 18)

The system of claim 18 wherein the system comprises another processor.

### Claim 22 (depends on 18)

The system of claim 18 wherein:
the processor is disposed on a first integrated-circuit die; and
the integrated circuit is disposed on a second integrated-circuit die that is separate from the first integrated-circuit die.
