# US 12,717,868 B2 · Method and device for implementing a matrix operation

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

- Number: US 12,717,868 B2
- Document ID: US12717868B2
- Status: Granted
- Kind: B2
- Application number: 17/289,151
- Filed: 2019-10-23
- Published: 2021-12-09
- Granted: 2026-08-25
- Earliest claimed: 2018-11-13
- Assignees: Robert Bosch GmbH
- Applicants: Robert Bosch GmbH
- Inventors: Tobias Kirchner
- Web page: https://patentgrep.com/patent/US12717868B2

## CPC

- G06F 17/16: Matrix or vector computation {, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization (matrix transposition G06F7/78)}
- G06F 7/5443: {Sum of products (for applications thereof, see the relevant places, e.g. G06F17/10, H03H17/00)}
- G06G 7/16: for multiplication or division {(G06G7/19 and G06G7/24 take precedence; measuring electric power G01R21/00)}
- G06J 1/00: Hybrid computing arrangements
- H03K 19/17736: Structural details of routing resources
- H03K 19/17748: Structural details of configuration resources
- H03K 19/1776: for memories
- G06F 2207/4814: Non-logic devices, e.g. operational amplifiers
- G06F 2207/4824: Neural networks
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06G: ANALOGUE COMPUTERS (analogue optical computing devices G06E3/00)
- G06J: HYBRID COMPUTING ARRANGEMENTS (optical hybrid computing devices G06E3/00)
- H03K: PULSE TECHNIQUE (measuring pulse characteristics G01R; modulating sinusoidal oscillations with pulses H03C; transmission of digital information H04L; discriminator circuits detecting phase difference between two signals by counting or integrating cycles of oscillation H03D3/04; automatic control, starting, synchronisation or stabilisation of generators of electronic oscillations or pulses where the type of generator is irrelevant or unspecified H03L; coding, decoding or code conversion, in general H03M)

## Abstract

A method for implementing a matrix operation. A first digital result is determined for the matrix operation as a function of a first analog addition using a first memristor array, a second digital result being determined as a function of a second analog addition using a second memristor array, and the first result and the second result being digitally added. A device for implementing a matrix operation. The device includes at least one first memristor array and one second memristor array, a first analog-to-digital converter and a second analog-to-digital converter. The device is designed to determine a first digital result for the matrix operation as a function of a first analog addition using the first memristor array and of the first analog-to-digital converter, and to determine a second digital result as a function of a second analog addition using the second memristor array and of the second analog-to-digital converter.

## Claims

### Claim 1

A method for implementing a matrix operation, the method comprising:
determining a first digital result as a function of a first analog addition using a first memristor array; and
determining a second digital result as a function of a second analog addition using a second memristor array;
wherein:
a first voltage is applied at a first memristor of the first memristor array, the application of the first voltage at the first memristor being made selectively at a memristor level without global application of the first voltage to an entirety of the first memristor array;
at least partially in a temporally overlapping manner with the application of the first voltage at the first memristor:
a second voltage is applied, selectively at the memristor level, at a second memristor;
the first voltage is applied, selectively at the memristor level, at a third memristor of the second memristor array; and
the second voltage or a third voltage is applied, selectively at the memristor level, at a fourth memristor of the second memristor array;
a first total current is detected at a first output of the first memristor array, which characterizes a current flow through the first memristor and through the second memristor;
a second total current is detected at a second output of the second memristor array, which characterizes a current flow through the third memristor and through the fourth memristor; and
the first voltage and the second voltage differ by a factor which is defined as a function of a resolution of a plurality of digital-to-analog converters used for generating the first and second voltages or as a function of a bit factor decomposition underlying the matrix operation.

### Claim 2 (depends on 1)

The method as recited in claim 1, wherein the first digital result is determined as a function of the first total current which provides a first analog result, the second digital result is determined as a function of the second total current which provides a second analog result, the first and second analog results being determined at least partially in a temporally overlapping manner to each other.

### Claim 3 (depends on 1)

The method as recited in claim 1, wherein the first voltage is defined as a function of a first element of a first matrix, the second voltage is defined as a function of a second element of the first matrix, a first resistance value of the first memristor is defined as a function of a first element of a second matrix, a second resistance value of the second memristor is defined as a function of a second element of the second matrix, and the first and second digital results are used to characterize a scalar product of the first and second matrices.

### Claim 4 (depends on 3)

The method as recited in claim 3, wherein at least one resistance value of a memristor is programmed as a function of one element of the second matrix.

### Claim 5 (depends on 3)

The method as recited in claim 3, wherein resistance values of at least two memristors are defined or programmed as a function of one element of the second matrix.

### Claim 6 (depends on 3)

The method as recited in claim 3, wherein the first memristor, second memristor, third memristor, and fourth memristor are situated in a matrix array, the second matrix or a plurality of second matrices define an array of resistance values for the first memristor, the second memristor, the third memristor, and the fourth memristor, and, with respect to each of one or more of the first memristor, second memristor, third memristor, and fourth memristor in the matrix array, the respective memristor includes or is programmed with a respective one of the resistance values whose position in the array of resistance values corresponds to a respective position of the respective memristor in the matrix array with respect to indices.

### Claim 7 (depends on 6)

The method as recited in claim 6, wherein at least two groups of memristors include or are programmed with respective ones of the resistance values, which are defined according to elements of a same one of the second matrix or of the plurality of second matrices.

### Claim 8 (depends on 6)

The method as recited in claim 6, wherein at least a portion of memristors of at least two groups of memristors in the matrix array are used to determine a same one of the first total current and the second total current.

### Claim 9 (depends on 8)

The method as recited in claim 8, wherein at least one of the memristors from one of the at least two groups of memristors in the matrix array is ignored by memristors of the other of the at least two groups when determining the first and second total currents.

### Claim 10 (depends on 1)

The method as recited in claim 1, wherein the first voltage is an analog signal, which is generated by a first one of the plurality of digital-to-analog converters as a function of a digital signal, which is defined by a first element of a first matrix, and the second voltage is an analog signal, which is generated by a second one of the digital-to-analog converters as a function of a digital signal, which is defined by a second element of the first matrix.

### Claim 11 (depends on 1)

The method as recited in claim 1, wherein the factor is a power of 2.

### Claim 12 (depends on 1)

The method as recited in claim 1, wherein the first total current includes at least (a) one first current flowing through the first memristor when the first voltage is applied at the first memristor, and (b) a second current flowing through the second memristor when the second voltage is applied at the second memristor.

### Claim 13 (depends on 1)

The method as recited in claim 1, wherein the first voltage is applied at the same time to the first memristor and to the third memristor or the second voltage is applied at the same time to the second memristor and the fourth memristor, the first total current is detected by the first memristor and the second memristor, the second total current is detected by the third memristor and/or the fourth memristor, and an overall result is determined from the first total current and of the second total current.

### Claim 14 (depends on 1)

The method as recited in claim 1, wherein the first digital result and the second digital result are obtained as digital signals that define respective values of at least one bit and by respective analog-to-digital converters.

### Claim 15 (depends on 1)

The method as recited in claim 1, wherein a plurality of total currents is determined, a plurality of bits being determined as a function of the plurality of total currents, at least one bit, which is defined as a function of one of the plurality of total currents, being added to at least one bit, which is defined as a function of another of the plurality of total currents.

### Claim 16 (depends on 15)

The method as recited in claim 15, wherein at least one of the bits in one register is shifted to be situated with respect to a least significant bit of an overall result obtained from the first and second digital results in the direction of the most significant bit of the overall result before the addition with the other bit from another register.

### Claim 17 (depends on 15)

The method as recited in claim 15, wherein at least one of the bits in one register is situated before the addition with another bit from another register adjacent to the other bit with respect to a least significant bit of an overall result obtained from the first and second digital results.

### Claim 18 (depends on 1)

The method as recited in claim 1, further comprising digitally adding the first digital result and the second digital result.

### Claim 19 (depends on 1)

The method as recited in claim 1, wherein the second memristor is part of the second memristor array.

### Claim 20

A method for implementing a matrix operation using a plurality of memristors, a first memristor array including a first subset of the plurality of memristors and a second memristor array including a second subset of the plurality of memristors, the method comprising:
determining a first digital result as a function of a first analog addition using the first memristor array; and
determining a second digital result as a function of a second analog addition using the second memristor array;
wherein:
the determining of the first digital result and of the second digital result is performed by:
applying a first voltage, which is an analog signal generated by a first digital-to-analog converter as a function of a digital signal defined by a first element of a matrix, at a first one of the plurality of memristors; and
at least partially in a temporally overlapping manner with the application of the first voltage at the first memristor, applying a second voltage, which is an analog signal generated by a second digital-to-analog converter as a function of a digital signal defined by a second element of the matrix, at a second one of the plurality of memristors; and
the first and second voltages differ by a factor which is defined:
as a function of a resolution of the respective digital-to-analog converters; or
as a function of a bit factor decomposition underlying the matrix operation.

### Claim 21 (depends on 20)

The method as recited in claim 20, further comprising:
detecting a first total current at a first output of the first memristor array, which characterizes a current flow through multiple memristors of the first subset of the plurality of memristors; and
detecting a second total current at a second output of the second memristor array, which characterizes a current flow through multiple memristors of the second subset of the plurality of memristors.

### Claim 22 (depends on 20)

The method as recited in claim 20, further comprising digitally adding the first digital result and the second digital result.

### Claim 23 (depends on 20)

The method as recited in claim 20, wherein the application of the first voltage is to one of the memristors of the first subset of memristors, which is of the first memristor array and is also to one of the memristors of the second subset of memristors, which is of the second memristor array.

### Claim 24

A non-transitory machine-readable memory medium on which is stored a computer program for implementing a matrix operation, the computer program, when executed by a computer, causing the computer to perform the following steps:
determining a first digital result as a function of a first analog addition using a first memristor array; and
determining a second digital result as a function of a second analog addition using a second memristor array;
wherein:
a first voltage is applied at a first memristor of the first memristor array, the application of the first voltage at the first memristor being made selectively at a memristor level without global application of the first voltage to an entirety of the first memristor array;
at least partially in a temporally overlapping manner with the application of the first voltage at the first memristor:
a second voltage is applied, selectively at the memristor level, at a second memristor of the first memristor array;
the first voltage is applied, selectively at the memristor level, at a third memristor of the second memristor array; and
the second voltage or a third voltage is applied, selectively at the memristor level, at a fourth memristor of the second memristor array;
a first total current is detected at a first output of the first memristor array, which characterizes a current flow through the first memristor and through the second memristor;
a second total current is detected at a second output of the second memristor array, which characterizes a current flow through the third memristor and through the fourth memristor; and
the first voltage and the second voltage differ by a factor which is defined as a function of a resolution of a plurality of digital-to-analog converters used for generating the first and second voltages or as a function of a bit factor decomposition underlying the matrix operation.

### Claim 25

A device for implementing a matrix operation, comprising:
a digital-to-analog converter arrangement consisting of one digital-to-analog converter or consisting of a plurality of digital-to-analog converters;
a first memristor array;
a second memristor array;
a first analog-to-digital converter; and
a second analog-to-digital converter;
wherein:
the device is configured to determine a first digital result as a function of a first analog addition using the first memristor array and the first analog-to-digital converter, and to determine a second digital result as a function of a second analog addition using the second memristor array and the second analog-to-digital converter;
the digital-to-analog converter arrangement is configured to respond to digital signals, which are obtained for performance of the matrix operation, by:
applying a first voltage at a first memristor of the first memristor array, the application of the first voltage at the first memristor being made selectively at a memristor level without global application of the first voltage to an entirety of the first memristor array; and
at least partially in a temporally overlapping manner with the application of the first voltage at the first memristor:
applying, selectively at the memristor level, a second voltage at a second memristor of the first memristor array;
applying, selectively at the memristor level, the first voltage at a third memristor of the second memristor array; and
applying, selectively at the memristor level, the second voltage or a third voltage at a fourth memristor of the second memristor array;
the first analog-to-digital converter is configured to detect, and convert into the first digital result, a first total current at a first output of the first memristor array, which characterizes a current flow through the first memristor and through the second memristor; and
the second analog-to-digital converter is configured to detect, and convert into the second digital result, a second total current at a second output of the second memristor array, which characterizes a current flow through the third memristor and through the fourth memristor; and
the first voltage and the second voltage differ by a factor which is defined (a) as a function of a resolution of the one digital-to-analog converter or the plurality of digital-to-analog converters or (b) as a function of a bit factor decomposition underlying the matrix operation.

### Claim 26 (depends on 25)

The device as recited in claim 25, wherein the first and second memristor arrays are part of a matrix array.

### Claim 27 (depends on 26)

The device as recited in claim 26, wherein at least one of the first memristor array and the second memristor array includes, situated at a node of a row and of a column of the matrix array, two memristors that are variable with respect to their charge-dependent resistance values in directions opposite to one another.

### Claim 28 (depends on 25)

The device as recited in claim 25, wherein:
the digital-to-analog converter arrangement consists of the plurality of digital-to-analog converters;
a first one of the plurality of digital-to-analog converters is configured to generate the first voltage; and
a second one of the plurality of digital-to-analog converters is configured to generate the second voltage.

### Claim 29

A device, comprising:
a microprocessor;
a switching unit including a plurality of electrical switches; and
a memory including registers;
wherein:
the microprocessor is configured to operate the switches with a switching operation for selective application of voltages, the selective application activating a first device for implementing a matrix operation, the first device including:
a first memristor array;
a second memristor array;
a first analog-to-digital converter; and
a second analog-to-digital converter;
the first device is configured to determine a first digital result as a function of a first analog addition using the first memristor array and the first analog-to-digital converter, and to determine a second digital result as a function of a second analog addition using the second memristor array and the second analog-to-digital converter;
the microprocessor is configured to perform the switching operation of the switching unit to:
apply a first voltage of the voltages at a first memristor of the first memristor array, the application of the first voltage at the first memristor being made selectively at a memristor level without global application of the first voltage to an entirety of the first memristor array;
at least partially in a temporally overlapping manner with the application of the first voltage at the first memristor:
apply, at the memristor level, a second voltage of the voltages selectively at a second memristor of the first memristor array;
apply, at the memristor level, the first voltage selectively at a third memristor of the second memristor array; and
apply, at the memristor level, the second voltage or a third voltage of the voltages selectively at a fourth memristor of the second memristor array;
a first total current is detectable at a first output of the first memristor array, which characterizes a current flow through the first memristor and through the second memristor;
a second total current is detectable at a second output of the second memristor array, which characterizes a current flow through the third memristor and through the fourth memristor;
a result obtained from the first and second total currents is storable by the microprocessor in the registers; and
the first voltage and the second voltage differ by a factor which is defined as a function of a resolution of a plurality of digital-to-analog converters used for generating the first and second voltages or as a function of a bit factor decomposition underlying the matrix operation.
