# US 2023/0273792 A1 · Vector processing

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

- Number: US 2023/0273792 A1
- Document ID: US20230273792A1
- Status: Published application
- Kind: A1
- Application number: 18/006,813
- Filed: 2021-07-08
- Published: 2023-08-31
- Earliest claimed: 2020-07-30
- Assignees: Arm Limited
- Applicants: Arm Limited
- Inventors: Nigel John STEPHENS; David Hennah MANSELL; Richard Roy GRISENTHWAITE; Matthew Lucien EVANS; Jelena MILANOVIC
- Web page: https://patentgrep.com/patent/US20230273792A1

## CPC

- G06F 9/3016: {Decoding the operand specifier, e.g. specifier format}
- G06F 9/30036: {Instructions to perform operations on packed data, e.g. vector, tile or matrix operations}
- G06F 9/30189: {according to execution mode, e.g. mode flag}
- G06F 9/3887: {controlled by a single instruction for multiple data lanes [SIMD]}
- G06F 9/38873: {Iterative single instructions for multiple data lanes [SIMD]}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Instruction decoder to decode processing instructions; one or more first registers; first processing circuitry to execute the decoded processing instructions in a first processing mode and configured to execute the decoded processing instructions using the one or more first registers; and control circuitry to execute the decoded processing instructions in a second processing mode using one or more second registers; the instruction decoder being configured to decode processing instructions selected from a first instruction set and a second instruction set in the second processing mode, in which one or both of the first and second instruction sets comprises at least one unique instruction set; the instruction decoder configured to decode one or more mode change instructions to change between the first and second processing mode; and the first processing circuitry configured to change the current processing mode between the first and second processing mode responding to executing mode change instruction.

## Claims

### Claim 1

Apparatus comprising:
an instruction decoder to decode processing instructions;
one or more first registers;
first processing circuitry to execute the decoded processing instructions in a first processing mode in which the first processing circuitry is configured to execute the decoded processing instructions using the one or more first registers; and
control circuitry to selectively initiate execution of the decoded processing instructions in a second processing mode in which the decoded processing instructions are selectively executed using one or more second registers;
the instruction decoder being configured to decode processing instructions selected from a first instruction set in the first processing mode and processing instructions selected from a second instruction set in the second processing mode, in which one or both of the first and second instruction sets comprises at least one instruction which is unavailable in the other of the first and second instruction sets;
the instruction decoder being configured to decode one or more mode change instructions to change between the first processing mode and the second processing mode; and
the first processing circuitry being configured to change the current processing mode between the first processing mode and the second processing mode in response to execution of a mode change instruction.

### Claim 2 (depends on 1)

The apparatus of claim 1, in which:
the processing instructions include vector processing instructions;
the one or more first registers comprise one or more first vector registers having a first vector length;
the first processing circuitry is configured, in the first processing mode, to execute the decoded processing instructions using the one or more first vector registers in accordance with a vector length no greater than the first vector length; and
in the second processing mode in which the decoded processing instructions are selectively executed using one or more second vector registers having a second vector length, in accordance with a vector length no greater than the second vector length.

### Claim 3 (depends on 2)

The apparatus of claim 2, in which the first processing circuitry is operable to execute processing instructions at a prevailing exception level of a hierarchy of exception levels each having a respective level of privilege to access processing resources of the apparatus.

### Claim 4 (depends on 3)

The apparatus of claim 3, in which the first processing circuitry is configured to detect a vector length for execution of instructions in the first processing mode and a vector length for execution of instructions in the second processing mode by executing a vector length detection processing instruction.

### Claim 5 (depends on 3)

The apparatus of claim 3, in which the first processing circuitry is configured to execute a vector length setting processing instruction at an exception level other than a lowest exception level, to set a maximum vector length applicable to that exception level and at least one lower exception level.

### Claim 6 (depends on 5)

The apparatus of claim 5, in which the first processing circuitry is configured to execute the vector length setting processing instruction to set a vector length for use in the first processing mode to be no higher than the first vector length and to set a vector length for use in the second processing mode to be no higher than the second vector length.

### Claim 7 (depends on 6)

The apparatus of claim 6, in which the first processing circuitry is configured to execute the vector length setting processing instruction at a given exception level to set a vector length for use in a given processing mode no higher than the maximum vector length for the given processing mode which was set by execution of the vector length setting processing instruction at an exception level higher than the given exception level.

### Claim 8 (depends on 3)

The apparatus of claim 3, in which the first processing circuitry is configured to execute the mode change instructions at any exception level of the hierarchy of exception levels.

### Claim 9 (depends on 2)

The apparatus of claim 2, comprising:
one or more second vector registers having the second vector length; and
second processing circuitry configured to execute the decoded vector processing instructions in accordance with a vector length no greater than the second vector length.

### Claim 10 (depends on 2)

The apparatus of claim 2, in which the vector processing instructions are agnostic with respect to the vector length defined by the current processing mode.

### Claim 11 (depends on 2)

The apparatus of claim 2, comprising vector length register storage configured to store a vector length no greater than the first vector length, for use in the first processing mode, and to store a vector length no greater than the second vector length, for use in the second processing mode the second vector length, the instruction decoder being configured to access the vector length storage in dependence upon the current processing mode.

### Claim 12 (depends on 2)

The apparatus of claim 2, in which the second vector length is different to the first vector length.

### Claim 13 (depends on 12)

The apparatus of claim 12, in which the second vector length is greater than the first vector length.

### Claim 14 (depends on 1)

The apparatus of claim 1, in which the control circuitry is configured to detect, in the second processing mode, whether a given processing instruction is executable by the first processing circuitry or the second processing circuitry.

### Claim 15 (depends on 1)

The apparatus of claim 1, comprising:
two or more instances of first processing circuitry;
in which the instruction decoder of each instance of the first processing circuitry is configured to selectively route processing instructions to a common second processing circuitry.

### Claim 16 (depends on 1)

The apparatus of claim 1, in which the second processing circuitry comprises matrix processing circuitry and one or more matrix registers; and
the second instruction set comprises one or more matrix processing instructions which are unavailable in the first instruction set.

### Claim 17 (depends on 1)

The apparatus of claim 1, comprising:
a data memory; and
address translation circuitry to translate between input memory addresses in an input memory address space and output memory addresses in an output memory address space, the data memory being accessible according to the output memory address space;
in which the control circuitry is configured, in the second processing mode, to initiate translation of an input memory address associated with a processing instruction for execution by the second processing circuitry and to provide a translated output memory address to the second processing circuitry.

### Claim 18

A method comprising:
decoding processing instructions;
executing the decoded processing instructions in a first processing mode in which the processing circuitry is configured to execute the decoded processing instructions using one or more first registers; and
selectively initiating execution of the decoded processing instructions in a second processing mode in which the decoded processing instructions are selectively executed using one or more second registers;
the decoding step comprising decoding processing instructions selected from a first instruction set in the first processing mode and processing instructions selected from a second instruction set in the second processing mode, in which one or both of the first and second instruction sets comprises at least one instruction which is unavailable in the other of the first and second instruction sets;
the decoding step comprising decoding one or more mode change instructions to change between the first processing mode and the second processing mode; and
the executing step comprising changing the current processing mode between the first processing mode and the second processing mode in response to execution of a mode change instruction.

### Claim 19

A computer program for controlling a host data processing apparatus to provide an instruction execution environment comprising:
an instruction decoder to decode processing instructions;
one or more first registers;
first processing circuitry to execute the decoded processing instructions in a first processing mode in which the first processing circuitry is configured to execute the decoded processing instructions using the one or more first registers; and
control circuitry to selectively initiate execution of the decoded processing instructions in a second processing mode in which the decoded processing instructions are selectively executed using one or more second registers;
the instruction decoder being configured to decode processing instructions selected from a first instruction set in the first processing mode and processing instructions selected from a second instruction set in the second processing mode, in which one or both of the first and second instruction sets comprises at least one instruction which is unavailable in the other of the first and second instruction sets;
the instruction decoder being configured to decode one or more mode change instructions to change between the first processing mode and the second processing mode; and
the first processing circuitry being configured to change the current processing mode between the first processing mode and the second processing mode in response to execution of a mode change instruction.
