# US 2025/0377889 A1 · Vector processor and method of executing arithmetic operation in vector processor

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

- Number: US 2025/0377889 A1
- Document ID: US20250377889A1
- Status: Published application
- Kind: A1
- Application number: 19/229,630
- Filed: 2025-06-05
- Published: 2025-12-11
- Earliest claimed: 2024-06-11
- Assignees: Fujitsu Limited
- Applicants: Fujitsu Limited
- Inventors: Sota SAKASHITA; Ryohei OKAZAKI; Chunye YOU
- Web page: https://patentgrep.com/patent/US20250377889A1

## CPC

- G06F 9/30038: {using a mask}
- G06F 9/3001: {Arithmetic instructions}
- G06F 9/30018: {Bit or string instructions}
- G06F 9/30036: {Instructions to perform operations on packed data, e.g. vector, tile or matrix operations}
- G06F 9/3016: {Decoding the operand specifier, e.g. specifier format}
- G06F 9/3838: {Dependency mechanisms, e.g. register scoreboarding}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A vector processor includes a mask register configured to hold mask values, an instruction decoder configured to set dependency information included in instruction execution information when a decoded instruction is a subsequent instruction having data dependency with one or more previous instructions, and to set all-set information included in instruction execution information when a decoded instruction sets all of the mask values, a vector processing unit configured to execute vector arithmetic operations based on the instruction execution information, and to store in the data register a result of an arithmetic operation of a vector element corresponding to each mask value that is in a set state, and a dependency reset unit configured to reset the dependency information corresponding to a destination operand of the subsequent instruction and the mask register, when the all-set information is set for the mask register and the mask register is designated by the subsequent instruction.

## Claims

### Claim 1

A vector processor for executing vector arithmetic operations, comprising:
a mask register configured to hold mask values set for respective vector elements when calculation results of the vector elements are stored in a data register;
an instruction decoder configured to decode each instruction to generate instruction execution information for each decoded instruction, to set dependency information included in the instruction execution information when a decoded instruction is a subsequent instruction having data dependency with one or more previous instructions, and to set all-set information included in the instruction execution information when a decoded instruction is an all-set instruction for setting all of the mask values of the mask register;
a scheduler configured to hold the instruction execution information for each decoded instruction and to sequentially output the instruction execution information for each instruction whose data dependency has been eliminated based on the dependency information included in the held instruction execution information;
a vector processing unit configured to execute vector arithmetic operations for respective vector elements based on the instruction execution information output from the scheduler, and to store in the data register a result of an arithmetic operation of a vector element corresponding to each mask value that is in a set state and held in the mask register; and
a dependency reset unit configured to reset the dependency information corresponding to a destination operand of the subsequent instruction and the dependency information corresponding to the mask register transferred from the instruction decoder to the scheduler, when the all-set information is set for the mask register and the mask register is designated by the subsequent instruction.

### Claim 2 (depends on 1)

The vector processor as claimed in claim 1, further comprising:
a first renaming map having a plurality of first entries to logical register numbers of data registers designated by instructions, the plurality of first entries being configured to hold respective physical register numbers of the data registers and dependency information; and
a second renaming map having a plurality of second entries corresponding to logical register numbers of mask registers designated by instructions, the plurality of second entries being configured to hold physical register numbers of the mask registers, dependency information, and all-set information,
wherein the dependency reset unit includes a first reset circuit configured to reset the dependency information held in one of the first entries corresponding to the destination operand of the subsequent instruction that uses as a first source operand the mask register designated by the all-set instruction, to reset the dependency information held in one of the second entries for which the all-set information is set, and to transfer all the reset dependency information to the scheduler.

### Claim 3 (depends on 2)

The vector processor according to claim 2, wherein the instruction decoder is configured to set a first read signal for instructing reading of data from a merging source corresponding to the destination operand of the subsequent instruction at a time of decoding the subsequent instruction, and
wherein the dependency reset unit further includes a second reset circuit configured to reset the first read signal when the first source operand indicates the mask register designated by the all-set instruction, and to transfer the reset first read signal to the scheduler.

### Claim 4 (depends on 2)

The vector processor as claimed in claim 2, wherein the instruction decoder is configured to set a second read signal for instructing reading of a mask value from the first source operand at a time of decoding the subsequent instruction, and
wherein the dependency reset unit further includes a third reset circuit configured to reset the second read signal when the first source operand indicates the mask register specified by the all-set instruction.

### Claim 5 (depends on 2)

The vector processor as claimed in claim 2, wherein the dependency reset unit includes a first avoidance circuit configured to avoid resetting, and transfer to the scheduler, the dependency information stored in the first renaming map corresponding to a source operand except for the first source operand designated by the subsequent instruction when the first source operand indicates the mask register specified by the all-set instruction.

### Claim 6 (depends on 2)

The vector processor as claimed in claim 2, wherein the instruction decoder is configured to set a third read signal for instructing reading of data from a data register indicated by a source operand other than the first source operand at a time of decoding the subsequent instruction, and
wherein the dependency reset unit includes a second avoidance circuit configured to avoid resetting, and transfer to the scheduler, the third read signal when the first source operand indicates the mask register designated by the all-set instruction.

### Claim 7

A method of executing arithmetic operations in a vector processor which executes vector arithmetic operations, and includes a mask register configured to hold mask values set for respective vector elements when calculation results of the vector elements are stored in a data register, the method comprising:
causing an instruction decoder of the vector processor to decode each instruction to generate instruction execution information for each decoded instruction, to set dependency information included in the instruction execution information when a decoded is instruction a subsequent instruction having data dependency with one or more previous instructions, and to set all-set information included in the instruction execution information when a decoded instruction is an all-set instruction for setting all of the mask values of the mask register;
causing a scheduler of the vector processor to hold the instruction execution information for each decoded instruction and to sequentially output the instruction execution information for each instruction whose data dependency has been eliminated based on the dependency information included in the held instruction execution information;
causing a vector processing unit of the vector processor to execute vector arithmetic operations for respective vector elements based on the instruction execution information output from the scheduler, and to store in the data register a result f an arithmetic operation of a vector element corresponding to each mask value that is in a set state and held in the mask register; and
causing a dependency reset unit of the vector processor to reset the dependency information corresponding to a destination operand of the subsequent instruction and the dependency information corresponding to the mask register transferred from the instruction decoder to the scheduler, when the all-set information is set for the mask register and the mask register is designated by the subsequent instruction.
