# US 2021/0287075 A1 · Hardware architecture for processing data in neural network

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

- Number: US 2021/0287075 A1
- Document ID: US20210287075A1
- Status: Published application
- Kind: A1
- Application number: 17/196,922
- Filed: 2021-03-09
- Published: 2021-09-16
- Earliest claimed: 2020-03-10
- Assignees: Henry Verheyen; Jianjun Wen
- Inventors: Henry Verheyen; Jianjun Wen
- Web page: https://patentgrep.com/patent/US20210287075A1

## CPC

- G06F 7/5443: {Sum of products (for applications thereof, see the relevant places, e.g. G06F17/10, H03H17/00)}
- G06N 3/063: using electronic means
- G06F 5/01: for shifting, e.g. justifying, scaling, normalising {(digital stores in which the information is moved stepwise, e.g. shift-registers G11C19/00; digital stores in which the information circulates G11C21/00)}
- G06F 7/523: Multiplying only
- G06F 9/5027: {the resource being a machine, e.g. CPUs, Servers, Terminals}
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06F 2207/4824: Neural networks
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A hardware accelerator that is efficient at performing computations related to a neural network. In one embodiment, the hardware accelerator includes a first data buffer that receives input data of a layer in the neural network and shift the input data slice by slice downstream. The hardware accelerator includes a second data buffer that receives kernel data of the layer in the neural network and shift the kernel data slice by slice downstream. The hardware accelerator includes a first input shift register that receives an input data slice from the first data buffer. The first input shift register may correspond to a two-dimensional shift register configured to shift values in the input data slice in x and y directions. The hardware accelerator includes a second input shift register that receives a kernel data slice from the second data buffer. A multiplication block performs convolution of the input and kernel data.

## Claims

### Claim 1

An artificial intelligence accelerator for performing convolutional operations related to a neural network, the artificial intelligence accelerator comprising:
a first data buffer configured to receive input data of a layer in the neural network and shift the input data slice by slice downstream, each slice having a predetermined size and dimension;
a second data buffer configured to receive kernel data of the layer in the neural network and shift the kernel data slice by slice downstream;
a first input shift register coupled to the first data buffer, the first input shift register having the size and dimension of the slice and configured to receive an input data slice from the first data buffer, the first input shift register comprising a two-dimensional shift register configured to shift values in the input data slice in a first direction and in a second direction;
a second input shift register coupled to the second data buffer, the second input shift register having the size and dimension of the slice and configured to receive a kernel data slice from the second data buffer;
a multiplication block circuit coupled to the first input shift register and the second input shift register, the multiplication block circuit configured to perform computations related to the convolutional operations between values in the input data slice and values in the kernel data slice; and
an output buffer coupled to the multiplication block circuit, the output buffer configured to receive an output of the computations of the multiplication block circuit and pass the output back to the first data buffer as input data of a succeeding layer in the neural network.

### Claim 2 (depends on 1)

The artificial intelligence accelerator of claim 1, wherein the first and second data buffers configured to operate at a first clock speed and the multiplication block circuit is configured to operate at a second clock speed higher than the first clock speed.

### Claim 3 (depends on 1)

The artificial intelligence accelerator of claim 1, wherein the multiplication block circuit further configured to perform matrix multiplications, the multiplication block circuit is configured to perform the convolutional operations and the matrix multiplications in parallel.

### Claim 4 (depends on 3)

The artificial intelligence accelerator of claim 3, wherein the multiplication block circuit is configured to receive no instruction set in performing the convolutional operations and the matrix multiplications.

### Claim 5 (depends on 1)

The artificial intelligence accelerator of claim 1, further comprising:
a third data buffer, wherein the first input shift register is coupled to the first data buffer and the third data buffer, and wherein the output buffer is configured to pass the output back to either the first data buffer or the third data buffer as input data of a succeeding layer in the neural network, wherein the first data buffer and the third data buffer are configured to operate independently where one operates in a send mode and the other operates in receive mode, and wherein the send and receive modes of the first and third data buffer are reversible for layers in the neural network.

### Claim 6 (depends on 1)

The artificial intelligence accelerator of claim 1, wherein second input shift register comprises two-dimensional shift register instead of the first input shift register.

### Claim 7 (depends on 1)

The artificial intelligence accelerator of claim 1, wherein the input shift register is coupled to the output buffer and is configured to receive data from the output buffer.

### Claim 8 (depends on 4)

The artificial intelligence accelerator of claim 4, wherein the multiplication block circuit is configurable.

### Claim 9 (depends on 8)

The artificial intelligence accelerator of claim 8, wherein configurations of the multiplication block circuit are fixed for each layer in the neural network.

### Claim 10 (depends on 8)

The artificial intelligence accelerator of claim 8, wherein configurations of the multiplication block circuit are different within a layer in the neural network.

### Claim 11

An artificial intelligence accelerator for performing convolutional operations related to a neural network, the artificial intelligence accelerator comprising:
a first data buffer configured to receive input data of a layer in the neural network and shift the input data slice by slice downstream, each slice having a predetermined size and dimension;
a second data buffer configured to receive kernel data of the layer in the neural network and shift the kernel data slice by slice downstream;
a first input shift register coupled to the first data buffer, the first input shift register having the size and dimension of the slice and configured to receive an input data slice from the first data buffer;
a second input shift register coupled to the second data buffer, the second input shift register having the size and dimension of the slice and configured to receive a kernel data slice from the second data buffer;
a multiplication block circuit coupled to the first input shift register and the second input shift register, the multiplication block circuit configured to perform computations related to the convolutional operations between values in the input data slice and values in the kernel data slice; and
wherein a layout of the first input shift register and a layout of the second input shift register are based on a geometric arrangement of a predetermined kernel size.

### Claim 12 (depends on 11)

The artificial intelligence accelerator of claim 11, wherein the predetermined kernel size is a square matrix.

### Claim 13 (depends on 12)

The artificial intelligence accelerator of claim 12, wherein the kernel data is grouped into groups of 4.

### Claim 14 (depends on 13)

The artificial intelligence accelerator of claim 13, wherein the groups of 4 are grouped again into groups of 4.

### Claim 15 (depends on 14)

The artificial intelligence accelerator of claim 14, wherein the groups of 4 are grouped again into groups of 4 multiple more times.

### Claim 16

A compute grid in an artificial intelligence accelerator for performing convolutional operations related to a neural network, the compute grid comprising:
a multiplication block circuit comprising an input circuit, an output circuit, an array of multiplication chain circuits, wherein inputs of the multiplication chain circuits are connected to the input circuit, each multiplication chain circuit is configured to receive a first input vector corresponding to input data and a second input vector corresponding to kernel data, each multiplication chain circuit is configured to compute a dot product calculation between the first and second input vectors; and
wherein the multiplication block circuit further comprises a local logic circuit configured to receive results from the multiplication chain circuits and to perform post processing of the results, the local logic circuit coupled to the output circuit.

### Claim 17 (depends on 16)

The compute grid of claim 16, wherein the dot product calculation is performed in a single clock cycle.

### Claim 18 (depends on 16)

The compute grid of claim 16, wherein each multiplication chain circuit is pipelined and the dot product calculation is done in multiple clock cycles.

### Claim 19 (depends on 16)

The compute grid of claim 16, wherein the multiplication chain circuits receive no instruction set.

### Claim 20 (depends on 16)

The compute grid of claim 16, wherein the compute grid is configured to perform the convolutional computations in parallel.

### Claim 21 (depends on 20)

The compute grid of claim 20, wherein the compute grid is configured to repeat the convolutional computations in parallel while receiving input data that are shifted from an input shift register.

### Claim 22 (depends on 21)

The compute grid of claim 21, wherein the compute grid is configured to include padding.

### Claim 23 (depends on 22)

The compute grid of claim 22, wherein the compute grid is configured to perform matrix multiplication computations in parallel.

### Claim 24 (depends on 22)

The compute grid of claim 22, further comprising a summation tree.

### Claim 25 (depends on 24)

The compute grid of claim 24, wherein summation is performed on groups of 4.

### Claim 26 (depends on 25)

The compute grid of claim 25, wherein summation is performed at multiple levels in a hierarchy.

### Claim 27 (depends on 26)

The compute grid of claim 26, wherein the summation tree represents a kernel layout of an input shift register connected to the compute grid.

### Claim 28 (depends on 16)

The compute grid of claim 16, wherein the multiplication block circuit is controlled by timed configuration.

### Claim 29 (depends on 28)

The compute grid of claim 28, wherein the timed configuration is fixed for each layer of computation in the neural network.

### Claim 30 (depends on 29)

The compute grid of claim 29, wherein the timed configuration is changeable in each layer of computation in the neural network.
