# US 2021/0344359 A1 · Processing-in-memory (pim) devices

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

- Number: US 2021/0344359 A1
- Document ID: US20210344359A1
- Status: Published application
- Kind: A1
- Application number: 17/375,759
- Filed: 2021-07-14
- Published: 2021-11-04
- Earliest claimed: 2019-09-23
- Assignees: SK hynix Inc.
- Applicants: SK hynix Inc.
- Inventors: Choung Ki SONG
- Web page: https://patentgrep.com/patent/US20210344359A1

## CPC

- G11C 29/42: using error correcting codes [ECC] or parity check
- G06F 7/5443: {Sum of products (for applications thereof, see the relevant places, e.g. G06F17/10, H03H17/00)}
- G06F 17/16: Matrix or vector computation {, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization (matrix transposition G06F7/78)}
- G06N 3/063: using electronic means
- H03M 13/09: Error detection only, e.g. using cyclic redundancy check [CRC] codes or single parity bit
- H03M 13/098: {using single parity bit}
- H03M 13/1575: {Direct decoding, e.g. by a direct determination of the error locator polynomial from syndromes and subsequent analysis or by matrix operations involving syndromes, e.g. for codes with a small minimum Hamming distance}
- H03M 13/19: Single error correction without using particular properties of the cyclic codes, e.g. Hamming codes, extended or generalised Hamming codes
- G06F 2207/4824: Neural networks
- G11C 2029/0411: {Online error correction}
- 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
- 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

A processing-in-memory (PIM) device includes an CRC logic circuit configured to generate first write data, a first write fail check signal, second write data, and a second write fail check signal from first write input data and second write input data when a write operation in an operation mode is performed, and generate first converted data, a first fail flag signal, second converted data, and a second fail flag signal from first read data, a first read fail check signal, second read data, and a second read fail check signal when a read operation in the operation mode is performed; and a MAC operator configured to perform a MAC arithmetic operation for the first converted data and the second converted data, based on the first and second fail flag signals to generate MAC operation result data.

## Claims

### Claim 1

A processing-in-memory (PIM) device comprising:
a cyclic redundancy checking (CRC) logic circuit configured to generate first write data, a first write fail check signal, second write data, and a second write fail check signal from first write input data and second write input data when a write operation in an operation mode is performed, and generate first converted data, a first fail flag signal, second converted data, and a second fail flag signal from first read data, a first read fail check signal, second read data, and a second read fail check signal when a read operation in the operation mode is performed; and
a multiplication and accumulation (MAC) operator configured to perform a MAC arithmetic operation for the first converted data and the second converted data, based on the first and second fail flag signals to generate MAC operation result data.

### Claim 2 (depends on 1)

The PIM device of claim 1, wherein the CRC logic circuit receives the first write input data and the second write input data input through a data input/output circuit when the write operation in the operation mode is performed through a data line.

### Claim 3 (depends on 1)

The PIM device of claim 1, wherein the CRC logic circuit removes one or more bits included in the first write input data and the second write input data and generates the first write data and the second write data, based on the remaining bits when the write operation in the operation mode is performed.

### Claim 4 (depends on 1)

The PIM device of claim 1, wherein the CRC logic circuit removes at least one bit from bits included in a mantissa part of each piece of the first write input data the second write input data and generates the first write data and the second write data from the first write input data and the second write input data respectively having the mantissa part including the remaining bits when each piece of the first write input data and the second write input data is implemented in a floating-point method, when the write operation in the operation mode is performed.

### Claim 5 (depends on 1)

The PIM device of claim 1, wherein the CRC logic circuit removes at least one bit from bits included in the mantissa part of each piece of the first write input data and the second write input data when each piece of the first write input data and the second write input data is implemented in a floating-point method, the bit combination of the remaining bits is adjusted by rounding methods according to the removed bit, and the first write data and the second write data are generated from the first write input data and the second write input data respectively having the mantissa part including the bits with a bit combination that has been adjusted, when the write operation in the operation mode is performed.

### Claim 6 (depends on 1)

The PIM device of claim 1, wherein the CRC logic circuit removes at least one bit from bits included in an exponent part of each piece of the first write input data and the second write input data when each piece of the first write input data and the second write input data is implemented in a floating-point method, and generates the first write data and the second write data from the first write input data and the second write input data respectively having the exponent part including the remaining bits, when the write operation in the operation mode is performed.

### Claim 7 (depends on 1)

The PIM device of claim 1, wherein the CRC logic circuit removes at least one bit from bits included in the exponent part of each piece of the first write input data and the second write input data when each piece of the first write input data and the second write input data is implemented in a floating-point method, the bit combination of the remaining bits is adjusted to a preset bit combination according to the removed bit, and the first write data and the second write data are generated from the first write input data and the second write input data respectively having the exponent part including the bits with a bit combination that has been adjusted, when the write operation in the operation mode is performed.

### Claim 8 (depends on 1)

The PIM device of claim 1, wherein the CRC logic circuit encodes the first write data, based on cyclic redundancy check (CRC) to generate the first write fail check signal when the write operation in the operation mode is performed, and encodes the second write data, based on cyclic redundancy check (CRC) to generate the second write fail check signal when the write operation in the operation mode is performed.

### Claim 9 (depends on 1)

The PIM device of claim 1, wherein the CRC logic circuit adds ‘0’ to the first write data by the number of bits less than the number of bits of a divisor code by one bit, and generates a first remainder calculated when the first write data to which ‘0’ is added is divided by the divisor code as the first write fail check signal, and adds ‘0’ to the second write data by the number of bits less than the number of bits of a divisor code by one bit, and generates a second remainder calculated when the second write data to which ‘0’ is added is divided by the divisor code as the second write fail check signal.

### Claim 10 (depends on 1)

The PIM device of claim 1, wherein the CRC logic circuit decodes the first read data and the first read fail check signal, based on cyclic redundancy check (CRC) to generate the first fail flag signal when the read operation in the operation mode is performed, and decodes the second read data and the second read fail check signal, based on cyclic redundancy check (CRC) to generate the second fail flag signal when the read operation in the operation mode is performed.

### Claim 11 (depends on 10)

The PIM device of claim 10, wherein the CRC logic circuit decodes the first read data and the first read fail check signal, based on cyclic redundancy check (CRC) to generate the first fail flag signal, and decodes the second read data and the second read fail check signal, based on cyclic redundancy check (CRC) to generate the second fail flag signal.

### Claim 12 (depends on 10)

The PIM device of claim 10, wherein the CRC logic circuit adds preset bits to the first read data to generate the first converted data when the read operation in the operation mode is performed, and
adds preset bits to the second read data to generate the second converted data when the read operation in the operation mode is performed.

### Claim 13 (depends on 12)

The PIM device of claim 12, wherein the CRC logic circuit adds the preset bits to a mantissa part of each piece of the first read data and the second read data to generate the first converted data and the second converted data when each piece of the first read data and the second read data is implemented in a floating-point method.

### Claim 14 (depends on 12)

The PIM device of claim 12, wherein the CRC logic circuit adds the preset bits to an exponent part of each piece of the first read data and the second read data to generate the first converted data and the second converted data when each piece of the first read data and the second read data is implemented in a floating-point method.

### Claim 15 (depends on 1)

The PIM device of claim 1, wherein the CRC logic circuit applies the first write data, the first write fail check signal, the second write data, and the second write fail check signal to the storage region when the write operation in the operation mode is performed, and
receives the first read data, the first read fail check signal, the second read data, and the second read fail check signal when the read operation in the operation mode is performed.

### Claim 16 (depends on 15)

The PIM device of claim 15, wherein the storage region outputs the first write data, the first write fail check signal, the second write signal, and the second write fail check signal stored when the write operation in the operation mode is performed as the first read data, the first read fail check signal, the second read data, and the second read fail check signal, when the read operation in the operation mode is performed.

### Claim 17 (depends on 1)

The PIM device of claim 1, wherein the CRC logic circuit includes:
a write data generator configured to generate the first write data and the second write data from the first write input data and the second write input data when the write operation in the operation mode is performed; and
a write fail check signal generator configured to encode the first write data and the second write data to generate the first write fail check signal and the second write fail check signal when the write operation in the operation mode is performed.

### Claim 18 (depends on 1)

The PIM device of claim 1, wherein the CRC logic circuit includes:
a fail flag signal generator configured to decode the first read data and the first read fail check signal to generate the first fail flag signal, and decode the second read data and the second read fail check signal to generate the second fail flag signal when the read operation in the operation mode is performed; and
a converted data generator configured to generate the first converted data and the second converted data, based on the first read data and the second read data when the read operation in the operation mode is performed.

### Claim 19 (depends on 1)

The PIM device of claim 1, wherein the MAC operator performs a MAC arithmetic operation for the first converted data, which is weight data applied to a neural network circuit and the second converted data, which is vector data applied to the neural network circuit.

### Claim 20 (depends on 1)

The PIM device of claim 1, wherein the MAC operator performs a MAC arithmetic operation for the first converted data, which is vector data applied to a neural network circuit and the second converted data, which is weight data applied to the neural network circuit.

### Claim 21 (depends on 1)

The PIM device of claim 1, wherein the CRC logic circuit generates the first fail flag signal activated when an error is included in the first read data, and generates the second fail flag signal activated when an error is included in the second read data.

### Claim 22 (depends on 21)

The PIM device of claim 21, wherein the MAC operator is configured so that at least one of a multiplication operation and an addition operation included in the MAC arithmetic operation is not performed when the first fail flag signal is activated or the second fail flag signal is activated.

### Claim 23

A processing-in-memory (PIM) device comprising:
a storage region configured to receive and store first write data, a first write fail check signal, second write data, and a second write fail check signal when a write operation in an operation mode is performed, and output first read data, a first read fail check signal, second read data, and a second read fail check signal when a read operation in the operation mode is performed; and
a cyclic redundancy checking (CRC) logic circuit configured to generate the first write data, the first write fail check signal, the second write data, and the second write fail check signal from first write input data and second write input data when the write operation in the operation mode is performed, and generate first converted data and second converted data from the first read data, the first read fail check signal, the second read data, and the second read fail check signal when the read operation in the operation mode is performed.

### Claim 24 (depends on 23)

The PIM device of claim 23, wherein the storage region outputs the first write data, the first write fail check signal, the second write data, and the second write fail check signal stored when the write operation in the operation mode is performed as the first read data, the first read fail check signal, the second read data, and the second read fail check signal when the read operation in the operation mode is performed.

### Claim 25 (depends on 23)

The PIM device of claim 23, wherein the CRC logic circuit generates the first converted data, which is weight data applied to a neural network circuit, and generates the second converted data, which is vector data applied to the neural network circuit.

### Claim 26 (depends on 23)

The PIM device of claim 23, wherein the CRC logic circuit generates the first converted data, which is vector data applied to a neural network circuit, and generates the second converted data, which is weight data applied to the neural network circuit.
