PIMID is a cycle-accurate simulator for Processing-in-Memory (PIM) architectures. Workloads run in SE mode, the program alone under QEMU's user-mode emulator, or in OS mode, Linux and the program under QEMU's system emulator (docs/modes.md); a TCG plugin drives ZSim microarchitectural models backed by Ramulator2, CACTI, NVSim, McPAT, and Garnet for timing, power, and area.
- 11 memory technologies -- 7 DRAM (DDR3/4/5, LPDDR5, GDDR6, HBM2, HBM3), SRAM, 3 NVM (STT-MRAM, PCM, ReRAM) -> docs/memory.md
- 4 PE core models --
alu_core,in_order_core(also the scalar single-issue PE:issue_width: 1,branch_predictor: none),ooo_core,null_core-> docs/cores.md - 2 network models --
detailed(cycle-accurate Garnet over sparse placement-driven DRAM trees; one logical network across OpenMP threads and MPI ranks; the default) andanalytical(closed-form hop + M/D/1 + MLP) over 8 topologies -> docs/network.md - Per-technology PE placement -- subarray -> bank -> bank-group -> rank/channel -> logic-die ladders (tech-specific; only HBM reaches the logic die) -> docs/memory.md
- Host-device co-simulation -- offload over interposer / CXL / PCIe / NVLink-class links -> docs/cosim.md
- 4 simulation methods --
exec,trace-gen,trace,synthetic-> docs/architecture.md - 49 benchmarks across 7 suites; any of them runs in a co-simulation (there are no co-simulation-specific workloads) -> docs/benchmarks.md
- Power/area via McPAT -> docs/power.md
Every hardware block is written under system: as hosts, devices (a
memory with PEs) and memories (a memory without PEs). PIMID simulates these
system shapes:
| Shape | Nodes | What runs |
|---|---|---|
| Device run | one device | the PIM device alone; its memory is the device's |
| Co-simulation | one host + one device | the device is the host's main memory |
| Co-simulation with host memory | one host + one memory + one device | the memory is the host's own main memory, with its own technology and DDR5 speed grade; the device is the PIM accelerator |
| Host alone (OS mode only) | one host | Linux and the program on the host's own memory, one guest memory node |
A host runs its program in SE mode (os: none, the default: the program alone
under QEMU's user-mode emulator) or in OS mode (os: linux: Linux 6.8.12 and
the program under QEMU's system emulator, the device's memory a memory node of
the guest and its PEs a device the guest drives); see
docs/modes.md and docs/os_mode.md.
Each device and memory may declare its address window, and the host and the
device what they may address (address, allowed_address_ranges, 1.12.12);
without them the memory takes the first 4 GB window and the device the next.
See docs/yaml_reference.md.
Multi-node systems are not supported. Several hosts, several devices, several memories, a host with only a memory, a host alone in SE mode, and a device or host reaching other nodes' memory beyond the wiring above are refused at load, by name, rather than run on a model that does not exist.
pimid/
|-- src/ include/ simulator core (ZSim integration, models, config)
|-- external/ bundled backends: zsim, qemu, ramulator, cacti,
| nvsim, mcpat, garnet
|-- params/ part records: DRAM, core and cache defaults with their sources
|-- benchmarks/ 49-benchmark suite + host/ and hostphase/ kernels
|-- examples/ runnable example configs (techs, cores, topologies,
| placements, cosim) + integration/ extension demo
|-- scripts/ tools/ pimid-cache, pimid-migrate-config, the guest-library fetch, nvsim_warm
|-- cache/ characterization cache warehouse (docs/cache_warehouse.md)
|-- docs/ full documentation (see below)
`-- CMakeLists.txt LICENSE README.md
# dependencies (Ubuntu/Debian): see docs/build.md
mkdir -p build && cd build && cmake .. && make -j$(nproc)
make -C ../benchmarks allQEMU with TCG plugins is required for execution-driven mode -- build it once
into external/qemu/build/ (docs/build.md).
Or skip building entirely:
docker pull ghcr.io/isaacyhe/pimid:latest# cycle-accurate run of an example config
./build/pimid --method exec --config examples/tech_HBM3.yaml --no-power
# synthetic NoC traffic, no workload needed
./build/pimid --method synthetic --config examples/topo_MESH_2D.yaml
# timing does not depend on ASLR (since 1.12.62); for bit-identical logs
# disable it (one McPAT report line can still vary, see docs/build.md)
setarch -R ./build/pimid --method exec --config examples/tech_DDR4.yaml./build/pimid --help lists every command-line option.
A minimal config:
workload: { binary: benchmarks/pim_kernels/stream_triad/stream_triad,
args: ["--size", "8192"] }
system:
devices: # every hardware block lives in its node (1.12.8)
- name: device
pim:
pe: { type: alu_core, count: 8, frequency_mhz: 1000 }
placement: { level: BANK }
memory: { technology: HBM3 }
noc: { model: detailed } # default; 'analytical' for fast sweeps| docs/architecture.md | engine, methods, scopes, two-Garnet hierarchy |
| docs/memory.md | technologies, backends, placement, characterization cache |
| docs/network.md | the two NoC models, topologies, DRAM trees, synthetic traffic |
| docs/cores.md | PE core models, ALU scaling, MLP |
| docs/cosim.md | host-device offload, link types, MPI semantics |
| docs/cosim_calibration.md | co-simulation calibration: measured anchors and their sources |
| docs/benchmarks.md | suites, data-model variants, building, running |
| docs/examples.md | the example config set |
| docs/power.md | McPAT power/area |
| docs/build.md | build details, HPC notes, Docker, reproducibility |
| docs/yaml_reference.md | every configuration key |
| docs/dram_specs.md | per-technology JEDEC mapping |
| docs/memory_spec_structs.md | C++ architecture-spec structs |
| docs/cache_warehouse.md | characterization cache internals |
| docs/external.md | vendored external simulators |
| docs/sources.md | every external number's source (papers, JEDEC standards, datasheets) |
| docs/derivations/hbm_gddr6_idd.md | how the HBM3, HBM2 and GDDR6 IDD rows are computed, with bands |
| docs/external_models.md | plugging in your own models |
| docs/changelog.md | every release: the defect fixed, its cause and its data impact |
If you use PIMID in your research, please cite our paper:
Yuan He, Masaaki Kondo, Galen M. Shipman, Jered B. Dominguez-Trujillo, Shigeki Tomishima, and Kazi Asifuzzaman. PIMID: A Full-System Simulator with Intricacy and Diversity for Processing-in-Memory. arXiv:2607.24196 [cs.AR], 2026. https://arxiv.org/abs/2607.24196
@misc{pimid2026,
title = {{PIMID}: A Full-System Simulator with Intricacy and Diversity
for Processing-in-Memory},
author = {He, Yuan and Kondo, Masaaki and Shipman, Galen M. and
Dominguez-Trujillo, Jered B. and Tomishima, Shigeki and
Asifuzzaman, Kazi},
year = {2026},
eprint = {2607.24196},
archivePrefix = {arXiv},
primaryClass = {cs.AR},
url = {https://arxiv.org/abs/2607.24196},
doi = {10.48550/arXiv.2607.24196}
}PIMID composes several established simulators, each vendored under
external/. If your work depends on a specific component, please
also cite its paper:
| Component | Role in PIMID | Paper | Upstream |
|---|---|---|---|
| Ramulator 2.0 | DRAM timing and energy | Luo et al., IEEE CAL 2024 | CMU-SAFARI/ramulator2 |
| CACTI 7 | SRAM arrays, cache timing/area | Balasubramonian et al., ACM TACO 2017 | HewlettPackard/cacti |
| CACTI-IO | off-chip DRAM interface: termination, PHY, IO area | Jouppi et al., ICCAD 2012 | ships inside CACTI 7 (external/cacti/extio*) |
| CACTI-P | power gating / sleep-transistor and retention (Vcc_min) model | Li et al., ICCAD 2011 | grafted into external/cacti (the 6.5-P fields McPAT consumes) |
| CACTI-D | DRAM cell/device technology (comm-dram, lp-dram) and DRAM arrays |
Thoziyoor et al., ISCA 2008 | ships inside CACTI 7 (external/cacti, dram cell/device paths) |
| CACTI-3DD | 3D-stacked DRAM + TSV model: since 1.12.18 its TSV model (Coarse) prices the die crossings of a stacked part's (HBM) in-memory fabric, inside the McPAT fork (power.models.fabric_tsv; see docs/sources.md) |
Chen et al., DATE 2012 | ships inside CACTI 7 (external/cacti/TSV.cc) |
| NVSim | STT-MRAM, PCM, ReRAM arrays | Dong et al., IEEE TCAD 2012 | SEAL-UCSB/NVSim |
| Garnet | cycle-accurate in-memory network | Agarwal et al., ISPASS 2009 | gem5/gem5 |
| McPAT | power and area | Li et al., MICRO 2009 | HewlettPackard/mcpat |
| Wattch | clock-network power model (H-tree wiring, repeaters, clocked loads; conditional clocking by measured activity), implemented inside the McPAT fork since 1.12.18 -- the model, no code reused | Brooks, Tiwari and Martonosi, ISCA 2000 | -- |
| ZSim | microarchitectural core models | Sanchez and Kozyrakis, ISCA 2013 | s5z/zsim |
| QEMU | the emulators of SE mode and OS mode, and TCG plugins | Bellard, USENIX ATC 2005 | qemu-project/qemu |
These are not stock copies. Each carries our defect fixes, added models, and calibration against vendor and JEDEC source data, so PIMID's numbers need not match a stock build of the same tool. See docs/changelog.md and docs/external.md for what changed.
This work was supported in part by the Japan Science and Technology Agency (JST) under the Research and Development Program for Next-Generation Edge AI Semiconductors, Grant Number JPMJES2512; by UT-Battelle, LLC, under Contract No. DE-AC05-00or22725 with the U.S. Department of Energy (DOE); and by the DOE National Nuclear Security Administration through Los Alamos National Laboratory under Contract No. 89233218CNA000001. This software is based upon work supported by the U.S. Department of Energy, Office of Science, Office of Advanced Scientific Computing Research, through the "Competitive Research Portfolio" (DE-FOA-0003264), under Award Number DE-SC0025645 and FWP ERKJ452. This work has been assigned LA-UR-26-25042 and is approved for public release; distribution is unlimited.
GPL-2.0. See LICENSE.

