# US 2021/0174182 A1 · Mtj-based hardware synapse implementation for binary and ternary deep neural networks

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

- Number: US 2021/0174182 A1
- Document ID: US20210174182A1
- Status: Published application
- Kind: A1
- Application number: 17/113,252
- Filed: 2020-12-07
- Published: 2021-06-10
- Earliest claimed: 2019-12-05
- Assignees: Technion Research & Development Foundation Limited
- Applicants: Technion Research & Development Foundation Limited
- Inventors: Tzofnat GREENBERG; Shahar KVATINSKY; Daniel SOUDRY
- Web page: https://patentgrep.com/patent/US20210174182A1

## CPC

- G06N 3/063: using electronic means
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/065: Analogue means
- G11C 11/54: using elements simulating biological cells, e.g. neuron
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

A stochastic synapse for use in a neural network, comprising: first and second magnetic tunnel junction (MTJ) devices, each MTJ device having a fixed layer port and a free layer port; a first and second control circuit, each connected respectively to the free layer port of the first and second MTJ devices, wherein the fixed layer ports of the first and second MTJ devices are connected to each other; wherein the first and second control circuits are configured to perform a gated XNOR operation between synapse and activation values; and wherein an output of the gated XNOR is represented by the output current through both of the first and second MTJ devices.

## Claims

### Claim 1

A synapse device comprising:
first and second magnetic tunnel junction (MTJ) devices, wherein each of said MTJ devices has a fixed layer port and a free layer port, and wherein said fixed layer ports of said first and second MTJ devices are connected to each other;
a first control circuit connected to the free layer port of said first MTJ device and configured to provide a first control signal; and
a second control circuit connected to the free layer port of said second MTJ device and configured to provide a second control signal;
wherein said first and second control circuits are configured to perform a gated XNOR (GXNOR) operation between a synapse value and activation values; and wherein an output of the GXNOR is represented by a sum of the output currents through both of said first and second MTJ devices.

### Claim 2 (depends on 1)

The synapse device of claim 1, wherein said synapse device is configured to store a ternary or binary synapse weight represented by a state of the MTJ devices.

### Claim 3 (depends on 2)

The synapse device of claim 2, wherein said synapse weight is defined as and stored as a combination of respective resistance values of each of said first and second MTJ devices.

### Claim 4 (depends on 2)

The synapse device of claim 2, wherein said synapse device is further configured to perform in-situ stochastic update of said ternary or binary synapse weights.

### Claim 5

An array of synapse devices comprising:
a plurality of synapse devices arranged in an array of rows and columns, wherein each of said synapse devices comprises:
first and second magnetic tunnel junction (MTJ) devices, wherein each of said MTJ devices has a fixed layer port and a free layer port, and wherein said fixed layer ports of said first and second MTJ devices are connected to each other,
a first control circuit connected to the free layer port of said first MTJ device and configured to provide a first control signal, and
a second control circuit connected to the free layer port of said second MTJ device and configured to provide a second control signal,
wherein said first and second control circuits are configured to perform a gated XNOR (GXNOR) operation between synapse and activation values; and wherein an output of the GXNOR is represented by the output current through both of said first and second MTJ devices,
wherein all of said synapse devices arranged in any one of said columns share an input voltage,
wherein all of said synapse devices arranged in any one of said rows share said first and second control signals, and
wherein outputs of all of said synapse devices arranged in any one of said rows are connected.

### Claim 6 (depends on 5)

The array of claim 5, wherein each of said synapse devices is configured to store ternary or binary synapse weights represented by a state of the MTJ devices.

### Claim 7 (depends on 6)

The array of claim 6, wherein said synapse weight is defined as and stored as a combination of respective resistance values of each of said first and second MTJ devices.

### Claim 8 (depends on 6)

The array of claim 6, wherein each of said synapse devices is further configured to perform in-situ stochastic update of said ternary or binary synapse weights.

### Claim 9 (depends on 6)

The array of claim 6, wherein said array forms a trainable neural network.

### Claim 10 (depends on 9)

The array of claim 9, wherein said neural network represents a synaptic weight matrix comprising all of said synapse weights of each of said synapse devices in said array.

### Claim 11 (depends on 10)

The array of claim 10, wherein an output vector of said neural network is calculated as a weighted sum of all of said input voltages multiplied by said synaptic weightings matrix.

### Claim 12

A method comprising:
providing an array of synapse devices arranged in rows and columns, wherein each of said synapse devices comprises:
first and second magnetic tunnel junction (MTJ) devices, wherein each of said MTJ devices has a fixed layer port and a free layer port, and wherein said fixed layer ports of said first and second MTJ devices are connected to each other,
a first control circuit connected to the free layer port of said first MTJ device and configured to provide a first control signal, and
a second control circuit connected to the free layer port of said second MTJ device and configured to provide a second control signal,
wherein said first and second control circuits are configured to perform a gated XNOR (GXNOR) operation between synapse and activation values, and wherein an output of the GXNOR is represented by the output current through both of said first and second MTJ devices,
wherein all of said synapse devices arranged in any one of said columns share an input voltage,
wherein all of said synapse devices arranged in any one of said rows share said first and second control signals, and
wherein outputs of all of said synapse devices arranged in any one of said rows are connected; and
at a training stage, training said array of synapse devices by:
(i) inputting all of said input voltages associated with each of said columns,
(ii) setting said first and second control signals associated with each of said rows to perform said GXNOR operation, and
(iii) calculating an output vector of said array as a weighted sum of said input voltages multiplied by a synaptic weightings matrix comprising synapse weights of all of said synapse devices in said array.

### Claim 13 (depends on 12)

The method of claim 12, wherein said training further comprises comparing said output vector to a training dataset input, wherein said comparing leads to an adjustment of said synaptic weightings matrix.

### Claim 14 (depends on 12)

The method of claim 12, wherein each of said synapse devices is configured to store said synapse weight represented by a state of the MTJ devices, wherein said synapse weight is ternary or binary.

### Claim 15 (depends on 14)

The method of claim 14, wherein said synapse weight is defined as and stored as a combination of respective resistance values of each of said first and second MTJ devices.

### Claim 16 (depends on 14)

The method of claim 14, wherein each of said synapse devices is further configured to perform in-situ stochastic update of said ternary or binary synapse weights.

### Claim 17 (depends on 14)

The method of claim 14, wherein said array forms a trainable neural network.

### Claim 18 (depends on 17)

The method of claim 17, wherein said neural network represents said synaptic weight matrix comprising all of said synapse weights of each of said synapse devices in said array.

### Claim 19 (depends on 18)

The method of claim 18, wherein said output vector of said neural network is calculated as a weighted sum of all of said input voltages multiplied by said synaptic weightings matrix.

### Claim 20

A computer memory structure comprising:
a plurality of synapse devices, each comprising:
first and second magnetic tunnel junction (MTJ) devices, wherein each of said MTJ devices has a fixed layer port and a free layer port, and wherein said fixed layer ports of said first and second MTJ devices are connected to each other,
a first control circuit connected to the free layer port of said first MTJ device and configured to provide a first control signal, and
a second control circuit connected to the free layer port of said second MTJ device and configured to provide a second control signal,
wherein said first and second control circuits are configured to perform a gated XNOR (GXNOR) operation between a synapse value and activation values; and wherein an output of the GXNOR is represented by a sum of the output currents through both of said first and second MTJ devices.
