# US 2024/0201949 A1 · Sparsity-aware performance boost in compute-in-memory cores for deep neural network acceleration

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

- Number: US 2024/0201949 A1
- Document ID: US20240201949A1
- Status: Published application
- Kind: A1
- Application number: 18/590,495
- Filed: 2024-02-28
- Published: 2024-06-20
- Earliest claimed: 2024-02-28
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Sagar Varma Sayyaparaju; Om Ji Omer; Sreenivas Subramoney
- Web page: https://patentgrep.com/patent/US20240201949A1

## CPC

- G06F 7/523: Multiplying only
- G06F 7/50: Adding; Subtracting (G06F7/483 - G06F7/491, G06F7/544 - G06F7/556 take precedence)
- G06F 7/5443: {Sum of products (for applications thereof, see the relevant places, e.g. G06F17/10, H03H17/00)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems, apparatuses and methods may provide for technology that includes a compute-in-memory (CiM) enabled memory array to conduct digital bit-serial multiply and accumulate (MAC) operations on multi-bit input data and weight data stored in the CiM enabled memory array, an adder tree coupled to the CiM enabled memory array, an accumulator coupled to the adder tree, and an input bit selection stage coupled to the CiM enabled memory array, wherein the input bit selection stage restricts serial bit selection on the multi-bit input data to non-zero values during the digital MAC operations.

## Claims

### Claim 1

A computing system comprising:
a network controller; and
a processor coupled to the network controller, wherein the processor includes logic coupled to one or more substrates, the logic including:
a compute-in-memory (CiM) enabled memory array to conduct digital bit-serial multiply and accumulate (MAC) operations on multi-bit input data and weight data stored in the CiM enabled memory array,
an adder tree coupled to the CiM enabled memory array,
a left shift stage coupled to the CiM enabled memory array and the adder tree,
an accumulator coupled to the adder tree, and
an input bit selection stage coupled to the CiM enabled memory array, the input bit selection stage to restrict serial bit selection on the multi-bit input data to non-zero values during the digital MAC operations.

### Claim 2 (depends on 1)

The computing system of claim 1, wherein a number of cycles consumed by the CiM enabled memory array during the digital MAC operations is to be proportional to a level of sparsity in the multi-bit input data.

### Claim 3 (depends on 1)

The computing system of claim 1, wherein the input bit selection stage includes:
a plurality of registers, wherein each register is to store bit selection values,
a corresponding plurality of bit selection multiplexers coupled to the plurality of registers, wherein each bit selection multiplexer is to select bits from the multi-bit input data based on the bit selection values.

### Claim 4 (depends on 3)

The computing system of claim 3, wherein the input bit selection stage is to determine the bit selection values based on leading non-zero positions in the multi-bit input data.

### Claim 5 (depends on 1)

The computing system of claim 1, wherein the input bit selection stage is to mask bit positions in the multi-bit input data that have already been processed.

### Claim 6 (depends on 1)

The computing system of claim 1, wherein the input bit selection stage is to assert a plurality of completion signals for a corresponding plurality of rows in the CiM enabled memory array, and wherein the completion signals indicate that all bit positions in the multi-bit input data with the non-zero values have been processed.

### Claim 7

A semiconductor apparatus comprising:
one or more substrates; and
logic coupled to the one or more substrates, wherein the logic is implemented at least partly in one or more of configurable or fixed-functionality hardware, the logic including:
a compute-in-memory (CiM) enabled memory array to conduct digital bit-serial multiply and accumulate (MAC) operations on multi-bit input data and weight data stored in the CiM enabled memory array;
an adder tree coupled to the CiM enabled memory array;
an accumulator coupled to the adder tree; and
an input bit selection stage coupled to the CiM enabled memory array, the input bit selection stage to restrict serial bit selection on the multi-bit input data to non-zero values during the digital MAC operations.

### Claim 8 (depends on 7)

The semiconductor apparatus of claim 7, wherein a number of cycles consumed by the CiM enabled memory array during the digital MAC operations is to be proportional to a level of sparsity in the multi-bit input data.

### Claim 9 (depends on 7)

The semiconductor apparatus of claim 7, wherein the input bit selection stage includes:
a plurality of registers, wherein each register is to store bit selection values;
a corresponding plurality of bit selection multiplexers coupled to the plurality of registers, wherein each bit selection multiplexer is to select bits from the multi-bit input data based on the bit selection values.

### Claim 10 (depends on 9)

The semiconductor apparatus of claim 9, wherein the input bit selection stage is to determine the bit selection values based on leading non-zero positions in the multi-bit input data.

### Claim 11 (depends on 7)

The semiconductor apparatus of claim 7, wherein the input bit selection stage is to mask bit positions in the multi-bit input data that have already been processed.

### Claim 12 (depends on 7)

The semiconductor apparatus of claim 7, wherein the input bit selection stage is to assert a plurality of completion signals for a corresponding plurality of rows in the CiM enabled memory array, and wherein the completion signals indicate that all bit positions in the multi-bit input data with the non-zero values have been processed.

### Claim 13 (depends on 7)

The semiconductor apparatus of claim 7, wherein the logic further includes a left shift stage coupled to the CiM enabled memory array and the adder tree, and wherein the left shift stage is to conduct left shift operations and sign extension on an output of the CiM enabled memory array on a per memory row basis.

### Claim 14 (depends on 7)

The semiconductor apparatus of claim 7, wherein the logic coupled to the one or more substrates includes transistor channel regions that are positioned within the one or more substrates.

### Claim 15

A method comprising:
conducting, by a compute-in-memory (CiM) enabled memory array, digital bit-serial multiply and accumulate (MAC) operations on multi-bit input data and weight data stored in the CiM enabled memory array, wherein an adder tree is coupled to the CiM enabled memory array and an accumulator is coupled to the adder tree;
restricting, by an input bit selection stage coupled to the CiM enabled memory array, serial bit selection on the multi-bit input data to non-zero values during the digital MAC operations.

### Claim 16 (depends on 15)

The method of claim 15, wherein a number of cycles consumed by the CiM enabled memory array during the digital MAC operations is proportional to a level of sparsity in the multi-bit input data.

### Claim 17 (depends on 15)

The method of claim 15, further including:
storing, by a plurality of registers, bit selection values; and
selecting, by each bit selection multiplexer of a corresponding plurality of bit selection multiplexers coupled to the plurality of registers, bits from the multi-bit input data based on the bit selection values.

### Claim 18 (depends on 17)

The method of claim 17, further including determining, by the input bit selection stage, the bit selection values based on leading non-zero positions in the multi-bit input data.

### Claim 19 (depends on 15)

The method of claim 15, further including masking, by the input bit selection stage, bit positions in the multi-bit input data that have already been processed.

### Claim 20 (depends on 15)

The method of claim 15, further including asserting, by the input bit selection stage, a plurality of completion signals for a corresponding plurality of rows in the CiM enabled memory array, and wherein the completion signals indicate that all bit positions in the multi-bit input data with the non-zero values have been processed.
