# US 2025/0094128 A1 · Processing-in-memory devices having multiplication-and-accumulation circuits

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

- Number: US 2025/0094128 A1
- Document ID: US20250094128A1
- Status: Published application
- Kind: A1
- Application number: 18/970,096
- Filed: 2024-12-05
- Published: 2025-03-20
- Earliest claimed: 2021-01-11
- Assignees: SK hynix Inc.
- Applicants: SK hynix Inc.
- Inventors: Choung Ki SONG
- Web page: https://patentgrep.com/patent/US20250094128A1

## CPC

- G06F 7/5443: {Sum of products (for applications thereof, see the relevant places, e.g. G06F17/10, H03H17/00)}
- G11C 7/1006: {Data managing, e.g. manipulating data before writing or reading out, data bus switches or control circuits therefor}
- G06F 7/4876: {Multiplying}
- G06F 7/501: Half or full adders, i.e. basic adder cells for one denomination
- G11C 7/1012: {Data reordering during input/output, e.g. crossbars, layers of multiplexers, shifting or rotating}
- G11C 7/106: {Data output latches}
- G11C 7/1087: {Data input latches}
- G11C 11/54: using elements simulating biological cells, e.g. neuron
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

A processing-in-memory (PIM) device includes a first memory region, a second memory region, a third memory region, and a multiplication-and-accumulation MAC circuit. The first memory region is configured to store weight data comprised of elements of a weight matrix. The second memory region is configured to store vector data comprised of elements of a vector matrix. The third memory region is configured to store constant data. The MAC circuit is configured to selectively perform a MAC arithmetic operation of the weight data and the vector data or an element-wise multiplication (EWM) arithmetic operation of the weight data and the constant data.

## Claims

### Claim 1

A processing-in-memory (PIM) device comprising:
a first memory bank configured to store weight data comprised of elements of a weight matrix;
a second memory bank configured to store vector data comprised of elements of a vector matrix;
a buffer configured to store constant data; and
a multiplication-and-accumulation (MAC) circuit configured to selectively perform at least one of: a MAC arithmetic operation of the weight data and the vector data and an element-wise multiplication (EWM) arithmetic operation of the weight data and the constant data,
wherein the MAC circuit comprising:
a MAC operator circuit configured to selectively perform the MAC arithmetic operation or the EWM arithmetic operation; and
a data input circuit configured to provide the MAC operator circuit with the weight data, the vector data, and the constant data,
wherein the MAC operator circuit comprising:
a multiplication circuit including a plurality of multipliers;
a data output selection circuit configured to receive output data of the plurality of multipliers and output the output data of the plurality of multipliers through first output lines or second output lines of the data output selection circuit;
an accumulation circuit including a plurality of accumulators and configured to perform an accumulating calculation of data outputted from the data output selection circuit; and
an adder circuit configured to perform an adding calculation of data outputted from the plurality of accumulators, and output total accumulation result data through an output terminal.

### Claim 2 (depends on 1)

The PIM device of claim 1, wherein the first output lines of the data output selection circuit are coupled to the accumulation circuit.

### Claim 3 (depends on 2)

The PIM device of claim 2, wherein the MAC operator further includes a data output circuit that is directly coupled to the second output lines of the data output selection circuit and the output terminal of the adder circuit.

### Claim 4 (depends on 1)

The PIM device of claim 1,
wherein the data output selection circuit includes a plurality of demultiplexers that are coupled to the plurality of multipliers, respectively; and
wherein the plurality of demultiplexers receive output data of the plurality of multipliers and output the output data of the plurality of multipliers through the first output lines or the second output lines.

### Claim 5 (depends on 4)

The PIM device of claim 4, wherein the plurality of demultiplexers are configured to either:
transmit the output data of the plurality of multipliers to the accumulation circuit through the first output lines when the MAC operator performs the MAC arithmetic operation; or
transmit the output data of the plurality of multipliers to a data output circuit through the second output lines when the MAC operator performs the EWM arithmetic operation.

### Claim 6 (depends on 5)

The PIM device of claim 5, wherein the data output circuit is configured to output data, which are received from the adder circuit, in response to a MAC result data output control signal and is configured to output data, which are received through the second output lines, in response to an EWM result data output control signal.

### Claim 7 (depends on 5)

The PIM device of claim 5, wherein the MAC operator circuit further includes a normalizer that is coupled between the data output circuit and the second output lines of the data output selection circuit to execute a normalization process for data which are transmitted through the second output lines.

### Claim 8 (depends on 7)

The PIM device of claim 7, wherein the data output circuit is configured to output data, which are received from the adder circuit, in response to a MAC result data output control signal and is configured to output data, which are received from the normalizer, in response to an EWM result data output control signal.

### Claim 9 (depends on 5)

The PIM device of claim 5, wherein each of the plurality of accumulators includes:
an accumulative adder configured to perform an adding calculation for adding feedback data to data outputted from one of the plurality of demultiplexers; and
a latch circuit configured to latch output data of the accumulative adder to generate the feedback data which are transmitted to the accumulative adder.

### Claim 10 (depends on 1)

The PIM device of claim 1, wherein the data input circuit comprising:
a first input latch configured to latch the weight data and output latched weight data to the MAC operator circuit;
a data selection circuit configured to receive the vector data and the constant data to selectively output the vector data or the constant data according to the selected arithmetic operation; and
a second input latch configured to latch output data of the data selection circuit and output latched output data to the MAC operator circuit.

### Claim 11 (depends on 10)

The PIM device of claim 10, wherein the data selection circuit includes:
a third input latch configured to latch and output the constant data;
a bit copy block configured to copy the constant data outputted from the third input latch to generate and output replica constant data; and
a data selection output circuit configured to selectively output the replica constant data or the vector data.

### Claim 12 (depends on 11)

The PIM device of claim 11, wherein the replica constant data are generated to have the same number of bits as the weight data.

### Claim 13 (depends on 11)

The PIM device of claim 11, wherein the data input circuit further includes an OR gate that performs a logical OR operation of a first latch control signal for the MAC arithmetic operation and a fourth latch control signal for the EWM arithmetic operation to output a result signal of the logical OR operation to clock terminals of the first and second input latches.

### Claim 14 (depends on 13)

The PIM device of claim 13,
wherein the third input latch outputs the constant data in response to a third latch control signal having a first logic level; and
wherein output data of the data selection output circuit are selected according to a logic level of a flag signal.
