# US 2020/0394042 A1 · Vector friendly instruction format and execution thereof

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

- Number: US 2020/0394042 A1
- Document ID: US20200394042A1
- Status: Published application
- Kind: A1
- Application number: 17/004,711
- Filed: 2020-08-27
- Published: 2020-12-17
- Earliest claimed: 2011-04-01
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Robert C. VALENTINE; Jesus Corbal SAN ADRIAN; Roger Espasa SANS; Robert D. CAVIN; Bret L. TOLL; Santiago Galan DURAN; Jeffrey G. WIEDEMEIER; Sridhar SAMUDRALA; Milind Baburao GIRKAR; Edward Thomas GROCHOWSKI; Jonathan Cannon HALL; Dennis R. BRADFORD; Elmoustapha OULD-AHMED-VALL; James C. ABEL; Mark CHARNEY; Seth ABRAHAM; Suleyman SAIR; Andrew Thomas FORSYTH; Lisa WU; Charles YOUNT
- Web page: https://patentgrep.com/patent/US20200394042A1

## CPC

- G06F 9/30145: {Instruction analysis, e.g. decoding, instruction word fields}
- G06F 9/3001: {Arithmetic instructions}
- G06F 9/30014: {with variable precision}
- G06F 9/30018: {Bit or string instructions}
- G06F 9/30025: {Format conversion instructions, e.g. Floating-Point to Integer, decimal conversion}
- G06F 9/30032: {Movement instructions, e.g. MOVE, SHIFT, ROTATE, SHUFFLE}
- G06F 9/30036: {Instructions to perform operations on packed data, e.g. vector, tile or matrix operations}
- G06F 9/30038: {using a mask}
- G06F 9/30047: {Prefetch instructions; cache control instructions}
- G06F 9/30149: {of variable length instructions}
- G06F 9/30181: {Instruction operation extension or modification}
- G06F 9/30185: {according to one or more bits in the instruction, e.g. prefix, sub-opcode}
- G06F 9/30192: {according to data descriptor, e.g. dynamic data typing}
- G06F 9/34: Addressing or accessing the instruction operand or the result {; Formation of operand address; Addressing modes (address translation G06F12/00)}
- H10D 30/43: having one-dimensional [1D] charge carrier gas channels, e.g. quantum wire FETs or transistors having 1D quantum-confined channels
- H10D 30/611: {having multiple independently-addressable gate electrodes influencing the same channel (FinFETs having multiple distinct gate electrodes H10D30/6215; multi-gate TFT H10D30/6733)}
- H10D 30/6757: {characterised by the structure of the channel, e.g. transverse or longitudinal shape or doping profile (TFTs having channel structures for preventing kink or snapback effects H10D30/6708; TFTs having lightly-doped source or drain extensions H10D30/6715)}
- H10D 64/018: {Spacers formed inside holes at the prospective gate locations, e.g. holes left by removing dummy gates}
- H10D 84/0142: {the gate conductors having different shapes or dimensions}
- H10D 84/0147: {Manufacturing their gate sidewall spacers}
- H10D 84/038: {using silicon technology, e.g. SiGe}
- H10D 84/8311: {the IGFETs characterised by having different channel structures}
- H10D 88/00: Three-dimensional [3D] integrated devices
- H10D 88/01: {Manufacture or treatment}
- H10D 48/30: Devices controlled by electric currents or voltages
- H10D 84/0179: {the gate conductors having different shapes or dimensions}
- H10D 84/0184: {Manufacturing their gate sidewall spacers}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H10D: INORGANIC ELECTRIC SEMICONDUCTOR DEVICES

## Abstract

A vector friendly instruction format and execution thereof. According to one embodiment of the invention, a processor is configured to execute an instruction set. The instruction set includes a vector friendly instruction format. The vector friendly instruction format has a plurality of fields including a base operation field, a modifier field, an augmentation operation field, and a data element width field, wherein the first instruction format supports different versions of base operations and different augmentation operations through placement of different values in the base operation field, the modifier field, the alpha field, the beta field, and the data element width field, and wherein only one of the different values may be placed in each of the base operation field, the modifier field, the alpha field, the beta field, and the data element width field on each occurrence of an instruction in the first instruction format in instruction streams.

## Claims

### Claim 1

An apparatus comprising:
a processor configured to execute an instruction set, wherein the instruction set includes a first instruction format, wherein the first instruction format has a plurality of fields including a base operation field, a modifier field, a class field, an alpha field, and a beta field, wherein the first instruction format supports different versions of base operations and different augmentation operations through placement of different values in the base operation field, the modifier field, the class field, the alpha field, and the beta field, and wherein only one of the different values may be placed in each of the base operation field, the modifier field, the class field, the alpha field, and the beta field on each occurrence of an instruction in the first instruction format in instruction streams, wherein a first value in the class field specifies a first class and a second value specifies a second class, the processor including,
a decode unit to decode the occurrences of the instructions in the first instruction format follows:
distinguish the occurrences of instructions in the first instruction format that specify memory access from those that do not based on the modifier field's content in those different occurrences, wherein the beta field is interpreted as a broadcast field and a vector length field when the modifier field's content specifies memory access, wherein part of the beta field is interpreted as an RL field when the modifier field's content do not specify memory access;
distinguish, for each of the occurrences that specifies memory access through the modifier field's content, whether to perform a broadcast operation or not and which one of a plurality of vector lengths to use based on the beta field's content and its interpretation as the broadcast field and the vector length field in that occurrence; and
distinguish, for each of the occurrences that does not specify memory access through the modifier field's content, whether to augment with a round type operation or with a vector length type operation based on the RL field's content in that occurrence, wherein a remainder of the beta field is interpreted as a round operation field when the RL field's content indicates the round type operation, and wherein the remainder of the beta field is instead interpreted as the vector length field when the RL field's content indicates the vector length type operation;
distinguish, for each of the occurrences that does not specify memory access through the modifier field's content and that does specify the round type operation through the RL field's content, which one of a plurality of round operations to apply based on the beta field's content and its interpretation as the round operation field in that occurrence; and
distinguish, for each of the occurrences, whether to perform a merging write mask operation or a zeroing write mask operation based on the alpha field's content and its interpretation as a write mask control field in that occurrence.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the plurality of round operations includes round to nearest, round down, round up, and round toward zero.

### Claim 3 (depends on 1)

The apparatus of claim 1, wherein the first instruction format further includes a data element width field, wherein the first instruction format supports through different values in the data element width field specification of different data element widths.

### Claim 4 (depends on 3)

The apparatus of claim 3, wherein the different data element widths include 32 bits and 64 bits.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein the first instruction format also supports through different values in a real opcode field inside the base operation field the specification of an 8 bit and a 16 bit data element width.

### Claim 6 (depends on 1)

The apparatus of claim 1, wherein the first instruction format further includes a real opcode field inside the base operation field, wherein the real opcode field's content distinguishes whether the data element width field's content selects between a 64 bit and a 32 bit data element size or selects between a 16 bit and an 8 bit data element size for each of the occurrences.

### Claim 7 (depends on 1)

The apparatus of claim 1, wherein the plurality of vector lengths include 128 bits, 256 bits, and 512 bits.

### Claim 8 (depends on 1)

The apparatus of claim 1, wherein the broadcast operation includes 1-element granularity broadcast.

### Claim 9 (depends on 1)

The apparatus of claim 1, wherein at least certain of the different base operations operate on two source operands and a destination operand does not overwrite either of the two source operands.

### Claim 10 (depends on 1)

The apparatus of claim 1, wherein at least certain of the different base operations operate on two source operands and a destination operand overwrites one of the two source operands.

### Claim 11 (depends on 1)

The apparatus of claim 1, wherein the second class supports the modifier field's content specifying a memory access operation with a scaled displacement, in which case the first instruction format includes a displacement factor field and fields from which a scale, an index, and a base are pulled, wherein the scaled displacement is generated based on multiplying the size of a memory access by the displacement factor field's content, and wherein the scale, index, base, and scaled displacement are used to generate an address for the memory access.

### Claim 12 (depends on 11)

The apparatus of claim 11, wherein the address is generated by 2scale+the index+the base+the scaled displacement.

### Claim 13 (depends on 11)

The apparatus of claim 11, wherein the displacement factor field's content is interpreted as a signed value between −128 and 127.

### Claim 14 (depends on 11)

The apparatus of claim 11, wherein the supported sizes of the memory access are 1 byte, 2 bytes, 4 bytes, 8 bytes, 16 bytes, 32 bytes, and 64 bytes.

### Claim 15

An apparatus comprising:
an instruction converter to convert an instruction from a first instruction set to one or more instructions of a different second instruction set, wherein the first instruction set includes a first instruction format, wherein the first instruction format has a plurality of fields including a base operation field, a modifier field, an alpha field, and a beta field, wherein the first instruction format supports different versions of base operations and different augmentation operations through placement of different values in the base operation field, the modifier field, the alpha field, and the beta field, and wherein only one of the different values may be placed in each of the base operation field, the modifier field, the alpha field, and the beta field on each occurrence of an instruction in the first instruction format in instruction streams, the instruction converter to determine the occurrences of the instructions in the first instruction format for translation as follows:
distinguish the occurrences of instructions in the first instruction format that specify memory access from those that do not based on the modifier field's content in those different occurrences, wherein the beta field is interpreted as a broadcast field and a vector length field when the modifier field's content specifies memory access, wherein part of the beta field is interpreted as an RL field when the modifier field's content do not specify memory access;
distinguish, for each of the occurrences that specifies memory access through the modifier field's content, whether to perform a broadcast operation or not and which one of a plurality of vector lengths to use based on the beta field's content and its interpretation as the broadcast field and the vector length field in that occurrence; and
distinguish, for each of the occurrences that does not specify memory access through the modifier field's content, whether to augment with a round type operation or with a vector length type operation based on the RL field's content in that occurrence, wherein a remainder of the beta field is interpreted as a round operation field when the RL field's content indicates the round type operation, and wherein the remainder of the beta field is instead interpreted as the vector length field when the RL field's content indicates the vector length type operation;
distinguish, for each of the occurrences that does not specify memory access through the modifier field's content and that does specify the round type operation through the RL field's content, which one of a plurality of round operations to apply based on the beta field's content and its interpretation as the round operation field in that occurrence; and
distinguish, for each of the occurrences, whether to perform a merging write mask operation or a zeroing write mask operation based on the alpha field's content and its interpretation as a write mask control field in that occurrence; and
a processor coupled with the instruction converter, the processor to decode and execute the one or more instructions of the second different instruction set, which have been converted from the instruction of the first instruction set.

### Claim 16 (depends on 15)

The apparatus of claim 15, wherein the plurality of round operations includes round to nearest, round down, round up, and round toward zero.

### Claim 17 (depends on 15)

The apparatus of claim 15, wherein the first instruction format further includes a data element width field, wherein the first instruction format supports through different values in the data element width field specification of different data element widths.

### Claim 18 (depends on 17)

The apparatus of claim 17, wherein the different data element widths include 32 bits and 64 bits.

### Claim 19 (depends on 15)

The apparatus of claim 15, wherein the first instruction format also supports through different values in a real opcode field inside the base operation field the specification of an 8 bit and a 16 bit data element width.

### Claim 20 (depends on 15)

The apparatus of claim 15, wherein the first instruction format further includes a real opcode field inside the base operation field, wherein the real opcode field's content distinguishes whether the data element width field's content selects between a 64 bit and a 32 bit data element size or selects between a 16 bit and an 8 bit data element size for each of the occurrences.

### Claim 21 (depends on 15)

The apparatus of claim 15, wherein the plurality of vector lengths include 128 bits, 256 bits, and 512 bits.

### Claim 22 (depends on 15)

The apparatus of claim 15, wherein p includes 1-element granularity broadcast.

### Claim 23 (depends on 15)

The apparatus of claim 15, wherein at least certain of the different base operations operate on two source operands and a destination operand does not overwrite either of the two source operands.

### Claim 24 (depends on 15)

The apparatus of claim 15, wherein at least certain of the different base operations operate on two source operands and a destination operand overwrites one of the two source operands.

### Claim 25 (depends on 15)

The apparatus of claim 15, wherein the first instruction format supports the modifier field's content specifying a memory access operation with a scaled displacement, in which case the first instruction format includes a displacement factor field and fields from which a scale, an index, and a base are pulled, wherein the scaled displacement is generated based on multiplying the size of a memory access by the displacement factor field's content, and wherein the scale, index, base, and scaled displacement are used to generate an address for the memory access.

### Claim 26 (depends on 25)

The apparatus of claim 25, wherein the address is generated by 2scale+the index+the base+the scaled displacement.

### Claim 27 (depends on 25)

The apparatus of claim 25, wherein the displacement factor field's content is interpreted as a signed value between −128 and 127.

### Claim 28 (depends on 25)

The apparatus of claim 25, wherein the supported sizes of the memory access are 1 byte, 2 bytes, 4 bytes, 8 bytes, 16 bytes, 32 bytes, and 64 bytes.
