# US 2021/0343320 A1 · Device and method for reading data in memory

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

- Number: US 2021/0343320 A1
- Document ID: US20210343320A1
- Status: Published application
- Kind: A1
- Application number: 17/185,145
- Filed: 2021-02-25
- Published: 2021-11-04
- Earliest claimed: 2020-04-30
- Assignees: Taiwan Semiconductor Manufacturing Company, Ltd.
- Applicants: Taiwan Semiconductor Manufacturing Company, Ltd.
- Inventors: Jaw-Juinn Horng; Chin-Ho Chang; Yung-Chow Peng; Szu-Chun Tsao
- Web page: https://patentgrep.com/patent/US20210343320A1

## CPC

- G11C 7/08: Control thereof
- G11C 7/1057: {Data output buffers, e.g. comprising level conversion circuits, circuits for adapting load}
- G06F 7/5443: {Sum of products (for applications thereof, see the relevant places, e.g. G06F17/10, H03H17/00)}
- G11C 7/062: {Differential amplifiers of non-latching type, e.g. comparators, long-tailed pairs}
- G11C 7/1006: {Data managing, e.g. manipulating data before writing or reading out, data bus switches or control circuits therefor}
- G11C 7/1084: {Data input buffers, e.g. comprising level conversion circuits, circuits for adapting load}
- G11C 11/54: using elements simulating biological cells, e.g. neuron
- G11C 11/56: using storage elements with more than two stable states represented by steps, e.g. of voltage, current, phase, frequency
- G11C 13/003: {Cell access}
- G11C 13/004: {Reading or sensing circuits or methods}
- H03M 1/462: {Details of the control circuitry, e.g. of the successive approximation register}
- G06F 2207/4814: Non-logic devices, e.g. operational amplifiers
- G11C 2013/0045: {Read using current through the cell}
- G11C 2013/0054: {Read is performed on a reference element, e.g. cell, and the reference sensed value is used to compare the sensed value of the selected cell}
- G11C 2207/063: Current sense amplifiers
- G11C 2213/53: Structure wherein the resistive material being in a transistor, e.g. gate
- G11C 2213/79: Array wherein the access device being a transistor
- H03M 1/742: {using current sources as quantisation value generators}
- G11C: STATIC STORES (semiconductor memory devices H10B)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H03M: CODING; DECODING; CODE CONVERSION IN GENERAL (using fluidic means F15C4/00; optical analogue/digital converters G02F7/00; coding, decoding or code conversion, specially adapted for particular applications, see the relevant subclasses, e.g. G01D, G01R, G06F, G06T, G09G, G10L, G11B, G11C, H04B, H04L, H04M, H04N; ciphering or deciphering for cryptography or other purposes involving the need for secrecy G09C)

## Abstract

In a compute-in-memory (“CIM”) system, current signals, indicative of the result of a multiply-and-accumulate operation, from a CIM memory circuit are computed by comparing them with reference currents, which are generated by a current digital-to-analog converter (“DAC”) circuit. The memory circuit can include non-volatile memory (“NVM”) elements, which can be multi-level or two-level NVM elements. The characteristic sizes of the memory elements can be binary weighted to correspond to the respective place values in a multi-bit weight and/or a multi-bit input signal. Alternatively, NVM elements of equal size can be used to drive transistors of binary weighted sizes. The current comparison operation can be carried out at higher speeds than voltage computation. In some embodiments, simple clock-gated switches are used to produce even currents in the current summing branches. The clock-gated switches also serve to limit the time the cell currents are on, thereby reducing static power consumption.

## Claims

### Claim 1

A computing system, comprising:
a memory circuit comprising an input adapted to receive a first set of data and a plurality of memory elements adapted to store a second set of data, the memory circuit being adapted to generate a memory current of a level indicative of a combination of the first and second sets of data;
a reference current circuit adapted to generate a reference current of predetermined levels; and
a current comparator adapted to receive the memory current and the reference current and generate a signal indicative of a difference between the levels of the memory current and the reference current;
the reference current circuit further adapted to receive the signal generated by the current comparator and adjust the reference current to another predetermine level based on the received signal.

### Claim 2 (depends on 1)

The computing system of claim 1, wherein the reference current circuit comprises:
a current control circuit adapted to receive the signal generated by the current comparator and generate a current control signal corresponding to the received signal generated by the current comparator; and
a current generator adapted to receive the current control signal and adjust the reference current to another predetermine level based on the current control signal.

### Claim 3 (depends on 2)

The computing system of claim 2, wherein the current control circuit is adapted to generate a digital current control signal corresponding to the received signal generated by the current comparator.

### Claim 4 (depends on 2)

The computing system of claim 2, wherein the current control circuit comprises a digital-to-analog converter (“DAC”) adapted to generate the reference current based on the digital current control signal received from the current control circuit.

### Claim 5 (depends on 2)

The computing system of claim 2, wherein the current control circuit comprises a plurality current sources, each of which being adapted to receive a bit of the digital current control signal and generate a current depending on the state of the received bit.

### Claim 6 (depends on 5)

The computing system of claim 5, wherein each of the plurality of current sources comprises a memory element adapted to store data, receive a respective bit of the digital current control signal and generate a current at a level depending on the received bit and the stored data.

### Claim 7 (depends on 6)

The computing system of claim 6, wherein each of the plurality of memory elements comprises a multi-level non-volatile memory (“NVM”) cell.

### Claim 8 (depends on 5)

The computing system of claim 5, wherein the plurality of current sources substantially identical to each other, and wherein the current control circuit is adapted to generate a thermometer coded digital current control signal.

### Claim 9 (depends on 1)

The computing system of claim 1, each of the memory elements having a characteristic size, the characteristic sizes of the plurality of memory elements being binary weighted.

### Claim 10 (depends on 1)

The computing system of claim 1, wherein the current comparator comprises a loading circuit adapted to generate the differential voltage having a polarity depending on the relative levels of the memory current and reference current, and a voltage comparator adapted to receive the differential voltage and generate an out indicative of the polarity of the differential voltage.

### Claim 11 (depends on 1)

The computing system of claim 1, further comprising a plurality of switch devices, each connecting a subset of the plurality of memory elements to the current comparator, wherein the plurality of memory elements are connected to a common reference voltage.

### Claim 12

A computing device, comprising:
a plurality of memory elements arranged logically in rows and columns, each of the memory elements including a control terminal and a pair of current-carrying terminals and being adapted to store a weight value and generate through the current-carrying electrodes a current corresponding to a signal received at the control terminal and the weight value;
a current comparator;
a plurality of switch devices, each coupling a column of the memory elements and the current comparator; and
a reference current circuit adapted to generate a reference current of predetermined levels;
the current comparator being connected to the reference current circuit and adapted to receive the reference current and a total current from the memory circuit, to compare the reference current level to a level of the total current from the memory circuit, and to generate an output signal indicative of the result of the comparison, the reference current circuit further adapted to receive the output signal generated by the current comparator and adjust the reference current to another predetermined level depending on the signal received from the current comparator.

### Claim 13 (depends on 12)

The computing device of claim 12, wherein each of the plurality of memory elements comprises an NVM cell having a binary-weighted characteristic size according to the row in which the NMV cell is located.

### Claim 14 (depends on 12)

The computing system of claim 12, wherein the reference current circuit comprises:
a current control circuit adapted to receive the signal generated by the current comparator and generate a current control signal corresponding to the received signal generated by the current comparator; and
a current generator adapted to receive the current control signal and adjust the reference current to another predetermine level based on the current control signal.

### Claim 15 (depends on 12)

The computing system of claim 12, wherein the current control circuit comprises a logic circuit configured to receive the signal from the current comparator, and generate a digital current control signal based on the signal received from the current comparator and according to a successive-approximation algorithm.

### Claim 16 (depends on 12)

The computing system of claim 12, wherein the current control circuit comprises a logic circuit configured to receive the signal from the current comparator, and generate a thermometer-coded digital current control signal based on the signal received from the current comparator.

### Claim 17

A method of computing, comprising:
generating from one or more memory elements a first current indicative of an operation between data stored in the memory element and one or more input signals applied to the memory elements;
generating a second current of a predetermined level;
comparing the levels of the first and second currents;
adjusting the second current until it is substantially the same as the first current; and
determining the level of the first current.

### Claim 18 (depends on 17)

The method of claim 17, where:
the data stored in the memory elements are indicative of weight values;
the generating a first current comprises generating a first current corresponding to a sum of products between the weight values and the input signals supplied to the respective memory element;
the adjusting the second current comprise generating a digital current control signal based on the comparison of the first and second current and using the digital current control signal to turn on or off one or more of a plurality of current sources each adapted to supply a current of a respective know level; and
the determining the level of the first current comprises determining that the digital current control signal at which the first and second currents are substantially the same is indicative of the level of the first current.

### Claim 19 (depends on 17)

The method of claim 17, wherein the generating a first current comprises generating, from an array of memory elements and respective input signals applied to the memory elements, a signal indicative of a sum of products between the data stored in the memory elements and respective input signals.

### Claim 20 (depends on 17)

The method of claim 17, wherein the adjusting the second current comprises generating a thermometer-coded digital current control signal based on an outcome of the comparing step.
