EFSim: An Efficient and Flexible Simulation Framework for Digital In-Memory Computing
Digital in-memory computing (IMC) has drawn significant attention in neural network acceleration due to its superior energy efficiency and resistance to non-ideal variations. Simultaneously, the rapid evolution of neural networks and the large design space of IMC systems necessitate an early-stage verification simulator. In this paper, we introduce EFSim, an efficient and flexible simulation framework for digital in-memory computing systems. On the hardware level, a parameterized Chisel-based hardware library is constructed to enable the rapid and flexible generation of customized Verilog IMC circuits. On the software level, the IMC inference engine facilitates the efficient deployment of neural network models. Furthermore, EFSim performs hybrid compilation of designed IMC systems using Verilator, thereby enabling rapid performance evaluation and software-hardware co-optimization. Validation through two designed IMC macros demonstrates that the relative modeling error rate of EFSim is below 10%. Experimental results indicate that EFSim enables efficient evaluation of digital IMC systems and supports extensive design space exploration. The EFSim is open-sourced at https://github.com/cq-work/EFSim.
Authors
- Haisheng Fu (ORCID: https://orcid.org/0000-0001-8709-5927)
- Zhenjiao Chen
- Shang Wang
- Feng Liang (ORCID: https://orcid.org/0000-0002-9393-6224)
- Hang Chen (ORCID: https://orcid.org/0000-0002-9011-4110)
- Qi Cao (ORCID: https://orcid.org/0009-0002-1244-4568)
Institutions
- Northwestern Polytechnical University (CN)
- Xi'an Jiaotong University (CN)
Publication Details
- Published
- 2025-05-09
- DOI
- https://doi.org/10.1109/iseda65950.2025.11100648
- Primary Topic
- Advanced Memory and Neural Computing
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China
- Aeronautical Science Foundation of China