# US 2021/0334131 A1 · Device and processor for implementing resource index replacement

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

- Number: US 2021/0334131 A1
- Document ID: US20210334131A1
- Status: Published application
- Kind: A1
- Application number: 16/488,435
- Filed: 2019-04-12
- Published: 2021-10-28
- Earliest claimed: 2018-04-13
- Assignees: C-SKY Microsystems Co., Ltd.
- Applicants: C-SKY Microsystems Co., Ltd.
- Inventors: Chang LIU
- Web page: https://patentgrep.com/patent/US20210334131A1

## CPC

- G06F 9/3836: {Instruction issuing, e.g. dynamic instruction scheduling or out of order instruction execution}
- G06F 9/38: Concurrent instruction execution, e.g. pipeline or look ahead
- G06F 9/384: {Register renaming}
- G06F 9/3858: {Result writeback, i.e. updating the architectural state or memory}
- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 9/50: Allocation of resources, e.g. of the central processing unit [CPU]
- G06F 9/5038: {considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration (scheduling strategies G06F9/4881 and subgroups)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments of the present disclosure provides a device for implementing resource index replacement, comprising an instruction scheduling unit configured to receive a first type resource index from a resource allocating unit and then issue an instruction to an instruction executing unit for execution, to receive a second type resource index from the resource allocating unit, to execute the instruction from the instruction scheduling unit, and to issue a result of the instruction execution and the second type resource index to a result storing unit. The result storing unit comprises a plurality of resource for storing instruction execution results and execution results. The result storing unit is configured to allocate the first type resource index to an instruction entering the instruction scheduling unit and to allocate the second type resource index to an instruction entering the instruction execution unit. The present disclosure also provides a processor comprising the above device for implementing resource index replacement. In addition, the present disclosure provides a method for implementing resource index replacement.

## Claims

### Claim 1

A device, comprising:
a resource allocating unit configured to allocate a first type resource index and a second type resource index;
an instruction scheduling unit configured to receive the first type resource index from the resource allocating unit and to issue an instruction;
an instruction executing unit configured to receive the instruction from the instruction scheduling unit, to receive the second type resource index from the resource allocating unit, to execute the instruction, and to send an execution result and the second type resource index; and
a result storing unit comprising a plurality of resources, and configured to receive the execution result and the second type resource index from the instruction executing unit and store the execution result in a resource of the plurality of resources, wherein the resource in which the execution result is stored is accessed based on the second type resource index, wherein:
the resource allocating unit is further configured to replace the first type resource index with the second type resource index when the instruction is issued from the instruction scheduling unit to the instruction executing unit.

### Claim 2 (depends on 1)

The device according to claim 1, wherein the first type resource index does not correspond to the plurality of resources of the result storing unit.

### Claim 3 (depends on 1)

The device according to claim 1, wherein the second type resource index corresponds to the plurality of resources of the result storing unit.

### Claim 4 (depends on 1)

The device according to claim 1, wherein the instruction comprises at least one of a source operand index or a target operand index.

### Claim 5 (depends on 4)

The device according to claim 4, wherein the resource allocating unit is further configured to replace the target operand index of the instruction with the first type resource index when the instruction enters the instruction scheduling unit.

### Claim 6 (depends on 4)

The device according to claim 4, wherein the source operand index of the instruction corresponds to a target operand index of a second instruction.

### Claim 7 (depends on 6)

The device according to claim 6, wherein the instruction scheduling unit is further configured to issue the instruction to the instruction executing unit after an execution result of the second instruction has been generated by the instruction executing unit.

### Claim 8 (depends on 6)

The device according to claim 6, wherein the instruction further comprises a first type resource index or a second type resource index of the second instruction when the instruction is in the instruction scheduling unit.

### Claim 9 (depends on 8)

The device according to claim 8, wherein when the instruction allocating unit replaces the first type resource index of the second instruction with the second type resource index, the first type resource index of the instruction is simultaneously replaced by a corresponding second type resource index.

### Claim 10 (depends on 1)

The device according to claim 1, wherein the device is implemented in a processor.

### Claim 11

A method for executing instructions, comprising:
allocating a first type resource index in response to receiving an instruction;
replacing the first type resource index with a second type resource index in response to the instruction being issued for execution;
executing the instruction to obtain an execution result;
storing the execution result in a resource of a plurality of resources, wherein the resource in which the execution result is stored is accessed based on the second type resource index.

### Claim 12 (depends on 11)

The method according to claim 11, wherein the first type resource index does not correspond to the plurality of resources.

### Claim 13 (depends on 11)

The method according to claim 11, wherein the second type resource index corresponds to the plurality of resources.

### Claim 14 (depends on 11)

The method according to claim 11, wherein the instruction comprises at least one of a source operand index or a target operand index.

### Claim 15 (depends on 14)

The method according to claim 14, further comprising replacing the target operand index of the instruction with the first type resource index in response to receiving the instruction.

### Claim 16 (depends on 14)

The method according to claim 14, wherein the source operand index of the instruction corresponds to a target operand index of a second instruction.

### Claim 17 (depends on 16)

The method according to claim 16, further comprising issuing the instruction for execution after an execution result of the second instruction has been obtained.

### Claim 18 (depends on 16)

The method according to claim 16, wherein the instruction further comprises a first type resource index or a second type resource index of the second instruction prior to the instruction being issued for execution.

### Claim 19 (depends on 18)

The method according to claim 18, further comprising replacing the first type resource index of the instruction with a corresponding second type resource index in response to the first type resource index of the second instruction being replaced with the second type resource index.

### Claim 20 (depends on 11)

The method according to claim 11, wherein the method is performed in a processor.
