arXiv:2610.02502cs.AROct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.02502

RAPID: Row-Parallel Arithmetic Processing in DRAM

William C. Tegge, João Paulo Cardoso de Lima, Shouzhi Fang, Jeronimo Castrillon, Alex K. Jones

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

William C. Tegge*, João Paulo Cardoso de Lima†, Shouzhi Fang*, Jeronimo Castrillon‡, Alex K. Jones*

*Syracuse University, Syracuse, NY, USA

{wtegge, sfang18, akj}@syr.edu

†Friedrich-Alexander-Universität Erlangen-Nürnberg, Erlangen, Germany

joao.lima@fau.de

‡TU Dresden, Dresden, Germany

jeronimo.castrillon@tu-dresden.de

Abstract—Processing-using-memory (PUM) architectures perform computation directly within DRAM to reduce costly data movement between memory and processors. Because charge-sharing operations are confined to individual bitlines, existing charge-sharing-based DRAM-PUM architectures reorganize data into column-oriented, bit-serial representations. This organization is fundamentally incompatible with the row-oriented, word-parallel layouts used by conventional processors and accelerators, requiring expensive data-layout transformations whenever computation transitions between PUM and conventional execution. In this paper, we present RAPID, a Row-parallel Arithmetic Processing-In-DRAM architecture. RAPID augments the DRAM subarray with two lightweight extensions: migration cells that enable localized horizontal data movement between neighboring bitlines and inversion cells that provide efficient in-array logical inversion. These primitives enable RAPID to operate directly on row-parallel, bit-parallel data, preserving CPU-compatible layouts while exploiting the massive parallelism of the DRAM subarray. In particular, RAPID demonstrates that localized horizontal communication is sufficient to realize shallow arithmetic networks and efficient parallel reduction for multiplication, reducing arithmetic latency while preserving throughput and eliminating costly data-layout transformations, all while maintaining the conventional DRAM array organization. We demonstrate the feasibility and overhead of augmenting DRAM subarrays with migration and inversion cells through detailed transistor-level layout and SPICE-validated circuit simulations. Using the RAPID compiler it is possible to evaluate the performance and data reorganization tradeoffs to ensure the best execution across combined CPU and PUM. Evaluating RAPID on 19 MLPerf benchmarks, there is a 5.9×5.9\times higher end-to-end performance compared to SIMDRAM for DDR4 PUM execution.

I. INTRODUCTION

Modern computing systems rely on main memory to orchestrate data movement between processors and increasingly diverse compute accelerators. Processing-using-memory (PUM) has emerged as a promising approach to overcome the memory bandwidth bottleneck by performing computation directly within DRAM, eliminating much of the costly data movement between memory and compute units [1]–[8]. However, most DRAM-PUM architectures reorganize data into column-oriented, bit-serial representations to exploit the massive bit-level parallelism of the memory array. While effective for in-memory Boolean computation, these organizations differ fundamentally from the row-parallel, word-oriented layout used by conventional processors, complicating CPU-PUM interoperability and often requiring expensive data-layout transformations.

The motivation for column-oriented data organization in existing DRAM-PUM architectures stems from the need for fine-grained access to individual operand bits. Conventional arithmetic operators, including adders and multipliers, are constructed from lower-level Boolean primitives and, more recently, majority logic [3], [4], [9]. These computations repeatedly combine bits from one significance position to produce results that contribute to another as they construct carry chains, partial products, and prefix networks. Commodity DRAM, instead, was designed for high-density, high-bandwidth storage rather than computation. Its architecture isolates neighboring columns while exploiting shared bitlines, local bitline sense amplifiers (BLSAs), and hierarchical wordline decoders to achieve high-speed access. PUM leverages these existing structures by simultaneously activating multiple wordlines, allowing charge sharing across cells connected to the same bitline to implement Boolean and majority operations. However, because neighboring bit positions within a row are electrically isolated, there is no native mechanism for communication between adjacent bit positions without additional hardware.

Due to this lack of horizontal data movement, existing DRAM-PUM approaches reorganize data into column-oriented or bit-sliced representations [1]–[7], where each bit position occupies a separate row. Arithmetic operations are then realized through logical shifting, in which different rows are selected to represent successive bit positions rather than physically moving data within the array. This organization provides complete flexibility to logically align arbitrary bit positions for computation. However, many arithmetic structures require only local communication between adjacent or nearby bit positions. Carry propagation, partial-product accumulation, and prefix computation all operate over structured local neighborhoods, suggesting that restricted horizontal data movement may be sufficient to support expressive bit-parallel arithmetic. Consequently, the flexibility of unrestricted logical shifting may not justify the overhead of maintaining data in a layout that is incompatible with the row-major organization used by processors and other computing elements.

Prior work [7], [10], [11] has recognized the importance of efficient horizontal data movement in DRAM-PUM for applications including genomics [12], cryptography [13] and hyperdimensional inference [14]. It is also important to distinguish between the data layout (how operand bits are physically arranged in the array) and the execution style (whether carries propagate serially or in parallel). Proteus [15] demonstrates that bit-parallel algorithms, such as carry-lookahead addition, can execute on vertically organized (bit-sliced) data by distributing operand bits across multiple subarrays and exploiting subarray-level parallelism (SALP) to evaluate prefix levels concurrently. Thus, algorithmic parallelism is largely decoupled from the underlying data layout. However, the physical organization remains bit-sliced, requiring data transposition when interfacing with conventional row-major host data. A complementary approach is to perform bit-parallel algorithms directly on a row-major data layout, requiring only local horizontal data movement to support parallel carry propagation while preserving CPU-compatible data organization and eliminating transposition overhead.

The performance tradeoff is not immediately obvious. Bit-serial and bit-parallel organizations optimize different objectives. Bit-serial organizations expose massive parallelism across large numbers of operands, making them attractive for throughput-oriented Boolean computation. In contrast, bit-parallel organizations reduce the sequential depth of arithmetic, potentially providing significantly lower latency.

In this paper we present RAPID, or Row-Parallel Arithmetic Processing in DRAM. RAPID introduces a DRAM-PUM architecture that exploits the latency advantages of bit-parallel computation while preserving sufficient parallelism to achieve throughput comparable to bit-serial execution. The architecture augments the DRAM subarray with two lightweight primitives supporting horizontal data movement and inversion.

First, migration cells [16] are placed in pairs with distinct offsets to enable horizontal data movement between neighboring bitlines. RAPID builds upon this bidirectional in-row shifting to implement bit-parallel arithmetic and other row-shifting operations. Second, we introduce inversion cells, a migration-cell-derived structure located at the extremities of each subarray. These cells preserve the conventional DRAM array organization and density while providing controlled access to the complementary side of the sense amplifier, allowing inverted values to be restored to their original bitlines and retained within the same subarray.

Leveraging these primitives, RAPID constructs Kogge–Stone prefix addition in O(log⁡n)O(\log n) depth, where each prefix level maps to horizontal shifts at power-of-two distances followed by majority-based AND/OR operations. Multiplication is realized through partial-product generation via migration-cell broadcast, followed by carry-save reduction that compresses n partial products to two operands using only single-bit horizontal shifts, and a final prefix addition to produce the result. Both constructions operate entirely on row-parallel data, preserving CPU-compatible layouts throughout.

Given that RAPID supports both bit-serial and bit-parallel PUM execution, the RAPID compiler determines which regions of a program should execute in each layout. While bit-serial execution may reduce the cost of some arithmetic operations, converting between bit-serial and bit-parallel layouts incurs a data reorganization cost before results can be consumed by the CPU or subsequent bit-parallel computation. The compiler therefore performs a global optimization over the dependence graph, jointly selecting data layouts and arithmetic algorithms to minimize the combined cost of computation and layout conversion.

In particular, the contributions of RAPID are as follows:

  1. We introduce a fundamentally new migration-cell-based computational capability that enables parallel pairwise bit interaction between adjacent bit positions within a row. This allows adjacent bit pairs to simultaneously participate in majority and clone operations with one or more aligned rows, which cannot be realized by augmenting the local row buffer with shifting circuitry [7].

  2. We develop a shallow row-parallel arithmetic framework that preserves conventional processor-compatible data layouts. The framework exploits parallel pairwise bit interaction to realize partial-product masking, MAJ3/MAJ5-based carry-save reduction, and logarithmic-depth prefix addition.

  3. We develop the first compiler for heterogeneous bit-serial/bit-parallel DRAM-PUM that globally co-optimizes arithmetic algorithm selection and data layout, minimizing the combined cost of PUM execution and host-side data reorganization across the dependence graph. On kernels whose arithmetic operations prefer different layouts, this joint selection lowers the latency by 1.8×1.8\times over the fixed layout compilation.

  4. We evaluate the tradeoffs between row-parallel and bit-serial DRAM-PUM organizations, demonstrating that row-parallel execution preserves CPU and accelerator interoperability, eliminates costly data-layout transformations, substantially reduces arithmetic latency, and maintains throughput competitive with state-of-the-art bit-serial DRAM-PUM architectures.

RAPID provides a 5.9×5.9\times performance improvement over SIMDRAM [3] for host-PUM edge-class cooperative execution of MLPerf workloads.

References (49)