Introduction
Traditional computing architectures are increasingly hindered by the "memory wall," where the energy and time required to move data between the processor and memory far exceed the cost of computation itself. In-Memory Computing (IMC) addresses this by performing logic operations directly within memory arrays. However, as logic circuits grow in complexity, they often exceed the capacity of a single memory array, necessitating multi-array SIMD (Single Instruction, Multiple Data) architectures.
The Data Movement Bottleneck
In multi-array IMC systems, a significant and often overlooked bottleneck is the COPY instruction. For a logic operation to occur, all its inputs must reside in the same memory array. If they do not, the system must move data between arrays, a process that is approximately 1.87 times more energy-intensive than a standard computation. Previous scheduling methods focused primarily on minimizing row usage within a single array, remaining largely "blind" to the massive energy overhead of inter-array data movement.
The MASIM Methodology
MASIM (Multi-Array Scheduler for In-Memory) is a novel framework designed to minimize these expensive copy operations through a two-stage optimization process.
1. Partner-Aware Scheduling
At the core of MASIM is the CICPP (Cost-Integrated Close Partner Pairs) metric. This heuristic identifies "partner" nodes—data elements that will be required together for future operations. By prioritizing the placement of partner nodes within the same array, MASIM proactively reduces the need for future COPY instructions. The scheduler evaluates which node to compute, which array to utilize, and which row to overwrite, favoring the preservation of unique data and the grouping of partners.
2. Iterative Improvement
To avoid falling into local optima common in greedy scheduling, MASIM employs an iterative improvement phase. After an initial sequence is generated, the algorithm "perturbs" the sequence by randomly swapping the order of ready operations and re-evaluating the instruction count. If a perturbation leads to fewer copy instructions, it is adopted as the new baseline.
Experimental Evaluation
The researchers validated MASIM using the EPFL benchmark suite, which includes a variety of logic circuits ranging from simple arithmetic to complex functions like square roots (sqrt) and sine functions (sin). These benchmarks provide a rigorous test for the scheduler's ability to handle diverse logic depths and data dependency patterns.
Key Results
MASIM demonstrates a significant leap in efficiency over state-of-the-art schedulers like XMG-GPPIC and SIMPLER:
- Copy Reduction: On average, MASIM reduces the number of inter-array copy instructions by 63.2%.
- Energy Savings: By slashing the most energy-expensive part of the process, MASIM achieves a 28.0% total energy reduction across all benchmarks. For specific complex circuits like multipliers and dividers, the energy reduction is even more pronounced.
- Computational Efficiency: Despite its iterative nature, MASIM is highly performant, requiring only 33.7% of the runtime of the previous best-performing scheduler.
Conclusion and Future Work
MASIM proves that data locality is the primary driver of efficiency in multi-array IMC. By treating memory array layout as a strategic resource and utilizing a partner-aware heuristic, it effectively breaks the data movement bottleneck. Future iterations of MASIM aim to become topology-aware, accounting for the varying physical distances between arrays on a chip to further optimize the energy cost of remaining data movements.
Summary updated