# US 2025/0103292 A1 · Matrix Multiplier Caching

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

- Number: US 2025/0103292 A1
- Document ID: US20250103292A1
- Status: Published application
- Kind: A1
- Application number: 18/426,020
- Filed: 2024-01-29
- Published: 2025-03-27
- Earliest claimed: 2023-09-27
- Assignees: Apple Inc.
- Applicants: Apple Inc.
- Inventors: David K. Li; Christopher A. Burns; Daniel E. Barnard; Evan R. Lissoos
- Web page: https://patentgrep.com/patent/US20250103292A1

## CPC

- G06F 7/5443: {Sum of products (for applications thereof, see the relevant places, e.g. G06F17/10, H03H17/00)}
- G06F 7/5013: {using algebraic addition of the input signals, e.g. Kirchhoff adders}
- G06F 17/16: Matrix or vector computation {, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization (matrix transposition G06F7/78)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques are disclosed relating to integrated circuits that support matrix operations. In various embodiments, an integrated circuit comprises a dot product accumulate circuit that includes a dot product circuit configured to determine a dot product of a first vector and a second vector, and an adder circuit coupled to an output of the dot product circuit and configured to add a result of the dot product and an accumulation value. The integrated circuit further includes an accumulator cache coupled to an input of the adder circuit and an output of the adder circuit. The accumulator cache is configured to provide the accumulation value to the adder circuit and store a result of the add as a subsequent accumulation value for a subsequent dot product accumulate operation.

## Claims

### Claim 1

An integrated circuit, comprising:
a dot product accumulate circuit that includes:
a dot product circuit configured to determine a dot product of a first vector and a second vector; and
an adder circuit coupled to an output of the dot product circuit and configured to add a result of the dot product and an accumulation value; and
an accumulator cache coupled to an input of the adder circuit and an output of the adder circuit, wherein the accumulator cache is configured to:
provide the accumulation value to the adder circuit; and
store a result of the add as a subsequent accumulation value for a subsequent dot product accumulate operation.

### Claim 2 (depends on 1)

The integrated circuit of claim 1, wherein the accumulator cache is configured to:
store the result of the add in a first entry of the accumulator cache while performing a write back of a previous stored result from a second entry of the accumulator cache to a register file.

### Claim 3 (depends on 1)

The integrated circuit of claim 1, further comprising:
a matrix multiplier circuit configured to multiply first and second matrices, wherein the matrix multiplier circuit includes a plurality of dot product accumulate circuits.

### Claim 4 (depends on 3)

The integrated circuit of claim 3, wherein the matrix multiplier circuit is configured to:
send a first portion of the first and second matrices to the dot product accumulate circuits to calculate a first partial set of results; and
while storing the first partial set of results in a plurality of accumulator caches, send a second portion of the first and second matrices to the dot product accumulate circuits to calculate a second partial set of results.

### Claim 5 (depends on 1)

The integrated circuit of claim 1, further comprising:
a scheduler circuit configured to:
receive compiled first and second program instructions with an indication from a compiler that the second program instruction is dependent on a dot product accumulate result of the first program instruction; and
consecutively schedule the first and second program instructions for execution by the dot product accumulate circuit to cause the accumulator cache to provide the dot product accumulate result as an input operand for execution of the second program instruction.

### Claim 6 (depends on 1)

The integrated circuit of claim 1, further comprising:
register file circuitry configured to:
store values of first and second matrices including the first and second vectors; and
wherein the accumulator cache is located closer to the adder circuit than the register file circuitry.

### Claim 7 (depends on 1)

The integrated circuit of claim 1, wherein the dot product accumulate circuit is configured to perform an integer dot product accumulate; and
wherein the integrated circuit further comprises a second dot product accumulate circuit configured to perform a floating point dot product accumulate.

### Claim 8 (depends on 7)

The integrated circuit of claim 7, wherein the accumulator cache is configured to:
provide stored results to adder circuits in both dot product accumulate circuits.

### Claim 9 (depends on 1)

The integrated circuit of claim 1, wherein the integrated circuit is a single instruction multiple data (SIMD) processor.

### Claim 10 (depends on 1)

The integrated circuit of claim 1, wherein the integrated circuit is a graphics processing unit.

### Claim 11

A method, comprising:
performing, by a computing device, a dot product accumulate that includes:
determining a dot product of a first vector and a second vector; and
adding, by an adder circuit, a result of the dot product and an accumulation value, wherein the accumulation value is provided by an accumulator cache coupled to the adder circuit; and
storing, in the accumulator cache, a result of the add as a subsequent accumulation value for a subsequent dot product accumulate operation.

### Claim 12 (depends on 11)

The method of claim 11, wherein the storing includes:
storing the result of the add in a first entry of the accumulator cache while performing a write back of a previous stored result from a second entry of the accumulator cache to register file circuitry of the computing device.

### Claim 13 (depends on 12)

The method of claim 12, wherein the accumulator cache is located closer to the adder circuit than the register file circuitry.

### Claim 14 (depends on 11)

The method of claim 11, further comprising:
multiply, by the computing device, first and second matrices including the first and second vectors, wherein the multiplying includes performing the dot product accumulate.

### Claim 15 (depends on 11)

The method of claim 11, further comprising:
receiving, by the computing device, compiled first and second program instructions with an indication from a compiler that the second program instruction is dependent on a dot product accumulate result of the first program instruction; and
consecutively scheduling, by the computing device, the first and second program instructions for execution to cause the accumulator cache to provide the dot product accumulate result as an input operand for execution of the second program instruction.

### Claim 16

A non-transitory computer readable medium having instructions of a hardware description programming language stored thereon that, when processed by a computing system, program the computing system to generate a computer simulation model, wherein the model represents a hardware circuit that includes:
a dot product accumulate circuit that includes:
a dot product circuit configured to determine a dot product of a first vector and a second vector; and
an adder circuit coupled to an output of the dot product circuit and configured to add a result of the dot product and an accumulation value; and
an accumulator cache coupled to an input of the adder circuit and an output of the adder circuit, wherein the accumulator cache is configured to:
provide the accumulation value to the adder circuit; and
store a result of the add as a subsequent accumulation value for a subsequent dot product accumulate operation.

### Claim 17 (depends on 16)

The computer readable medium of claim 16, wherein the accumulator cache is configured to:
store the result of the add in a first entry of the accumulator cache while writing back of a previous stored result from a second entry of the accumulator cache to a register file.

### Claim 18 (depends on 16)

The computer readable medium of claim 16, wherein the hardware circuit includes:
a matrix multiplier circuit configured to multiply first and second matrices, wherein the matrix multiplier circuit includes a plurality of dot product accumulate circuits.

### Claim 19 (depends on 16)

The computer readable medium of claim 16, wherein the hardware circuit includes:
a scheduler circuit configured to:
receive an indication from a compiler that a second program instruction is dependent on a dot product accumulate result of a first program instruction; and
consecutively schedule the first and second program instructions for execution by the dot product accumulate circuit.

### Claim 20 (depends on 16)

The computer readable medium of claim 16, wherein the hardware circuit includes:
register file circuitry configured to:
store the first and second vectors, wherein the accumulator cache is located closer to the adder circuit than the register file circuitry.
