# US 2022/0036169 A1 · Systolic computational architecture for implementing artificial neural networks processing a plurality of types of convolution

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

- Number: US 2022/0036169 A1
- Document ID: US20220036169A1
- Status: Published application
- Kind: A1
- Application number: 17/389,410
- Filed: 2021-07-30
- Published: 2022-02-03
- Earliest claimed: 2020-08-03
- Applicants: Commissariat A L'energie Atomique Et Aux Energies Alternatives
- Inventors: Michel HARRAND
- Web page: https://patentgrep.com/patent/US20220036169A1

## CPC

- G06N 3/063: using electronic means
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/09: Supervised learning
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A circuit for computing output data of a layer of an artificial neural network includes an external memory and an integrated system on chip comprising: a computing network comprising at least one set of at least one group of computing units; the computing network furthermore comprising a buffer memory connected to the computing unit; a weight-storing stage comprising a plurality of memories for storing the synaptic coefficients; each memory being connected to all the computing units of same rank; control means configured to distribute the input data such that each set of groups of computing units receives a column vector of the submatrix stored in the buffer memory implemented by one column. All the sets simultaneously receive column vectors that are shifted with respect to each other by a number of rows equal to a stride of the convolution operation.

## Claims

### Claim 1

A computing circuit (CALC) for computing output data (Oi,j) of a layer of an artificial neural network from input data (xi,j), the neural network being composed of a succession of layers each consisting of a set of neurons, each layer being connected to one adjacent layer via a plurality of synapses associated with a set of synaptic coefficients (wi,j) forming at least one weight matrix ([W]p,q); the computing circuit (CALC) comprising:
an external memory (MEM_EXT) for storing all the input and output data of all the neurons of at least one layer of the network in the course of computation;
an integrated system on chip (SoC) comprising:
i. a computing network (MAC_RES) comprising at least one set (E1,E2,E3) of at least one group of computing units (Gj) of rank j=0 to M with M a positive integer;
each group (Gj) comprising at least one computing unit (PEn) of rank n=0 to N with N a positive integer for computing a sum of input data weighted by the synaptic coefficients;
the computing network (MAC_RES) further comprising a buffer memory (BUFF) for storing a submatrix of input data originating from the memory (MEM_EXT); the buffer memory (BUFF) being connected to the computing units (PEn);
ii. a weight-storing stage (MEM_POIDS) comprising a plurality of memories (MEM_POIDSn) of rank n=0 to N for storing the synaptic coefficients of the weight matrices ([W]p,q); each memory (MEM_POIDSn) of rank n=0 to N being connected to all the computing units (PEn) of the same rank n of each of the groups (G);
iii. control means (ADD_GEN, ADD_GEN2) configured to distribute the input data (xi,j) from the buffer memory (BUFF) to said sets (E1,E2,E3) so that each set (E1,E2,E3) of groups of computing units receives a column vector of the submatrix stored in the buffer memory (BUFF) incremented by one column with respect to the column vector received previously; all the sets (E1,E2,E3) simultaneously receive column vectors that are shifted with respect to each other by a number of rows equal to a stride of the convolution operation;
the output data (Oij) of a layer are organised into a plurality of output matrices ([O]q) of rank q=0 to Q with Q a positive integer, each output matrix being associated with an output channel of same rank q;
each synaptic coefficient of the weight matrix ([W]p,q) associated with said output channel is stored solely in the weight memory (MEM_POIDSn) of rank n=0 to N+1 such that q modulo N+1 is equal to n.

### Claim 2 (depends on 1)

The computing circuit (CALC) according to claim 1, wherein the control means (ADD_GEN, ADD_GEN1) are furthermore configured to organise the read-out of the synaptic coefficients (wi,j) from the weight memories (MEM_POIDSn) to said sets (E1,E2,E3).

### Claim 3 (depends on 1)

The computing circuit (CALC) according to claim 1, wherein the control means are implemented via a set of address generators (ADD_GEN, ADD_GEN1, ADD_GEN2).

### Claim 4 (depends on 1)

The computing circuit (CALC) according to claim 1, wherein the integrated system on chip (SoC) comprises an internal memory (MEM_INT) to be used as an extension of the external volatile memory (MEM_EXT); the internal memory (MEM_INT) being connected to write to the buffer memory (BUFF).

### Claim 5 (depends on 1)

The computing circuit (CALC) according to claim 1, wherein:
the control means (ADD_GEN) are configured to organise the output data (Oi,j) in the buffer memory (BUFF) so that the output data (Oij) of a layer are organised into a plurality of output matrices ([O]q) of rank q=0 to Q with Q a positive integer, each output matrix being obtained from at least one input matrix ([I]p) of rank p=0 to P with P a positive integer,
the control means (ADD_GEN2) are configured to organise the synaptic coefficients (wi,j) in the weight-storing stage (MEM_POIDS) so that, for each pair consisting of an input matrix of rank p and an output matrix of rank q, the associated synaptic coefficients (wi,j) form a weight matrix ([W]p,qk),
each computing unit (PEn) is able to generate one output datum (Oi,j) of the output matrix ([O]q), by computing the sum of the input data of a submatrix ([X1], [X2], [X3], [X4], [X5], [X6], [X7], [X8], [X9]) of the input matrix ([I]p) weighted by the associated synaptic coefficients,
the control means (ADD_GEN, ADD_GEN2) are configured to organise the output data (Oi,j) in the buffer memory (BUFF) so that the input submatrices ([X1], [X2], [X3], [X4], [X5], [X6], [X7], [X8], [X9]) have the same dimensions as the weight matrix ([W]p,qk) and so that each input submatrix is obtained by applying a shift equal to the stride of the convolution operation carried out in the row or column direction to an adjacent input submatrix.

### Claim 6 (depends on 1)

The computing circuit (CALC) according to claim 1, wherein each computing unit comprises:
i. an input register (Reg_in0, Reg_in1, Reg_in2, Reg_in3) for storing an input datum (xi,j);
ii. a multiplier circuit (MULT) for computing the product of an input datum (xi,j) and of a synaptic coefficient (wi,j);
iii. an adder circuit (ADD0, ADD1, ADD2, ADD3) having a first input connected to the output of the multiplier circuit (MULT0, MULT1, MULT2, MULT3) and being configured to perform the operations of summing partial results of computation of a weighted sum;
iv. at least one accumulator (ACC00, ACC10, ACC20) for storing the partial or final results of computation of the weighted sum.

### Claim 7 (depends on 1)

The computing circuit (CALC) according to claim 1, wherein each weight memory (MEM_POIDS0, MEM_POIDS1, MEM_POIDS2, MEM_POIDS3) of rank n=0 to N contains all of the synaptic coefficients (wi,j) belonging to all the weight matrices ([W]p,q) associated with the output matrix ([O]q) of rank q=0 to Q such that q modulo N+1 is equal to n.

### Claim 8 (depends on 1)

The computing circuit (CALC) according to claim 1, introducing a parallelism into computation of output channels, this parallelism being such that the computing units (PEn) of rank n=0 to N of the various groups of computing units (Gj) carry out the multiplication and addition operations to compute an output matrix ([O]q) of rank q=0 to Q such that q modulo N+1 is equal to n.

### Claim 9 (depends on 1)

The computing circuit (CALC) according to claim 1, wherein each set (E1,E2,E3) comprises a single group of computing units (Gj), each computing unit (PE) comprising a plurality of accumulators (ACC00, ACC10, ACC20); each set (E1,E2,E3) of rank k with k=1 to K with K a strictly positive integer, being configured to carry out successively, for a received input datum (xi,j), the addition and multiplication operations to compute partial output results (Oi,j) belonging to a row of rank i=0 to L, with L a positive integer, of the output matrix ([O]q) from said input datum (xi,j), such that i modulo K is equal to (k−1).

### Claim 10 (depends on 9)

The computing circuit (CALC) according to claim 9, wherein the partial results of each of the output results (Oi,j) of the row of the output matrix computed by a computing unit (PEn) are stored in a separate accumulator belonging to the same computing unit (PEn).

### Claim 11 (depends on 1)

The computing circuit (CALC) according to claim 1, wherein each set (E1, E2, E3) comprises a plurality of groups of computing units (Gj) introducing a spatial parallelism into computation of the output matrix ([O]q)
such that each set (E1,E2,E3) of rank k with k=1 to K carries out in parallel the addition and multiplication operations to compute partial output results (Oi,j) belonging to a row of rank i of the output matrix ([O]q), such that i modulo K is equal to (k−1) and such that each group (Gj) of rank j=0 to M of said set (E1, E2, E3) carries out the addition and multiplication operations to compute partial output results (Oi,j) belonging to a column of rank I of the output matrix ([O]q) such that I modulo M+1 is equal to j.

### Claim 12 (depends on 11)

The computing circuit (CALC) according to claim 11 comprising three sets (E1, E2, E3), each set comprising three groups of computing units (G1, G2, G3).

### Claim 13 (depends on 1)

The computing circuit (CALC) according to claim 1, wherein the weight memories (MEM_POIDSn) are of NVM type.
