# US 2021/0286625 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/0286625 A1
- Document ID: US20210286625A1
- Status: Published application
- Kind: A1
- Application number: 17/129,515
- Filed: 2020-12-21
- Published: 2021-09-16
- Earliest claimed: 2020-03-16
- Assignees: Arm Limited
- Applicants: Arm Limited
- Inventors: Wei Wang; Thomas Edward Shull
- Web page: https://patentgrep.com/patent/US20210286625A1

## CPC

- G06F 9/3834: {Maintaining memory consistency}
- G06F 9/3838: {Dependency mechanisms, e.g. register scoreboarding}
- G06F 9/30043: {LOAD or STORE instructions; Clear instruction}
- G06F 9/30185: {according to one or more bits in the instruction, e.g. prefix, sub-opcode}
- G06F 12/0875: with dedicated cache, e.g. instruction or stack
- G06F 2212/451: Stack data
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In a particular implementation, a method includes: receiving, at a computing device, 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 computing device; executing, at the computing device, the first and second instructions; and completing, at the computing device, 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 computing device, complimentary parameters indicating the dependency of the first and second instructions.

### Claim 2 (depends on 1)

The method of claim 1, wherein the computing device comprises at least one of a processing unit or a machine interface.

### Claim 3 (depends on 2)

The method of claim 2, wherein the processing unit comprises one of: a central processing unit (CPU), graphics processing unit (GPU), domain-specific acceleration unit (DSA), or other instruction-based processing unit.

### Claim 4 (depends on 2)

The method of claim 2, wherein the machine interface comprises one of: a machine interface for a domain-specific language interface, a machine interface for a general-purpose language interface, a machine interface for a language-level compiler intermediate representations (IR) interface, a machine interface for a language-neutral IR interface, a machine interface for a virtual instruction set architecture (ISA) interface, a machine interface for a instruction set architecture (ISA) interface, a machine interface for a microinstruction set architecture interface, or a machine interface for a defined set of operations interface.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
storing a first parameter of the complimentary parameters in a first internal storage of the computing device, and
storing a second parameter in a second internal storage of the computing device.

### Claim 6 (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 complimentary parameters.

### Claim 7 (depends on 1)

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

### Claim 8 (depends on 1)

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

### Claim 9 (depends on 1)

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

### Claim 10 (depends on 1)

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

### Claim 11

A method comprising:
receiving, at a computing device, 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;
sending the first and second instructions to an issue queue of the computing device;
executing, at the computing device, the first and second instructions;
and
completing, at the computing device, the first and second instructions.

### Claim 12 (depends on 10)

The method of claim 10 further comprising:
committing the first and second instructions to the memory and to a register file of the computing device.

### Claim 13 (depends on 10)

The method of claim 10, 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, and
, wherein matching of the respective first and second keys corresponding to the first and second instructions comprises:
in response to decoding the first instruction, the 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 14 (depends on 10)

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

### Claim 15 (depends on 10)

The method of claim 10, wherein the dependency is enforced in the issue queue or the write-back buffer.

### Claim 16 (depends on 10)

The method of claim 10, further comprising:
receiving, at the computing device, 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 10)

The method of claim 10, further comprising:
receiving, at the computing device, 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 10)

The method of claim 10, further comprising:
receiving, at the computing device, 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 10)

The method of claim 10, 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 computer-readable storage medium;
at least one processor; and
program code stored on the computer-readable storage medium and configured upon execution by the at least one processor to:
receive, at a computing device, 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;
determine a dependency of the first and second instructions;
send the first and second instructions to an issue queue of the computing device;
execute, at the computing device, the first and second instructions; and
complete, at the computing device, the first and second instructions.
