arXiv(opens in a new tab)cs.ARSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.30998

PipeDRAM: A Data-Transposition-Free In-DRAM Architecture with Hardware/Software Pipelining

Geraldo F. Oliveira, Ataberk Olgun, Ismail Emir Yüksel, F. Nisa Bostancı, Pedro H. E. Becker, Mohammad Sadrosadati, Saugata Ghose, Juan Gómez-Luna, Onur Mutlu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Geraldo F. Oliveira† Ataberk Olgun‡* Ismail Emir Yüksel‡* F. Nisa Bostanci‡*

Pedro H. E. Becker† Mohammad Sadrosadati‡* Saugata Ghose* Juan Gómez-Luna* Onur Mutlu‡*

†^{\dagger} Huawei Research, Zürich

‡^{\ddagger} ETH Zürich

∗^{*} SAFARI Research Group

Processing-using-DRAM (PUD) architectures exploit the analog operational properties of DRAM to perform bulk bitwise Boolean and arithmetic operations inside memory arrays by organizing data in a vertical layout, where operand bits are stacked along DRAM columns. However, modern computing systems natively employ a horizontal data layout that preserves the cache line abstraction, leverages spatial locality in row buffers, and enables high memory throughput. This fundamental mismatch forces existing PUD architectures to frequently perform data layout transformations between horizontal and vertical formats, incurring significant performance, energy, and system integration overheads. Our goal is to eliminate data transposition overheads in PUD systems at low cost. To this end, we propose PipeDRAM, a PUD architecture that eliminates the need for runtime data layout transformation, enabling PUD operations directly over horizontally laid-out data. PipeDRAM's key ideas are to (i) deterministically reorganize bits inside each memory request to enable a PUD-friendly data placement within a DRAM array in a horizontal data layout, and (ii) employ a pipeline-based execution model that overlaps bit-dependent and bit-independent in-DRAM operations to exploit bit-level parallelism across the memory array. We compare PipeDRAM to different computing platforms. PipeDRAM provides (i) 11.8×11.8\times, 11.8×11.8\times, and 80.4×80.4\times higher performance and (ii) 25.4×25.4\times, 3.0×3.0\times, and 38.0×38.0\times lower energy consumption than three state-of-the-art PUD systems. PipeDRAM incurs low area cost on top of a DRAM chip (1.86%) and CPU die (0.05%). To enable further research on PUD systems, we open-source PipeDRAM at https://github.com/CMU-SAFARI/PipeDRAM.

1. Introduction

Processing-in-memory (PIM) [1–15] is a paradigm that alleviates the ever-growing cost of moving data between computing (e.g., CPU, GPU) and memory (e.g., DRAM) elements. In PIM architectures, computation is done by adding logic near memory arrays, i.e., processing-near-memory (PNM) [9, 10, 16–48, 48–183], or by using the analog properties of the memory arrays, i.e., processing-using-memory (PUM) [15, 69, 109, 134, 184–295]. Many prior works [15, 69, 185–191, 194, 198–201, 203, 204, 210, 213–217, 220, 225, 233–237, 239, 260, 261, 266, 290–295] demonstrate the feasibility of processing-using-DRAM (PUD), which uses DRAM cells to implement (i) simple PUD primitives, such as in-DRAM row copy [188, 194, 200, 214, 237] and Boolean/majority [185–187, 191, 201, 202, 236] logic, and (ii) complex PUD operations, such as arithmetic [190, 216, 217, 225, 234, 235, 292] and lookup table (LUT)-based [203, 204, 233, 258, 295–297] operations, implemented by composing PUD primitives. PUD architectures commonly employ a bit-serial single-instruction multiple-data (SIMD) execution model to implement arithmetic and logic operations inside DRAM arrays. To enable efficient carry propagation and bitwise computation, such architectures organize data in a vertical layout: for an input array with M data elements, each of which with N bits, this layout spans M columns and N rows, where each DRAM row corresponds to a single bit-position of all M data elements. Multiple inputs arrays are placed in different DRAM rows and aligned within the same DRAM column.

The vertical data layout mitigates two key issues that arise when performing arithmetic PUD operations under the conventional horizontal data organization that modern computing systems natively employ to enable high memory throughput. First, conventional DRAM interleaving schemes distribute the bits of an N-bit data word evenly across the DRAM hierarchy [298–302] (i.e., rank → chip → bank → subarray → mat), scattering the operand bits that must interact during in-DRAM execution. Since PUD computation is driven by the sense amplifiers of a DRAM mat [15, 185, 188, 194, 200, 201, 236, 237, 303] (the basic building block of PUD computation), this distribution creates a data locality problem, where the bits of a given PUD operand are spread across the DRAM hierarchy rather than being centralized within a single DRAM mat. The vertical layout resolves this by confining all N bits of each data word to a single DRAM column, thereby localizing the full operand within one mat. Second, PUD computation is inherently rowwise, where sense amplifiers operate across all columns of an activated DRAM row, and no native interconnect exists to propagate data column-wise across rows [225]. As a result, PUD operations that require intermediate values to propagate across bit-positions (e.g., carry propagation in a bit-serial adder) cannot be performed under a horizontal data layout without costly hardware modifications to the DRAM array [225, 235], where the N bits of an operand reside in N different columns. The vertical layout resolves this by enabling carry propagation via in-DRAM row copy operations [188]: Cini+1←CoutiC_{in}^{i+1} \leftarrow C_{out}^{i} simply translates to copying row i to row i+1i+1.

However, the vertical data layout is fundamentally incompatible with the horizontal data organization that modern memory systems rely on, introducing three major limitations. First, PUD architectures incur costly runtime data layout conversion overheads [225]. Our evaluation results (§5) show that, on average, data layout conversion reduces performance and energy efficiency by 3.9×3.9\times and 3.7×3.7\times, respectively, relative to an idealized PUD system with no transposition requirements. Second, data layout transformation amplifies data movement and interferes with the cache hierarchy. For example, prior works [225, 235, 292] store vertically laid-out data as object slices spanning multiple cache lines, such that accessing or evicting a single data element triggers writeback of an entire slice. This amplifies cache line traffic, increases writeback pressure, and entangles PUD execution with CPU cache hierarchy behavior. Third, vertical-layout PUD architectures introduce a dual data-layout view of memory, where an application needs to distinguish between horizontally and vertically organized objects and coordinate data layout transformations.

Our goal in this work is to eliminate the need for runtime data layout transformation while preserving PUD execution compatibility with conventional horizontally-organized memory systems. To this end, we propose PipeDRAM, a PUD architecture that enables bit-serial PUD execution directly over horizontally laid-out data. The key ideas of PipeDRAM are twofold. First, PipeDRAM leverages a mat-aware bit mapping (MABM) mechanism that deterministically reorganizes bits within each cache line to enable a horizontal, yet PUD-friendly, data layout within DRAM without incurring data transposition overheads. Placed at the memory controller, MABM applies a deterministic bit-level permutation to each cache line on writes (and its inverse on reads), such that (i) each data word is confined within a single DRAM chip, and (ii) its N bits are horizontally distributed evenly across the mats of that chip, with each mat holding one bit-position within a single DRAM row. This directly addresses the data locality problem by keeping the operand data inside a single subarray (multiple mats). MABM introduces no memory throughput loss or data format conversion overhead. Second, PipeDRAM combines fine-grained DRAM row access [304–312] with a hardware/software pipeline to exploit bit-level parallelism [292] in PUD execution. Since MABM assigns each bit-position to a dedicated DRAM mat, carry values must propagate mat-to-mat rather than row-to-row. PipeDRAM enables this via the inter-mat interconnect of MIMDRAM [235], a fine-grained PUD architecture that allows individual DRAM mats to be activated independently and provides low-cost data movement across mats.

The ability to individually activate mats and move data between them opens a new opportunity: to turn each DRAM mat into a pipeline stage, where each stage processes a distinct bit-position of the same PUD operation. Such pipelining is possible because the PUD primitives of a PUD operation naturally partition into bit-dependent primitives (those on the carry-dependency chain) and bit-independent primitives (those that can execute before or after dependency resolution). Hence, while bit-dependent PUD primitives advance in dependency order with carry values flowing mat-to-mat, bit-independent PUD primitives from successive bit-positions can overlap across stages, keeping multiple mats busy simultaneously. To orchestrate this pipeline without costly runtime hardware, PipeDRAM statically assigns PUD primitives to pipeline stages using a classical modulo scheduling algorithm [313–315], which computes a fixed, repeating schedule offline. To keep the pipeline busy, PipeDRAM introduces a hierarchical in-DRAM data copy scheme that prevents latency-critical carry propagation from stalling pipeline stages. Beyond performance, PipeDRAM eliminates the dual data-layout view of memory entirely by operating natively over horizontally laid-out data. Since data does not need to be reorganized into a vertical format, applications require no explicit data-format management, and no coordination of layout transformations, addressing the dual data-layout view of memory limitation we described.

We compare the benefits of PipeDRAM to different state-of-the-art processor-centric (CPU, GPU) and memory-centric architectures (SIMDRAM [225], MIMDRAM [235], Proteus [292]). Using a single DRAM rank, PipeDRAM provides (i) 11.8×, 11.8×, and 80.4× higher performance, (ii) 25.4×, 3.0×, and 38.0× lower energy consumption than SIMDRAM, MIMDRAM, and Proteus; and (iii) 356× and 11.7× higher energy efficiency than a CPU and GPU, respectively, on average across twelve real-world applications. PipeDRAM incurs low area cost on top of a DRAM chip (1.86%) and CPU die (0.05%).

We make the following key contributions:

• We propose PipeDRAM, a new PUD architecture that enables in-DRAM computation directly over horizontally laid-out data, eliminating runtime data layout transformation and removing the need for two physical data layouts. To our knowledge, PipeDRAM is the first architecture to support pipeline bit-serial PUD execution without requiring vertical data organization.

• PipeDRAM deploys a new pipeline-based execution model, which decomposes PUD operations into bit-dependent and bit-independent primitives and exploits fine-grained DRAM to overlap their execution. This execution model leverages the distributed placement of operand bits across multiple DRAM mats to enable steady-state pipelined computation over horizontally laid out data.

• PipeDRAM introduces two novel components. First, PipeDRAM’s MABM mechanism deterministically reorganizes bits within each memory request to enable PUD-friendly data placement. Second, PipeDRAM’s hierarchical in-DRAM data copy scheme decouples carry-dependent communication from computation, removing data communication from the critical path of PUD execution.

• We extensively evaluate PipeDRAM for twelve real-world applications, showing that PipeDRAM outperforms state-of-the-art PUD frameworks and processor-centric designs while incurring low area cost to the system.

• We open-source PipeDRAM at https://github.com/CMU-SAFARI/PipeDRAM.

References (100)

  • Processing-in-Memory: A Workload-Driven Perspective
  • A Modern Primer on Processing in Memory
  • DAMOV: A New Methodology and Benchmark Suite for Evaluating Data Movement Bottlenecks
  • The Processing-in-Memory Paradigm: Mechanisms to Enable Adoption
  • Processing Data Where It Makes Sense: Enabling In-Memory Computation
  • Enabling Practical Processing in and Near Memory for Data-Intensive Computing
  • Research Problems and Opportunities in Memory Systems
  • Memory Scaling: A Systems Architecture Perspective
  • A Processing in Memory Taxonomy and a Case for Studying Fixed-Function PIM
  • Near-Data Processing: Insights from a MICRO-46 Workshop
  • A Logic-in-Memory Computer
  • Missing the Memory Wall: The Case for Processor/Memory Integration
  • Cellular Logic-in-Memory Arrays
  • Memory-Centric Computing: Solving Computing's Memory Problem
  • Memory-Centric Computing: Recent Advances in Processing-in-DRAM
  • NDA: Near-DRAM Acceleration Architecture Leveraging Commodity DRAM Devices and Standard Memory Modules
  • JAFAR: Near-Data Processing for Databases
  • The True Processing in Memory Accelerator
  • GenStore: A High-Performance and Energy-Efficient In-Storage Computing System for Genome Sequence Analysis
  • Benchmarking Memory-Centric Computing Systems: Analysis of Real Processing-in-Memory Hardware
  • Benchmarking a New Paradigm: An Experimental Analysis of a Real Processing-in-Memory Architecture (opens arXiv in a new tab)
  • Benchmarking a New Paradigm: Experimental Analysis and Characterization of a Real Processing-in-Memory System
  • SynCron: Efficient Synchronization Support for Near-Data-Processing Architectures
  • NERO: A Near High-Bandwidth Memory Stencil Accelerator for Weather Prediction Modeling
  • A 1ynm 1.25V 8Gb, 16Gb/s/pin GDDR6-Based Accelerator-in-Memory Supporting 1TFLOPS MAC Operation and Various Activation Functions for Deep-Learning Applications
  • Near-Memory Processing in Action: Accelerating Personalized Recommendation with AxDIMM
  • SparseP: Towards Efficient Sparse Matrix Vector Multiplication on Real Processing-in-Memory Architectures
  • McDRAM: Low Latency and Energy-Efficient Matrix Computations in DRAM
  • McDRAM v2: In-Dynamic Random Access Memory Systolic Array Accelerator to Address the Large Model Problem in Deep Neural Networks on the Edge
  • Casper: Accelerating Stencil Computation using Near-Cache Processing (opens arXiv in a new tab)
  • Chameleon: Versatile and Practical Near-DRAM Acceleration Architecture for Large Memory Systems
  • A Case for Intelligent RAM
  • Computational RAM: Implementing Processors in Memory
  • Saving Memory Movements Through Vector Processing in the DRAM
  • Beyond the Wall: Near-Data Processing for Databases
  • ABC-DIMM: Alleviating the Bottleneck of Communication in DIMM-Based Near-Memory Processing with Inter-DIMM Broadcast
  • GraphSSD: Graph Semantics Aware SSD
  • Processing in Memory: The Terasys Massively Parallel PIM Array
  • Mapping Irregular Applications to DIVA, a PIM-Based Data-Intensive Architecture
  • Opportunities and Challenges of Performing Vector Operations Inside the DRAM
  • Livia: Data-Centric Computing Throughout the Memory Hierarchy
  • A Scalable Processing-in-Memory Accelerator for Parallel Graph Processing
  • GraphPIM: Enabling Instruction-Level PIM Offloading in Graph Computing Frameworks
  • Google Workloads for Consumer Devices: Mitigating Data Movement Bottlenecks
  • LazyPIM: An Efficient Cache Coherence Mechanism for Processing-in-Memory
  • TOP-PIM: Throughput-Oriented Programmable Processing in Memory
  • HRL: Efficient and Flexible Reconfigurable Logic for Near-Data Processing
  • GRIM-Filter: Fast Seed Location Filtering in DNA Read Mapping Using Processing-in-Memory Technologies
  • The Mondrian Data Engine
  • Operand Size Reconfiguration for Big Data Processing in Memory
  • NIM: An HMC-Based Machine for Neuron Computation
  • PIM-Enabled Instructions: A Low-Overhead, Locality-Aware Processing-in-Memory Architecture
  • TETRIS: Scalable and Efficient Neural Network Acceleration with 3D Memory
  • Neurocube: A Programmable Digital Neuromorphic Architecture with High-Density 3D Memory
  • Leveraging 3D Technologies for Hardware Security: Opportunities and Challenges
  • CoNDA: Efficient Cache Coherence Support for Near-Data Accelerators
  • Transparent Offloading and Mapping (TOM) Enabling Programmer-Transparent Near-Data Processing in GPU Systems
  • GenASM: A High- Performance, Low-Power Approximate String Matching Acceleration Framework for Genome Sequence Analysis
  • NDC: Analyzing the Impact of 3D-Stacked Memory+Logic Devices on MapReduce Workloads
  • Scheduling Techniques for GPU Architectures with Processing-in-Memory Capabilities
  • Data Reorganization in Memory Using 3D-Stacked DRAM
  • Accelerating Pointer Chasing in 3D-Stacked Memory: Challenges, Mechanisms, Evaluation
  • BSSync: Processing Near Memory for Machine Learning Workloads with Bounded Staleness Consistency Models
  • Mitigating Edge Machine Learning Inference Bottlenecks: An Empirical Study on Accelerating Google Edge Models (opens arXiv in a new tab)
  • Google Neural Network Models for Edge Devices: Analyzing and Mitigating Machine Learning Inference Bottlenecks
  • Polynesia: Enabling High-Performance and Energy-Efficient Hybrid Transactional/Analytical Databases with Hardware/Software Co-Design
  • Polynesia: Enabling Effective Hybrid Transactional/Analytical Databases with Specialized Hardware/Software Co-Design (opens arXiv in a new tab)
  • Practical Mechanisms for Reducing Processor-Memory Data Movement in Modern Workloads
  • SISA: Set-Centric Instruction Set Architecture for Graph Mining on Processing-in-Memory Systems
  • NATSA: A Near-Data Processing Accelerator for Time Series Analysis
  • NAPEL: Near-Memory Computing Application Performance Prediction via Ensemble Learning
  • A 20nm 6GB Function-in-Memory DRAM, Based on HBM2 with a 1.2 TFLOPS Programmable Computing Unit using Bank-Level Parallelism, for Machine Learning Applications
  • Hardware Architecture and Software Stack for PIM Based on Commercial DRAM Technology: Industrial Product
  • 184QPS/W 64Mb/mm² 3D Logic-to-DRAM Hybrid Bonding with Process-Near-Memory Engine for Recommendation System
  • Accelerating Sparse Matrix-Matrix Multiplication with 3D-Stacked Logic-in-Memory Hardware
  • Logic-Base Interconnect Design for Near Memory Computing in the Smart Memory Cube
  • Neurostream: Scalable and Energy Efficient Deep Learning with Smart Memory Cubes
  • 3D-Stacked Memory-Side Acceleration: Accelerator and System Design
  • Design Space Exploration for PIM Architectures in 3D-Stacked Memories
  • HAMLeT: Hardware Accelerated Memory Layout Transform within 3D-Stacked DRAM
  • A Heterogeneous PIM Hardware-Software Co-Design for Energy-Efficient Graph Processing
  • GraphH: A Processing-in-Memory Architecture for Large-Scale Graph Processing
  • Processing-in-Memory for Energy-Efficient Neural Network Training: A Heterogeneous Approach
  • Adaptive Scheduling for Systems with Asymmetric Memory Hierarchies
  • iPIM: Programmable In-Memory Image Processing Accelerator using Near-Bank Architecture
  • DRAMA: An Architecture for Accelerated Processing Near Memory
  • Near-DRAM Acceleration with Single-ISA Heterogeneous Processing in Standard Memory Modules
  • Active-Routing: Compute on the Way for Near-Data Processing
  • Lightweight SIMT Core Designs for Intelligent 3D Stacked DRAM
  • PIMS: A Lightweight Processing-in-Memory Accelerator for Stencil Computations
  • LazyPIM: Efficient Support for Cache Coherence in Processing-in-Memory Architectures (opens arXiv in a new tab)
  • GraphQ: Scalable PIM-Based Graph Processing
  • GraphP: Reducing Communication for PIM-Based Graph Processing with Efficient Data Partition
  • Triple Engine Processor (TEP): A Heterogeneous Near-Memory Processor for Diverse Kernel Operations
  • A Case for Near Memory Computation Inside the Smart Memory Cube
  • Large Vector Extensions Inside the HMC
  • Charon: Specialized Near-Memory Processing Architecture for Clearing Dead Objects in Memory
  • Active Memory Cube: A Processing-in-Memory Architecture for Exascale Systems
  • CAIRO: A Compiler-Assisted Technique for Enabling Instruction-Level Offloading of Processing-in-Memory
  • Processing in 3D Memories to Speed Up Operations on Complex Data Structures

Couldn't load all references. Reload the page to try again.