# US 2018/0321942 A1 · Memory device, and data processing method based on multi-layer rram crossbar array

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

- Number: US 2018/0321942 A1
- Document ID: US20180321942A1
- Status: Published application
- Kind: A1
- Application number: 16/037,767
- Filed: 2018-07-17
- Published: 2018-11-08
- Earliest claimed: 2016-01-18
- Assignees: Huawei Technologies Co., Ltd.; Nanyang Technological University
- Applicants: Huawei Technologies Co.,Ltd.; Nanyang Technological University
- Inventors: Hao Yu; Yuhao Wang; Junfeng Zhao; Wei Yang; Shihai Xiao; Leibin Ni
- Web page: https://patentgrep.com/patent/US20180321942A1

## CPC

- G11C 13/003: {Cell access}
- G06F 7/00: Methods or arrangements for processing data by operating upon the order or content of the data handled (logic circuits H03K19/00)
- G06F 9/3001: {Arithmetic instructions}
- G06F 9/30025: {Format conversion instructions, e.g. Floating-Point to Integer, decimal conversion}
- G06F 9/30036: {Instructions to perform operations on packed data, e.g. vector, tile or matrix operations}
- G06F 13/00: Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units (interface circuits for specific input/output devices G06F3/00 {; multiprogram control therefor G06F9/46}; multiprocessor systems G06F15/16 )
- G06F 17/16: Matrix or vector computation {, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization (matrix transposition G06F7/78)}
- G06J 1/00: Hybrid computing arrangements
- G06N 3/065: Analogue means
- G11C 5/02: Disposition of storage elements, e.g. in the form of a matrix array
- G11C 7/1006: {Data managing, e.g. manipulating data before writing or reading out, data bus switches or control circuits therefor}
- G11C 13/0023: {Address circuits or decoders}
- G11C 13/004: {Reading or sensing circuits or methods}
- G11C 2213/71: Three dimensional array
- 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: STATIC STORES (semiconductor memory devices H10B)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06J: HYBRID COMPUTING ARRANGEMENTS (optical hybrid computing devices G06E3/00)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Embodiments of the present disclosure provide a memory device. The memory device includes an RRAM crossbar array that is configured to perform a logic operation, and resistance values of resistors in the RRAM crossbar array are all set to Ron or Roff to indicate a value 1 or 0. Based on the foregoing setting, an operation is implemented using the RRAM crossbar array, so that reliability of a logic operation of the RRAM crossbar array can be improved.

## Claims

### Claim 1

A memory device comprising:
a control bus; and
multiple memory units connected by the control bus, each of the multiple memory units comprising a control circuit and a computation circuit,
wherein the computation circuit comprises a first resistive random access memory (RRAM) crossbar array and a format conversion circuit, the first RRAM crossbar array having multiple rows and multiple columns of memory cells and multiple word lines connected to respective rows of memory cells, and a plurality of comparator circuits each connected to a corresponding column of the first RRAM crossbar array, wherein the comparator circuits are set to have incremental thresholds, and outputs of the comparator circuits are connected to the format conversion circuit;
wherein the control circuit is connected to the control bus and configured to:
receive a computation instruction;
parse the computation instruction into an instruction to perform a vector multiplication of vector A and vector B;
setting the memory cells in the first RRAM crossbar array in the computation circuit such that states of memory cells of each column of the first RRAM crossbar array correspond to elements of vector B;
setting the word lines of the first RRAM crossbar array according to elements of vector A;
wherein the outputs of the comparator circuits are voltage signals corresponding to a first binary number in which a number of bits with a value 1 indicates a numerical result of multiplication of vector A and vector B;
the format conversion circuit being set up to convert the outputs of the comparator circuits into an output corresponding to a second binary number having a numerical value equal to the numerical result of multiplication of vector A and vector B.

### Claim 2 (depends on 1)

The memory device according to claim 1, wherein the format conversion circuit comprises:
a second RRAM crossbar array connected to receive the outputs of the comparator circuits and configured to generate an output that corresponds to an intermediate binary number in which a location of a bit with a value 1 indicates the numerical result of multiplication of vector A and vector B; and
a third RRAM crossbar array connected to receive the output of the second RRAM crossbar array and configured to generate the output corresponding to the second binary number.

### Claim 3 (depends on 2)

The memory device according to claim 2, wherein
the multiple rows and multiple columns of memory cells in the first RRAM crossbar array comprise N rows×N columns resistors, an input end of a resistor in each row at the first RRAM crossbar array is connected to a word line, an output end of a resistor in each column at the first RRAM crossbar array is connected to a bit line, N word lines of the first RRAM crossbar array are connected to the control circuit, and each of N bit lines of the first RRAM crossbar array are respectively connected to a comparator circuit of the plurality of comparator circuits;
the first RRAM crossbar array generates N current signals on the N bit lines according to voltage signals input by the N word lines and a resistance value of a resistor at the first RRAM crossbar array, a voltage value of a voltage signal input by the jth word line in the N word lines is a voltage value corresponding to Bj, a resistance value of a resistor in the jth row at the first RRAM crossbar array is a resistance value corresponding to Aj, Bj is the jth element of vector B, Aj is the jth element of vector A, and a value of j ranges from 0 to N−1, wherein each of vector A and vector B indicates an N-dimensional vector, each elements of vector A and vector B indicates a value 1 or 0, and N is a positive integer not less than 2;
the N comparator circuits respectively convert the N current signals into N voltage signals, and compare the N voltage signals with voltage thresholds respectively corresponding to the N comparator circuits, to output, from output ends of the comparator circuits, the voltage signals corresponding to the first binary number, wherein the first binary number is an N-dimensional vector, first K elements of the first binary number are 1, remaining elements are 0, and K is the result of multiplication of vector A and vector B; and
the format conversion circuit receives the voltage signals corresponding to the first binary number from the output ends of the comparator circuits, and generates, according to the voltage signals corresponding to the first binary number and resistance values of resistors in the format conversion circuit, voltage signals corresponding to the second binary number, wherein the second binary number is a binary representation of K.

### Claim 4 (depends on 3)

The memory device according to claim 3, wherein the jth comparator circuit in the N comparator circuits comprises a resistor Rs of a constant resistance value and a comparator, one end of the resistor Rs is connected to the jth bit line in the N bit lines and the comparator, the other end of the resistor Rs is grounded, a voltage threshold of the jth comparator circuit is Vr*gon*Rs*(2j+1)/2, Vr indicates a voltage value corresponding to a value 1, and gon indicates a reciprocal of Ron.

### Claim 5 (depends on 4)

The memory device according to claim 4, wherein
the second RRAM crossbar array comprises a (2N−1) rows×N columns resistor array, an input end of a resistor in each row at the second RRAM crossbar array is connected to a word line, an output end of a resistor in each column at the second RRAM crossbar array is connected to a bit line, and each of word lines of the second RRAM crossbar array is connected to a output end of a comparator circuit in the first RRAM crossbar array;
the second RRAM crossbar array receives the voltage signals corresponding to the first binary number from the output ends of the comparator circuits of the first RRAM crossbar array through the 2N−1 word lines, and performs a logic operation according to the voltage signal corresponding to the first computing result and a resistance value of a resistor at the second layer of RRAM crossbar array:
O
_
2
,
j
=
{
O
_
1
,
j
+
O
1
,
j
+
1
,
j
<
N
-
1
O
_
1
,
j
,
j
=
N
-
1
to obtain voltage signals corresponding to the intermediate binary number, wherein Ō1,j is a negation of a value corresponding to a voltage signal output by a comparator circuit connected to the jth bit line of the first RRAM crossbar array, O1,j+1 is a value corresponding to a voltage signal output by a comparator circuit connected to the (j+1)th bit line of the first RRAM crossbar array, and Ō2,j is a negation of a value corresponding to a voltage signal output by the jth bit line of the second RRAM crossbar array;
the third RRAM crossbar array comprises an N rows×n columns resistor array, an input end of a resistor in each row at the third RRAM crossbar array is connected to a word line, an output end of a resistor in each column at the third RRAM crossbar array is connected to a bit line, and n is greater than or equal to a minimum quantity of bits required for expressing the integer N in binary; and
the third RRAM crossbar array receives voltage signals corresponding to the intermediate binary number from N bit lines of the second RRAM crossbar array through N word lines of the third RRAM crossbar array, and encodes the intermediate binary number according to the voltage signals corresponding to the intermediate binary number and resistance values of resistors at the third RRAM crossbar array to obtain voltage signals corresponding to the second binary number.

### Claim 6 (depends on 5)

The memory device according to claim 5, wherein the jth word line of the third RRAM crossbar array is connected to the jth bit line of the second RRAM crossbar array, and a resistance value of a resistor in the jth row of the third RRAM crossbar array corresponds to a binary representation of the integer j+1.

### Claim 7 (depends on 1)

The memory device according to claim 1, wherein vector A is a row vector of a matrix Φ, vector B is a column vector of a matrix X, each of the multiple computation circuits in the memory device is set for performing point multiplication operations of a plurality of row vectors of the matrix Φ and a plurality of column vectors of the matrix X, and the multiple computation circuits jointly implement a matrix multiplication operation of the matrix Φ and the matrix X.

### Claim 8 (depends on 1)

The memory device according to claim 1, wherein the instruction of the processor further comprises a data access instruction, and each memory unit further comprises:
a storage circuit, wherein the storage circuit is connected to the control circuit, and the control circuit read data from the computation circuit or write data into the computation circuit according to the data access instruction.

### Claim 9

A memory device comprising:
a control bus; and
a memory unit connected to the control bus, the memory unit comprising a control circuit and a computation circuit,
wherein the computation circuit comprises a first resistive random access memory (RRAM) crossbar having multiple rows and multiple columns of memory cells and multiple word lines connected to respective rows of memory cells, and a plurality of comparator circuits each connected to a corresponding column of the first RRAM crossbar array, wherein the comparator circuits are set to have incremental thresholds;
wherein the control circuit is connected to the control bus and configured to:
receive a computation instruction;
parse the computation instruction into an instruction to perform a vector multiplication of vector A and vector B;
setting the memory cells in the first RRAM crossbar array in the computation circuit such that states of memory cells of each column of the first RRAM crossbar array correspond to elements of vector B; and
setting the word lines of the first RRAM crossbar array according to elements of vector A,
wherein the outputs of the comparator circuits are voltage signals corresponding to a first binary number in which a number of bits with a value 1 indicates a numerical result of multiplication of vector A and vector B.

### Claim 10 (depends on 9)

The memory device according to claim 9, wherein the computation circuit further comprises a second RRAM crossbar array and a third RRAM crossbar array each having multiple rows and multiple columns of memory cells and multiple word lines connected to respective rows of memory cells, wherein outputs of the comparator circuits are connected to corresponding word lines of the second RRAM crossbar array, outputs of the second RRAM crossbar array are connected to corresponding words lines of the third RRAM crossbar array, wherein
the second RRAM crossbar array being set up to convert the outputs of the comparator circuits into an output representing an intermediate binary number in which a location of a bit with a value 1 indicates the numerical result of multiplication of vector A and vector B; and
the third RRAM crossbar array being set up to convert the output of the second RRAM crossbar into an output representing a second binary number having a numerical value equal to the numerical result of multiplication of vector A and vector B.

### Claim 11 (depends on 10)

The memory device according to claim 10, wherein the multiple rows and multiple columns of memory cells in the first RRAM crossbar array comprise N rows×N columns resistors, an input end of a resistor in each row at the first RRAM crossbar array is connected to a word line, an output end of a resistor in each column at the first RRAM crossbar array is connected to a bit line, N word lines of the first RRAM crossbar array are connected to the control circuit, and each of N bit lines of the first RRAM crossbar array are respectively connected to a comparator circuit of the plurality of comparator circuits;
the first RRAM crossbar array generates N current signals on the N bit lines according to voltage signals input by the N word lines and a resistance value of a resistor at the first RRAM crossbar array, a voltage value of a voltage signal input by the jth word line in the N word lines is a voltage value corresponding to Bj, a resistance value of a resistor in the jth row at the first RRAM crossbar array is a resistance value corresponding to Aj, Bj is the jth element of vector B, Aj is the jth element of vector A, and a value of j ranges from 0 to N−1, wherein each of vector A and vector B indicates an N-dimensional vector, each elements of vector A and vector B indicates a value 1 or 0, and N is a positive integer not less than 2;
the N comparator circuits respectively convert the N current signals into N voltage signals, and compare the N voltage signals with voltage thresholds respectively corresponding to the N comparator circuits, to output, from output ends of the N comparator circuits, the voltage signals corresponding to the first binary number, wherein the first binary number is an N-dimensional vector, first K elements of the first binary number are 1, remaining elements are 0, and K is the result of multiplication of vector A and vector B;
the second RRAM crossbar array receives the voltage signals corresponding to the first binary number from the output ends of the comparator circuits, and obtain, according to the voltage signals corresponding to the first binary number and resistance values of resistors in the second RRAM crossbar array, voltage signals corresponding to the intermediate binary number in which a location of a bit with a value 1 indicates the numerical result of multiplication of vector A and vector B; and
the third RRAM crossbar array receives the voltage signals corresponding to the intermediate binary number from the bit lines of second RRAM crossbar array, and convert the intermediate binary number into the second binary number, wherein the second binary number is a binary representation of K.

### Claim 12 (depends on 11)

The memory device according to claim 11, wherein the jth comparator circuit in the N comparator circuits comprises a resistor Rs of a constant resistance value and a comparator, one end of the resistor Rs is connected to the jth bit line in the N bit lines and the comparator, the other end of the resistor Rs is grounded, a voltage threshold of the jth comparator circuit is Vr*gon*Rs*(2j+1)/2, Vr indicates a voltage value corresponding to a value 1, and go, indicates a reciprocal of Ron.

### Claim 13 (depends on 11)

The memory device according to claim 11, wherein the second RRAM crossbar array comprises a (2N−1) rows×N columns resistor array, an input end of a resistor in each row at the second RRAM crossbar array is connected to a word line, an output end of a resistor in each column at the second RRAM crossbar array is connected to a bit line, and each of word lines of the second RRAM crossbar array is connected to a output end of a comparator circuit in the first RRAM crossbar array;
the second RRAM crossbar array receives the voltage signals corresponding to the first binary number from the output ends of the comparator circuits of the first RRAM crossbar array through the 2N−1 word lines, and performs a logic operation according to the voltage signals corresponding to the first binary number and a resistance value of a resistor at the second RRAM crossbar array:
O
_
2
,
j
=
{
O
_
1
,
j
+
O
1
,
j
+
1
,
j
<
N
-
1
O
_
1
,
j
,
j
=
N
-
1
to obtain voltage signals corresponding to an intermediate binary number, wherein Ō1,j is a negation of a value corresponding to a voltage signal output by a comparator circuit connected to the jth bit line of the first RRAM crossbar array, O1,j+1 is a value corresponding to a voltage signal output by a comparator circuit connected to the (j+1)th bit line of the first RRAM crossbar array, and Ō2,j is a negation of a value corresponding to a voltage signal output by the jth bit line of the second RRAM crossbar array;
the third RRAM crossbar array comprises an N rows×n columns resistor array, an input end of a resistor in each row at the third RRAM crossbar array is connected to a word line, an output end of a resistor in each column at the third RRAM crossbar array is connected to a bit line, and n is greater than or equal to a minimum quantity of bits required for expressing the integer N in binary; and
the third RRAM crossbar array receives voltage signals corresponding to the intermediate binary number from N bit lines of the second RRAM crossbar array through N word lines of the third RRAM crossbar array, and encodes the intermediate binary number according to the voltage signals corresponding to the intermediate binary number and resistance values of resistors at the third RRAM crossbar array to obtain voltage signals corresponding to the second binary number.

### Claim 14 (depends on 13)

The memory device according to claim 13, wherein the jth word line of the third RRAM crossbar array is connected to the jth bit line of the second RRAM crossbar array, and a resistance value of a resistor in the jth row of the third RRAM crossbar array corresponds to a binary representation of the integer j+1.

### Claim 15 (depends on 9)

The memory device according to claim 9, wherein the memory device comprises multiple memory units, each of the multiple memory units comprises a control circuit and a computation circuit, vector A is a row vector of a matrix Φ and vector B is a column vector of a matrix X, each of the multiple computation circuits in the memory device is set for performing point multiplication operations of a plurality of row vectors of the matrix Φ and a plurality of column vectors of the matrix X, and the multiple computation circuits jointly implement a matrix multiplication operation of the matrix Φ and the matrix X.

### Claim 16 (depends on 9)

The memory device according to claim 9, wherein the instruction of the processor further comprises a data access instruction, and the memory unit further comprises:
a storage circuit, wherein the storage circuit is connected to the control circuit, and the control circuit read data from the computation circuit or write data into the computation circuit according to the data access instruction.

### Claim 17

A computing device, comprising:
a processor configured to send a computation instruction;
a memory device connected to the processor, wherein the memory device comprising a control bus and a memory unit connected to the control bus, the memory unit comprising a control circuit and a computation circuit;
wherein the computation circuit comprises a first resistive random access memory (RRAM) crossbar having multiple rows and multiple columns of memory cells and multiple word lines connected to respective rows of memory cells, and a plurality of comparator circuits each connected to a corresponding column of the first RRAM crossbar array, wherein the comparator circuits are set to have incremental thresholds;
wherein the control circuit is connected to the control bus and configured to:
receive the computation instruction;
parse the computation instruction into an instruction to perform a vector multiplication of vector A and vector B;
setting the memory cells in the first RRAM crossbar array in the computation circuit such that states of memory cells of each column of the first RRAM crossbar array correspond to elements of vector B;
setting the word lines of the first RRAM crossbar array according to elements of vector A;
wherein the outputs of the comparator circuits are voltage signals corresponding to a first binary number in which a number of bits with a value 1 indicates a numerical result of multiplication of vector A and vector B.

### Claim 18 (depends on 17)

The computing device according to claim 17, wherein the computation circuit further comprises a second RRAM crossbar array and a third RRAM crossbar array each having multiple rows and multiple columns of memory cells and multiple word lines connected to respective rows of memory cells, wherein outputs of the comparator circuits are connected to corresponding word lines of the second RRAM crossbar array, outputs of the second RRAM crossbar array are connected to corresponding words lines of the third RRAM crossbar array, wherein
the second RRAM crossbar array being set up to convert the outputs of the comparator circuits into an output representing an intermediate binary number in which a location of a bit with a value 1 indicates the numerical result of multiplication of vector A and vector B; and
the third RRAM crossbar array being set up to convert the output of the second RRAM crossbar array into an output representing a second binary number having a numerical value equal to the numerical result of multiplication of vector A and vector B.

### Claim 19 (depends on 18)

The computing device according to claim 18, wherein the multiple rows and multiple columns of memory cells in the first RRAM crossbar array comprise N rows×N columns resistors, an input end of a resistor in each row at the first RRAM crossbar array is connected to a word line, an output end of a resistor in each column at the first RRAM crossbar array is connected to a bit line, N word lines of the first RRAM crossbar array are connected to the control circuit, and each of N bit lines of the first RRAM crossbar array are respectively connected to a comparator circuit of the plurality of comparator circuits;
the first RRAM crossbar array generates N current signals on the N bit lines according to voltage signals input by the N word lines and a resistance value of a resistor at the first RRAM crossbar array, a voltage value of a voltage signal input by the jth word line in the N word lines is a voltage value corresponding to Bj, a resistance value of a resistor in the jth row at the first RRAM crossbar array is a resistance value corresponding to Aj, Bj is the jth element of vector B, Aj is the jth element of vector A, and a value of j ranges from 0 to N−1, wherein each of vector A and vector B indicates an N-dimensional vector, each elements of vector A and vector B indicates a value 1 or 0, and N is a positive integer not less than 2;
the N comparator circuits respectively convert the N current signals into N voltage signals, and compare the N voltage signals with voltage thresholds respectively corresponding to the N comparator circuits, to output, from output ends of the N comparator circuits, the voltage signals corresponding to the first binary number, wherein the first binary number is an N-dimensional vector, first K elements of the first binary number are 1, remaining elements are 0, and K is the result of multiplication of vector A and vector B;
the second RRAM crossbar array comprises a (2N−1) rows×N columns resistor array, an input end of a resistor in each row at the second RRAM crossbar array is connected to a word line, an output end of a resistor in each column at the second RRAM crossbar array is connected to a bit line, and each of word lines of the second RRAM crossbar array is connected to a output end of a comparator circuit in the first RRAM crossbar array;
the second RRAM crossbar array receives the voltage signals corresponding to the first binary number from the output ends of the comparator circuits of the first RRAM crossbar array through the 2N−1 word lines, and performs a logic operation according to the voltage signals corresponding to the first binary number and a resistance value of a resistor at the second RRAM crossbar array:
O
_
2
,
j
=
{
O
_
1
,
j
+
O
1
,
j
+
1
,
j
<
N
-
1
O
_
1
,
j
,
j
=
N
-
1
to obtain voltage signals corresponding to an intermediate binary number, wherein Ō1,j is a negation of a value corresponding to a voltage signal output by a comparator circuit connected to the jth bit line of the first RRAM crossbar array, O1,j+1 is a value corresponding to a voltage signal output by a comparator circuit connected to the (j+1)th bit line of the first RRAM crossbar array, and Ō2,j is a negation of a value corresponding to a voltage signal output by the jth bit line of the second RRAM crossbar array;
the third RRAM crossbar array comprises an N rows×n columns resistor array, an input end of a resistor in each row at the third RRAM crossbar array is connected to a word line, an output end of a resistor in each column at the third RRAM crossbar array is connected to a bit line, and n is greater than or equal to a minimum quantity of bits required for expressing the integer N in binary; and
the third RRAM crossbar array receives voltage signals corresponding to the intermediate binary number from N bit lines of the second RRAM crossbar array through N word lines of the third RRAM crossbar array, and encodes the intermediate binary number according to the voltage signals corresponding to the intermediate binary number and resistance values of resistors at the third RRAM crossbar array to obtain voltage signals corresponding to the second binary number.

### Claim 20 (depends on 19)

The computing device according to claim 19, wherein the jth comparator circuit in the N comparator circuits comprises a resistor Rs of a constant resistance value and a comparator, one end of the resistor Rs is connected to the jth bit line in the N bit lines and the comparator, the other end of the resistor Rs is grounded, a voltage threshold of the jth comparator circuit is Vr*gon*Rs*(2j+1)/2, Vr indicates a voltage value corresponding to a value 1, and gon indicates a reciprocal of Ron.
