High-Quality Iterative Logic Compiler for In-Memory SIMD Computation with Tight Coupling of Synthesis and Scheduling

Xingyue Qian, Chenyang Lv, Zhezhi He, Weikang QianarXiv 2024 · DOI

Abstract

In-Memory Computing (IMC) addresses the "memory wall" bottleneck by performing logic operations directly within memory arrays. However, traditional logic compilers suffer from a decoupled "synthesis then scheduling" workflow that often prioritizes gate count over memory efficiency. This paper presents a novel iterative logic compiler that tightly couples these stages to optimize for both netlist size and Memory Footprint (MF). By maintaining a Pareto-optimal frontier and performing surgical re-optimization on critical sub-netlists during peak memory usage, the proposed compiler achieves an average 18.0% reduction in Energy-Delay Product (EDP) across standard benchmarks.

Introduction

Conventional computer architectures are increasingly limited by the energy and time required to move data between the processor and memory. In-Memory Computing (IMC) offers a paradigm shift by executing logic operations in-situ. To leverage this hardware, logic compilers must perform two primary tasks: logic synthesis (converting functions into netlists) and scheduling (sequencing operations and managing memory row assignments). Historically, these tasks have been treated as independent silos, leading to sub-optimal hardware utilization.

The Challenge: Decoupled Synthesis and Scheduling

Existing compilers typically aim to minimize the total number of operations (size) during synthesis, assuming that a smaller netlist automatically leads to better performance. However, in IMC, the Memory Footprint (MF)—the maximum number of memory rows required simultaneously—is a critical constraint. A small netlist with a high MF may exceed the capacity of a single memory array, necessitating expensive cross-array data transfers. This "smaller is better" fallacy often results in designs that are technically compact but practically inefficient in terms of power and latency.

Methodology: An Iterative Pareto-Optimal Flow

To bridge the gap between synthesis and scheduling, the researchers developed an iterative compiler that treats the two processes as a continuous feedback loop. Rather than outputting a single "best" design, the compiler explores a frontier of Pareto-optimal candidates that balance the trade-off between netlist size and memory footprint.

The proposed iterative compiler flow, which integrates logic synthesis and scheduling into a feedback loop to explore Pareto-optimal designs.

The flow incorporates several key innovations:

  • MFResub (Memory Footprint-oriented Resubstitution): A specialized logic optimization that replaces nodes specifically to free up memory rows earlier in the execution sequence.
  • Early Termination: To maintain efficiency, the compiler kills scheduling processes that are mathematically certain to exceed the memory bounds of existing Pareto-optimal designs.

Surgical Optimization of Peak Memory Usage

A central insight of this work is that the overall memory footprint is dictated by the "peak usage" period during the execution cycle. Instead of re-optimizing the entire netlist, the compiler identifies these peak periods and extracts the "critical sub-netlist" responsible for the high row count.

Analysis of memory usage over clock cycles to identify peak periods and extract critical sub-netlists for targeted re-optimization.

By focusing re-synthesis efforts specifically on these critical windows, the compiler can achieve significant reductions in the memory ceiling with minimal computational overhead. This surgical approach allows the tool to handle large-scale benchmarks efficiently.

Results and Key Insights

The compiler was evaluated using the EPFL Benchmark Suite, covering both small and large-scale logic challenges. The results demonstrate that the iterative approach consistently outperforms state-of-the-art sequential compilers:

  • EDP Gains: The tool achieved an average 18.0% reduction in Energy-Delay Product compared to GPPIC+.
  • Efficiency over Size: In the sin benchmark, the compiler produced a netlist that was larger than the baseline but resulted in a 23% lower EDP due to its superior memory management.
  • Scalability: Despite the iterative nature of the algorithm, large benchmarks can be processed in under five hours, making it a practical solution for complex IMC architectures.

Conclusion

By breaking the silo between logic synthesis and scheduling, this iterative compiler provides a more holistic approach to IMC design. The ability to target peak memory usage and maintain a Pareto-optimal frontier ensures that the resulting instruction sequences are optimized for real-world hardware constraints. Future work will focus on expanding the library of optimization patterns and incorporating more hardware-specific constraints directly into the synthesis loop.

Summary updated

BibTeX
@misc{qian2024high,
  author = {Xingyue Qian and Chenyang Lv and Zhezhi He and Weikang Qian},
  title = {{High-Quality Iterative Logic Compiler for In-Memory SIMD Computation with Tight Coupling of Synthesis and Scheduling}},
  year = {2024},
  eprint = {2412.02212},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.02212},
}
Figure