# US 2023/0057756 A1 · Crossbar Mapping Of DNN Weights

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

- Number: US 2023/0057756 A1
- Document ID: US20230057756A1
- Status: Published application
- Kind: A1
- Application number: 17/888,014
- Filed: 2022-08-15
- Published: 2023-02-23
- Earliest claimed: 2021-08-18
- Assignees: The Regents of the University of Michigan
- Applicants: The Regents of the University of Michigan
- Inventors: Zhengya ZHANG; Wei TANG
- Web page: https://patentgrep.com/patent/US20230057756A1

## CPC

- G11C 11/54: using elements simulating biological cells, e.g. neuron
- 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
- G06N 3/065: Analogue means
- G06N 20/10: using kernel methods, e.g. support vector machines [SVM]
- G11C 13/0002: {using resistive RAM [RRAM] elements}
- G11C 13/004: {Reading or sensing circuits or methods}
- G11C 2213/77: Array wherein the memory element being directly connected to the bit lines and word lines without any access device being used
- G11C 2213/79: Array wherein the access device being a transistor
- G11C: STATIC STORES (semiconductor memory devices H10B)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method is presented for mapping weights for kernels of a neural network onto a crossbar array. In one example, the crossbar array is comprised of an array of non-volatile memory cells arranged in columns and rows, such that memory cells in each row of the array is interconnected by a respective drive line and each column of the array is interconnected by a respective bit line; and wherein each memory cell is configured to receive an input signal indicative of a multiplier and operates to output a product of the multiplier and a weight of the given memory cell onto the corresponding bit line of the given memory cell, where the value of the multiplier is encoded in the input signal and the weight of the given memory cell is stored by the given memory cell.

## Claims

### Claim 1

A method for mapping weights for kernels of a neural network onto a crossbar array, comprising:
receiving two or more kernels of a neural network, where each kernel is represented as values in a matrix;
for each kernel of the two or more kernels, converting the kernel into a column vector;
for each kernel of the two or more kernels, mapping a corresponding column vector to a column of a crossbar array, wherein the crossbar array is comprised of an array of non-volatile memory cells arranged in columns and rows, such that memory cells in each row of the array is interconnected by a respective drive line and each column of the array is interconnected by a respective bit line; and wherein each memory cell is configured to receive an input signal indicative of a multiplier and operates to output a product of the multiplier and a weight of the given memory cell onto the corresponding bit line of the given memory cell, where the value of the multiplier is encoded in the input signal and the weight of the given memory cell is stored by the given memory cell; and
storing values for each kernel of the two or more kernels in the array of non-volatile memory cells.

### Claim 2 (depends on 1)

The method of claim 1 further comprises, for each kernel of the two or more kernels, mapping the column vector for each kernel in successive columns of the crossbar array.

### Claim 3 (depends on 1)

The method of claim 1 further comprises, for each kernel of the two or more kernels, converting the matrix into a rectangular array, where the values in the matrix of a given kernel are represented by a binary number having at least two bits, each row in the rectangular array corresponds to a different value in the matrix and each column in the rectangular array corresponds to a bit of the binary number used to represent the value.

### Claim 4 (depends on 1)

The method of claim 1 further comprises, for each kernel of the two or more kernels, converting the matrix into a rectangular array, where the values in the matrix of a given kernel are represented by a binary number having at least two bits, each row in the rectangular array corresponds to a different value in the matrix, and each column in the rectangular array corresponds to a subset of bits of the binary number used to represent the value.

### Claim 5 (depends on 1)

The method of claim 1 further comprises receiving an input representing an image and performing a multiply accumulate operation in relation to each of the two or more kernels stored in the crossbar array, where the input is a matrix having same number of rows and same number of columns as a given kernel of the two or more kernels.

### Claim 6 (depends on 5)

The method of claim 5 further comprises adding an additional column to the array of non-volatile memory cells, where the additional column stores a bias term for the multiply accumulate operation.

### Claim 7 (depends on 1)

The method of claim 1 further comprises
receiving an input representing an image;
segmenting the input into segments, where each segment is a matrix having same number of rows and same number of columns as a given kernel of the two or more kernels; and
for each segment, performing a multiply accumulate operation in relation to each of the two or more kernels stored in the crossbar array.

### Claim 8 (depends on 1)

The method of claim 1 wherein each memory cell is further defined as a resistive random-access memory.

### Claim 9

A method for mapping weights for kernels of a neural network onto a crossbar array, comprising:
receiving two or more kernels of a neural network, where each kernel is represented as values in a matrix;
for each kernel of the two or more kernels, converting the kernel into a rectangular array, where the values in the matrix of a given kernel are represented by a binary number having at least two bits, each row in the rectangular array corresponds to a different value in the matrix and each column in the rectangular array corresponds to a bit of the binary number used to represent the value;
for each kernel of the two or more kernels, mapping a corresponding rectangular array to a subset of columns in a crossbar array, wherein the crossbar array is comprised of an array of non-volatile memory cells arranged in columns and rows, such that memory cells in each row of the array is interconnected by a respective drive line and each column of the array is interconnected by a respective bit line; and wherein each memory cell is configured to receive an input signal indicative of a multiplier and operates to output a product of the multiplier and a weight of the given memory cell onto the corresponding bit line of the given memory cell, where the value of the multiplier is encoded in the input signal and the weight of the given memory cell is stored by the given memory cell; and
storing values for each kernel of the two or more kernels in accordance with the mapping into the array of non-volatile memory cells.

### Claim 10 (depends on 9)

The method of claim 9 further comprises receiving an input representing an image and performing a multiply accumulate operation in relation to each of the two or more kernels stored in the crossbar array, where the input is a matrix having same number of rows and same number of columns as a given kernel of the two or more kernels.

### Claim 11 (depends on 10)

The method of claim 10 further comprises adding an additional column to the array of non-volatile memory cells, where the additional column stores a bias term for the multiply accumulate operation.

### Claim 12 (depends on 9)

The method of claim 9 further comprises
receiving an input representing an image;
segmenting the input into segments, where each segment is a matrix having same number of rows and same number of columns as a given kernel of the two or more kernels; and
for each segment, performing a multiply accumulate operation in relation to each of the two or more kernels stored in the crossbar array.

### Claim 13 (depends on 9)

The method of claim 9 wherein each memory cell is further defined as a resistive random-access memory.

### Claim 14

A method for mapping weights for kernels of a neural network onto a crossbar array, comprising:
receiving two or more kernels of a neural network, where each kernel is represented as values in a matrix;
for each kernel of the two or more kernels, converting the kernel into a column vector;
for each kernel of the two or more kernels, mapping a corresponding column vector to a column of a crossbar array, wherein the crossbar array is comprised of an array of non-volatile memory cells arranged in columns and rows, such that memory cells in each row of the array is interconnected by a respective drive line and each column of the array is interconnected by a respective bit line; and wherein each memory cell is configured to receive an input signal indicative of a multiplier and operates to output a product of the multiplier and a weight of the given memory cell onto the corresponding bit line of the given memory cell, where the value of the multiplier is encoded in the input signal and the weight of the given memory cell is stored by the given memory cell;
storing values for each kernel of the two or more kernels in accordance with the mapping into the array of non-volatile memory cells;
receiving an input representing an image; and
performing a multiply accumulate operation in relation to each of the two or more kernels stored in the crossbar array, where the input is a matrix having same number of rows and same number of columns as a given kernel of the two or more kernels.

### Claim 15 (depends on 14)

The method of claim 14 further comprises, for each kernel of the two or more kernels, mapping the column vector for each kernel in successive columns of the crossbar array.

### Claim 16 (depends on 14)

The method of claim 14 further comprises adding an additional column to the array of non-volatile memory cells, where the additional column stores a bias term for the multiply accumulate operation.

### Claim 17 (depends on 14)

The method of claim 14 wherein each memory cell is further defined as a resistive random-access memory.
