X-SRAM: Enabling In-Memory Boolean Computations in CMOS Static Random Access Memories

Amogh Agrawal, Akhilesh Jaiswal, Chankyu Lee, Kaushik Roy

TL;DR

X-SRAM transforms standard memory into a massively parallel logic engine by enabling bit-wise Boolean operations (NAND, NOR, XOR, IMP) directly within SRAM arrays. By eliminating the need to move data between the CPU and memory for basic computations, this architecture can reduce memory accesses by up to 75% for data-intensive tasks like AES encryption.

What Problem Does This Paper Address?

Traditional computing follows the von-Neumann architecture, where the processor and memory are physically separate. As we move into the era of Big Data, AI, and cryptography, we hit the "von-Neumann bottleneck": the energy and time required to shuttle data back and forth between the CPU and RAM often exceed the cost of the actual computation.

While "In-Memory Computing" (IMC) aims to solve this by performing logic inside the memory, standard 6-transistor (6T) SRAM cells are notoriously difficult to work with. Activating multiple rows at once in a 6T cell can cause "read disturb," accidentally flipping the bits you are trying to calculate with. This paper proposes using 8-transistor (8T) and 8+T differential cells to enable robust, high-speed vector logic without risking data integrity.

Methods

The authors introduce X-SRAM, an augmented memory design that uses the decoupled read/write ports of 8T and 8+T SRAM cells to perform logic. They propose three primary hardware mechanisms:

  1. Skewed Inverter Sensing (8T): By activating two rows simultaneously, the shared bit-line acts as a "wired-NOR." By using "skewed" inverters (inverters with specifically tuned switching thresholds) at the edge of the memory array, the system can distinguish between different discharge rates to perform NAND and NOR operations.
  2. Voltage Divider Scheme (8T): The read path is configured as a voltage divider. Depending on the bits stored in the two activated cells, the bit-line settles at a specific analog voltage. This allows for the implementation of the IMP (Implication) and XOR gates.
  3. Asymmetric Sense Amplifiers (8+T): For differential 8+T cells, the authors use sense amplifiers with intentionally mismatched transistor sizes. This "asymmetry" allows the amplifier to favor one state over another, effectively performing logic based on which side of the differential pair discharges faster.

The most novel addition is the Read-Compute-Store (RCS) scheme. This allows the result of a logic operation to be written back into a third row of the same memory array in a single cycle, without ever sending the data to the CPU or even latching it in peripheral circuits.

Datasets

The researchers evaluated their design using:

  • Predictive Technology Models (PTM): Standard 45nm CMOS transistor models used for SPICE circuit simulations.
  • AES (Advanced Encryption Standard): A real-world, data-intensive cryptographic algorithm used as a system-level benchmark to measure memory access savings.

Key Insights and Ideas

  • Isolation is Key: The move from 6T to 8T/8+T cells is the fundamental enabler. Because the read path is physically separate from the data storage node, you can activate multiple rows simultaneously without the "read disturb" issues that plague standard SRAM.
  • Exploiting Analog Effects for Digital Logic: The paper cleverly uses the analog discharge rates of bit-lines. A NAND gate is essentially just a "fast" discharge versus a "slow" discharge, which a tuned inverter can easily tell apart.
  • Universal Logic: By implementing IMP (Implication) and NAND, X-SRAM achieves functional completeness, meaning any complex Boolean function can theoretically be computed entirely within the memory.
  • The "In-Situ" Advantage: The RCS scheme is a major step forward. Most IMC proposals still require "reading" the result into a buffer before "writing" it back. X-SRAM does it all in one go, leveraging the two-port nature of the 8T cell.

Key Results

  • Memory Access Savings: In system-level simulations using an AES encryption workload on a Nios-II processor, X-SRAM reduced memory accesses by up to 75%.
  • Performance: The proposed operations are extremely fast, with latencies ranging from 1 to 3 nanoseconds.
  • Energy Efficiency: The average energy consumption per bit-wise operation was found to be between 11.22 fJ and 29.67 fJ, making it highly efficient for massive vector operations.
  • Robustness: Detailed Monte-Carlo simulations confirmed that the logic remains functional even in the presence of significant process, voltage, and temperature (PVT) variations.

Limitations and Future Work

  • Area Overhead: 8T and 8+T cells are physically larger than standard 6T cells. While the paper argues the area per bit is comparable due to layout efficiencies, a standard high-density 6T array will still be smaller.
  • Calibration Requirements: The NAND operation in the 8T skewed-inverter scheme has a narrower design margin. It requires precise timing and potentially one-time calibration to account for manufacturing differences between chips.
  • Voltage Constraints: The voltage divider scheme for IMP/XOR requires a specific pre-charge voltage ($V_{pre}$) and may require voltage boosting for the word-lines to ensure transistors have enough "overdrive" to function correctly.
  • Future Work: The authors suggest exploring these techniques in "beyond-CMOS" technologies like resistive RAM (RRAM) or magnetic RAM (MRAM) for even higher density.

Summary updated

BibTeX
@article{agrawal2018x,
  author = {Amogh Agrawal and Akhilesh Jaiswal and Chankyu Lee and Kaushik Roy},
  title = {{X-SRAM: Enabling In-Memory Boolean Computations in CMOS Static Random Access Memories}},
  journal = {IEEE Trans. Circuits Syst. I Regul. Pap.},
  year = {2018},
  doi = {10.1109/tcsi.2018.2848999},
}
Figure