CIMFlow: Modelling Dataflow in Cross-Layer Compute-in-Memory Deep Learning Accelerators
Open Access
- 26 September 2025
- journal article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Embedded Computing Systems
- Vol. 24 (5s) , 1-22
Abstract
Traditional Deep Learning Accelerators (DLAs) rely on off-chip memory to store large weight tensors, leading to high bandwidth demands and energy consumption. Compute-in-Memory (CIM) accelerators mitigate this by integrating high-density, non-volatile memory arrays, enabling a fully weight-stationary (FWS) dataflow. Multi-core CIM systems further enhance efficiency with cross-layer inference, where intermediate tensors stay on-chip, and cores operate in a pipeline. Despite diverse architecture proposals, no existing tool models the dataflow, memory access patterns and timing behaviour of multi-core CIM accelerators. We introduce CIMFlow, a modelling framework for cross-layer CIM architectures. Our flexible Hardware Architecture Model includes CIM and digital cores and leverages the buffets storage idiom for distributed token-based flow control. An Array-OL-based Workload Model captures CNNs’ multidimensional dependencies and applies hardware-aware transformations. These models are transformed into a timed cyclo-static dataflow graph for simulation. CIMFlow delivers latency, energy and traces for core and buffer utilisation. Our case studies on state-of-the-art CNNs show that cross-layer inference reduces latency by up to 52×. We also reveal that neglecting memory access delays results in throughput overestimations of up to 308%. To our knowledge, CIMFlow is the first tool focused on FWS cross-layer execution in CIM architectures that explicitly models data movement costs. It serves as a powerful cost model for design space exploration in next-generation CIM accelerators.Keywords
Funding Information
- Germany’s Federal Ministry of Research, Technology and Space (BMFTR) in the project NEUROTEC II (16ME0398K, 16ME0399)
This publication has 32 references indexed in Scilit:
- A Calibratable Model for Fast Energy Estimation of MVM Operations on RRAM Crossbars2024
- Dataflow Models of Computation for Programming Heterogeneous Multicores2023
- A 64-core mixed-signal in-memory compute chip based on phase-change memory for deep neural network inferenceNature Electronics, 2023
- A compute-in-memory chip based on resistive random-access memoryNature, 2022
- Data Orchestration in Deep Learning Accelerators2020
- Parallel Multi Channel convolution using General Matrix Multiplication2017
- Deep learningNature, 2015
- Array-OL with delays, a domain specific specification language for multidimensional intensive signal processingMultidimensional Systems and Signal Processing, 2009
- High Level Loop Transformations for Systematic Signal Processing Embedded Applications2008
- Cycle-static dataflowIEEE Transactions on Signal Processing, 1996