PIM MAC Circuit With Parallel ECC for Error-Corrected AI Computing

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Processing-in-memory (PIM) devices face challenges in performing efficient multiplication/accumulation (MAC) operations due to errors in data, which degrade the performance of artificial intelligence applications, particularly in deep learning, where integrated processor and memory systems are limited by data communication constraints.

Innovation Solution

A PIM device is designed with a first storage region for data and a second storage region for parity, incorporating an error correction code (ECC) logic circuit and a MAC operator that simultaneously executes ECC calculations and multiplying operations, generating error codes to compensate for errors in the multiplication results.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Speed

If PIM device performs MAC operations directly in memory, then data processing speed is improved, but errors in data degrade calculation accuracy

Engineering Contradiction:
Improvedata processing speedVSAvoidcalculation accuracy
Core Design Contradiction:
SpeedVSReliability

Solution Approach 1:

The patent applies preliminary action by performing ECC calculations simultaneously with MAC operations on data before the multiplication is completed. The ECC logic circuit detects and corrects errors in the first data during the same time period that the MAC operator performs multiplication, ensuring accurate results without delaying the processing speed.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent introduces an intermediary mechanism by adding ECC logic circuit functionality within the MAC operator structure. The ECC circuit acts as an intermediary that processes data alongside the MAC operation, detecting errors and generating correction values that are then applied to maintain calculation accuracy while preserving the direct-in-memory processing speed advantage.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If ECC calculation is performed separately from MAC operation, then error correction is thorough, but calculation time increases

Engineering Contradiction:
Improveerror correction capabilityVSAvoidcalculation time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent merges the ECC logic circuit and MAC operator into a single integrated structure where both operations can execute simultaneously. The ECC calculation for error detection and the MAC multiplication operation share the same processing timeline, allowing error correction to be performed thoroughl y without adding separate calculation time overhead.

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The patent ensures continuity of useful action by making the ECC calculation and MAC operation proceed in parallel without interruption. Both operations utilize the available data continuously, with the ECC circuit working on error detection while the MAC operator performs multiplication, maximizing resource utilization and eliminating idle time.

Inventive Principle:
Principle #20Continuity of useful action

3Adaptability or versatility

If PIM device uses separate memory and processor, then data communication flexibility is maintained, but AI performance is degraded due to communication limitations

Engineering Contradiction:
Improvedata communication flexibilityVSAvoidAI performance
Core Design Contradiction:
Adaptability or versatilityVSProductivity

Solution Approach 1:

The patent merges the processor and memory into a single PIM device where MAC operations are performed directly within the memory structure. This integration eliminates the need for continuous data communication between separate memory and processor components, thereby removing the communication bottleneck that limited AI performance while maintaining the flexibility of the PIM architecture.

Inventive Principle:
Principle #5Merging (Combining)

Data Source

PatentUS11720441B2Processing-in-memory (PIM) devices
Publication Date: 2023.08.08 SK HYNIX INC
  • US11720441B2 patent drawing
  • US11720441B2 patent drawing
  • US11720441B2 patent drawing

AI summary

A Processing-In-Memory (PIM) device includes a first storage region and a multiplication/accumulation (MAC) calculator. The first storage region configured to store a first data. The MAC operator configured to execute a MAC calculation on the first data and second data in an MAC mode. When an error exists in the first data, the MAC operator compensates multiplication result data generated by a multiplying calculation of the first data and the second data and executes an adding calculation of the compensated multiplication result data.