# US 2021/0286624 A1 · Systems and Methods for Defining and Enforcing Ordered Constraints

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

- Number: US 2021/0286624 A1
- Document ID: US20210286624A1
- Status: Published application
- Kind: A1
- Application number: 16/820,446
- Filed: 2020-03-16
- Published: 2021-09-16
- Earliest claimed: 2020-03-16
- Assignees: Arm Limited
- Applicants: Arm Limited
- Inventors: Thomas Edward Shull
- Web page: https://patentgrep.com/patent/US20210286624A1

## CPC

- G06F 9/30185: {according to one or more bits in the instruction, e.g. prefix, sub-opcode}
- G06F 9/3838: {Dependency mechanisms, e.g. register scoreboarding}
- G06F 9/30043: {LOAD or STORE instructions; Clear instruction}
- G06F 9/30047: {Prefetch instructions; cache control instructions}
- G06F 9/3012: {Organisation of register space, e.g. banked or distributed register file}
- G06F 9/3834: {Maintaining memory consistency}
- G06F 9/3836: {Instruction issuing, e.g. dynamic instruction scheduling or out of order instruction execution}
- G06F 9/544: {Buffers; Shared memory; Pipes}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In a particular implementation, a method includes: receiving, at a central processing unit (CPU), first and second instructions of a plurality of instructions obtained from a memory, where the first instruction corresponds to a preceding instruction of a second instruction, and where the second instruction corresponds to a succeeding instruction of the first instruction; determining a dependency of the first and second instructions; sending the first and second instructions to an issue queue of the CPU; executing, at the CPU, the first and second instructions; and completing, at the CPU, the first and second instructions.

## Claims

### Claim 1

A method comprising:
identifying a first instruction as a preceding instruction;
identifying a second instruction as a succeeding instruction;
defining a dependency based on the identified first and second instructions, wherein the dependency corresponds to a predetermined ordered constraint; and
generating, at a central processing unit (CPU), complementary parameters indicating the dependency of the first and second instructions, wherein the complementary parameters comprise the same values stored in instruction operand fields.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
storing a first parameter of the complementary parameters in a first internal storage of the CPU.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
storing a second parameter in a second internal storage of the CPU.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
generating updated first and second instructions, wherein the updated first and second instructions include respective first and second parameters of the complementary parameters.

### Claim 5 (depends on 1)

The method of claim 1, wherein defining the dependency comprises:
determining, by the CPU, if an execution of the succeeding instruction is required to follow an execution of the preceding instruction.

### Claim 6 (depends on 1)

The method of claim 1, wherein the first and second instructions comprise one or more of load, store, atomic, or cache maintenance instructions.

### Claim 7 (depends on 1)

The method of claim 1, wherein the first instruction corresponds to a second succeeding instruction.

### Claim 8 (depends on 1)

The method of claim 1, wherein the second instruction corresponds to a second preceding instruction.

### Claim 9

A method comprising:
receiving, at a central processing unit (CPU), first and second instructions of a plurality of instructions obtained from a memory, wherein the first instruction corresponds to a preceding instruction of a second instruction, and wherein the second instruction corresponds to a succeeding instruction of the first instruction;
determining a dependency of the first and second instructions, wherein determining the dependency comprises:
matching, by a mapping table, respective first and second keys corresponding to the first and second instructions, wherein the respective first and second keys are configured to store complementary parameters corresponding to the first and second instructions, wherein the complementary parameters comprise the same values stored in instruction operand fields;
sending the first and second instructions to an issue queue of the CPU;
executing, at the CPU, the first and second instructions; and
completing, at the CPU, the first and second instructions.

### Claim 10 (depends on 9)

The method of claim 9 further comprising:
committing the first and second instructions to the memory and to a register file of the CPU.

### Claim 11

(canceled)

### Claim 12 (depends on 11)

The method of claim 11, wherein matching of the respective first and second keys corresponding to the first and second instructions comprises:
in response to decoding the first instruction, a first register is associated to the decoded first instruction; and
in response to decoding the second instruction, the mapping table is configured to identify whether the second instruction includes a parameter of the complementary parameters.

### Claim 13 (depends on 9)

The method of claim 9, wherein the dependency is tracked for the duration of the first and second instructions.

### Claim 14 (depends on 9)

The method of claim 9, wherein the dependency is enforced in the issue queue.

### Claim 15 (depends on 9)

The method of claim 9, wherein the dependency is enforced in the write-back buffer.

### Claim 16 (depends on 9)

The method of claim 9, further comprising:
receiving, at the CPU, a third instruction of the plurality of instructions, wherein the third instruction is arranged to prevent following instructions that define or apply dependencies to execute until the received instructions of the plurality of instructions that are associated as preceding or succeeding instructions are completed.

### Claim 17 (depends on 9)

The method of claim 9, further comprising:
receiving, at the CPU, a third instruction of the plurality of instructions, wherein the third instruction is arranged to prevent following instructions that define or apply an indicated key to execute until the received instructions of the plurality of instructions that define or apply the indicated key are completed.

### Claim 18 (depends on 9)

The method of claim 9, further comprising:
receiving, at the CPU, a third instruction of the plurality of instructions, wherein the third instruction corresponds to a succeeding instruction of two other instructions of the plurality of instructions, and wherein the third instruction is arranged to be completed after the two other instructions are completed.

### Claim 19 (depends on 9)

The method of claim 9, wherein the first and second instructions comprise either both load, store, atomic, or cache maintenance instructions, and wherein the first and second instructions are either preceding or succeeding instructions to other instructions.

### Claim 20

An apparatus comprising:
a non-transitory computer-readable storage medium;
at least one processor; and
program code stored on the non-transitory computer-readable storage medium and configured upon execution by the at least one processor to:
receive, at a central processing unit (CPU), first and second instructions of a plurality of instructions obtained from a memory, wherein the first instruction corresponds to a preceding instruction of the second instruction, and wherein the second instruction corresponds to a succeeding instruction of the first instruction;
determine a dependency of the first and second instructions, wherein determining the dependency comprises:
matching, by a mapping table, respective first and second keys corresponding to the first and second instructions, wherein the respective first and second keys are configured to store complementary parameters corresponding to the first and second instructions, wherein the complementary parameters comprise the same values stored in instruction operand fields;
send the first and second instructions to an issue queue of the CPU;
execute, at the CPU, the first and second instructions; and
complete, at the CPU, the first and second instructions.
