Accelerating Bulk Bit-Wise X(N)OR Operation in Processing-in-DRAM Platform

Shaahin Angizi, Deliang FanarXiv 2019

Introduction

Modern computing is increasingly constrained by the "Von-Neumann bottleneck," where the energy and time required to move data between the processor and memory far exceed the costs of the computation itself. Processing-in-Memory (PIM) architectures seek to mitigate this by performing logic operations directly within DRAM chips. While previous PIM designs like Ambit have successfully implemented basic gates (AND, OR, Majority), they struggle with XOR and XNOR operations. These operations are critical for tasks such as DNA alignment and data encryption but typically require multiple cycles and inefficient data movement in existing PIM systems. DRIM (Dual-row activation In-Memory) is proposed as a novel architecture to elevate X(N)OR to a "first-class citizen" in DRAM computing.

DRIM Architecture and Methods

DRIM introduces several circuit-level innovations to enable high-speed bulk bit-wise operations. Central to its design is the Dual-Row Activation (DRA) mechanism. Unlike prior triple-row activation methods, DRA activates exactly two rows, triggering an analog charge-sharing process on the bit-line that is more reliable and easier to distinguish.

To process these signals, DRIM utilizes a Reconfigurable Sense Amplifier (SA). This component incorporates specialized inverters with shifted Voltage Transfer Characteristics (VTC): one acting as a low-threshold NOR gate and another as a high-threshold NAND gate. By combining their outputs, DRIM can produce XOR or XNOR results in a single memory cycle.

DRIM architecture showing the DRAM array, standard sense amplifier, and the proposed dual-contact DRAM cell (DCC).

Furthermore, DRIM employs Dual-Contact DRAM Cells (DCC) to facilitate hardware-friendly NOT operations. These cells can be accessed via both the bit-line and its complement, allowing for seamless inversion without complex logic overhead.

Integration of logic gates and latches within the sense amplifier to enable single-cycle bit-wise operations.

Key Insights

The fundamental breakthrough of DRIM lies in treating analog DRAM charge-sharing levels as precise digital inputs for specialized inverters. This approach eliminates the need for "RowClone" operations—copying data to temporary compute rows—which previously added significant latency. Simulations indicate that DRA is inherently more robust than triple-row activation; the larger voltage deviations on the bit-line allow for 0% error even under 10% process variation.

Performance Evaluation

The authors evaluated DRIM using circuit-level simulations (Cadence Spectre, 45nm PDK) and a custom benchmark suite for bulk operations on 16MB to 64MB vectors. Key results include:

  • Throughput: DRIM achieves 71× higher throughput than a standard CPU and 8.4× higher than a GPU for bulk X(N)OR operations.
  • Efficiency: Compared to the state-of-the-art Ambit platform, DRIM is 3.7× faster and 2.4× more energy-efficient.
  • System Impact: Energy consumption is reduced by 69× compared to traditional DDR4-based systems.
  • Overhead: These performance leaps require a modest 9.3% increase in area compared to commodity DRAM.

Limitations and Future Directions

Despite its advantages, DRIM faces challenges common to PIM architectures. Virtual memory coherence remains an issue, as the CPU may hold stale cached copies of data modified in-memory. Additionally, operands must be carefully mapped to the same bit-line to ensure spatial locality. Finally, because processing occurs inside the chip, standard memory-controller-based Error Correction Code (ECC) is bypassed. Future work will explore integrating ECC bits directly into DRAM rows to maintain data integrity during in-memory computation.

Summary updated

BibTeX
@misc{angizi2019accelerating,
  author = {Shaahin Angizi and Deliang Fan},
  title = {{Accelerating Bulk Bit-Wise X(N)OR Operation in Processing-in-DRAM Platform}},
  year = {2019},
  eprint = {1904.05782},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1904.05782},
}
Figure