TL;DR
SynDCIM is the first performance-aware compiler for Digital Computing-in-Memory (DCIM) that automates the transition from high-level specifications to final silicon layouts. By employing a "multi-spec-oriented" subcircuit synthesis approach, it generates DCIM macros that match the performance of manual custom designs while significantly reducing engineering effort.
What Problem Does This Paper Address?
As AI models grow, the "memory wall"—the energy and time wasted moving data between memory and processors—has become a primary bottleneck. Computing-in-Memory (CIM) solves this by performing logic (like multiplications) directly inside the memory array.
However, designing Digital CIM (DCIM) macros is currently a "black art." Existing automation tools are largely template-based; they can tile pre-made blocks but struggle to optimize the internal circuitry to meet specific user goals for power, performance, and area (PPA). If a designer needs a high-throughput macro for a data center versus a low-power macro for a wearable, they usually have to design both by hand. SynDCIM bridges this gap by providing an automated synthesis flow that treats DCIM components like standard digital logic, allowing for fine-tuned, spec-driven hardware generation.
Methods
The authors introduce a three-pillared framework to automate DCIM design:
- Comprehensive Subcircuit Library (SCL): Instead of fixed blocks, SynDCIM uses a library of parameterized components (SRAM cells, multipliers, adder trees). Each component is pre-characterized with PPA lookup tables (LUTs) across different circuit topologies and timing constraints.
- Multi-Spec-Oriented (MSO) Searching Algorithm: This is the "brain" of the compiler. It takes user constraints (e.g., "I need 1GHz frequency") and uses a heuristic hierarchical search to select the best subcircuit combinations. It performs architectural optimizations like retiming (moving registers to balance logic paths), subarray partitioning (splitting large arrays to reduce wire delay), and substituting power-efficient components for speed-critical ones.
- Automated Layout Generation: The tool generates RTL and netlists that are compatible with standard EDA tools (like Synopsys Design Compiler and Cadence Innovus). It specifically uses Structured Data Path (SDP) scripts to ensure the final layout maintains the regular, dense structure required for SRAM-based computing while integrating complex digital logic.
Datasets
While this is a hardware design paper rather than a traditional machine learning paper, the authors evaluated their compiler using:
- Process Technology: A 40nm CMOS process for the physical test chip.
- Design Space Exploration: They generated and simulated macros ranging from 32x32 to 256x256 array sizes.
- Data Formats: The compiler was tested across multiple precisions, including INT4, INT8, FP8, and BF16, to demonstrate its flexibility for different AI workloads.
Key Insights and Ideas
- Synthesis over Tiling: The core "aha" moment is that DCIM shouldn't just be "assembled"; it should be "synthesized." By choosing different types of adders (e.g., 4-2 compressors vs. ripple-carry adders) based on the timing slack of a specific design, the compiler can hit performance targets that fixed-template compilers miss.
- The Pareto Frontier: SynDCIM doesn't just produce one "best" design. It generates a range of designs—some optimized for area, others for energy—allowing users to pick the version that fits their specific application (the Pareto frontier).
- Standard Tool Compatibility: By making the output compatible with standard digital flows (LEF/LIB files), the authors ensure that these custom-generated CIM macros can be easily integrated into larger System-on-Chip (SoC) designs.
Key Results
The effectiveness of SynDCIM was validated with a fabricated 40nm test chip:
- High Performance: The generated macro achieved a maximum frequency of 1.1 GHz at 1.2V.
- Extreme Efficiency: At 0.7V (INT4 precision), it reached an energy efficiency of 1921 TOPS/W.
- Competitive Density: It achieved an area efficiency of 80.5 TOPS/mm² (scaled to 1b-1b operations), which is comparable to state-of-the-art manual designs published at top-tier conferences like ISSCC.
- Scalability: The results showed that as array sizes increase, energy efficiency improves due to lower amortized peripheral overhead, proving the compiler handles scaling effectively.
Limitations and Future Work
- Technology Portability: While the methodology is general, the Subcircuit Library currently needs to be re-characterized if moving to a significantly different process node (e.g., moving from 40nm to 7nm).
- Memory Technology: The current focus is on SRAM-based DCIM. Extending the compiler to support emerging non-volatile memories (like ReRAM or MRAM) would require expanding the library to handle the unique analog-digital interface challenges of those technologies.
- System-Level Integration: While the macro generation is automated, future work could focus on automating the "wrapper" logic that connects these macros to a global bus or a specific AI accelerator architecture.
Summary updated