Skip to main content
QUICK REVIEW

[Paper Review] Computing in Memory with Spin-Transfer Torque Magnetic RAM

Shubham Jain, Ashish Ranjan|arXiv (Cornell University)|Mar 6, 2017
Advanced Data Storage TechnologiesComputer Science43 references6 citations
TL;DR

This paper proposes STT-CiM, a novel in-memory computing architecture using Spin-Transfer Torque Magnetic RAM (STT-MRAM) that enables direct computation within the memory array by simultaneously enabling multiple wordlines and sensing combined bitline currents to perform logic and arithmetic operations. The approach achieves up to 10.4x system performance speedup and 12.4x energy reduction by integrating ECC for error resilience and extending processor instruction sets and on-chip buses for seamless software integration.

ABSTRACT

In-memory computing is a promising approach to addressing the processor-memory data transfer bottleneck in computing systems. We propose Spin-Transfer Torque Compute-in-Memory (STT-CiM), a design for in-memory computing with Spin-Transfer Torque Magnetic RAM (STT-MRAM). The unique properties of spintronic memory allow multiple wordlines within an array to be simultaneously enabled, opening up the possibility of directly sensing functions of the values stored in multiple rows using a single access. We propose modifications to STT-MRAM peripheral circuits that leverage this principle to perform logic, arithmetic, and complex vector operations. We address the challenge of reliable in-memory computing under process variations by extending ECC schemes to detect and correct errors that occur during CiM operations. We also address the question of how STT-CiM should be integrated within a general-purpose computing system. To this end, we propose architectural enhancements to processor instruction sets and on-chip buses that enable STT-CiM to be utilized as a scratchpad memory. Finally, we present data mapping techniques to increase the effectiveness of STT-CiM. We evaluate STT-CiM using a device-to-architecture modeling framework, and integrate cycle-accurate models of STT-CiM with a commercial processor and on-chip bus (Nios II and Avalon from Intel). Our system-level evaluation shows that STT-CiM provides system-level performance improvements of 3.93x on average (upto 10.4x), and concurrently reduces memory system energy by 3.83x on average (upto 12.4x).

Motivation & Objective

  • Address the growing processor-memory data transfer bottleneck in modern computing systems.
  • Leverage the resistive nature of STT-MRAM to enable simultaneous multi-wordline access for in-memory computation.
  • Ensure reliable computation under process variations through extended ECC schemes for CiM-specific errors.
  • Integrate STT-CiM into a general-purpose processor system via instruction set and bus extensions.
  • Maximize effectiveness through optimized data mapping techniques in the memory hierarchy.

Proposed method

  • Enable multiple wordlines simultaneously in STT-MRAM arrays to connect multiple bit-cells to a single bitline, allowing collective sensing of combined currents.
  • Design enhanced sensing circuits with tunable reference currents to distinguish between different current sums and compute logic functions (OR, NOR, AND, NAND, XOR).
  • Extend Error Correction Code (ECC) schemes to detect and correct errors arising during in-memory computation, not just during read/write operations.
  • Propose architectural extensions to the Nios II processor, including new instructions and on-chip bus protocols, to expose CiM operations to software.
  • Integrate cycle-accurate STT-CiM models with the Nios II processor and Avalon bus for system-level evaluation.
  • Develop data mapping techniques to map frequently accessed data to STT-CiM for optimal performance and energy gains.

Experimental results

Research questions

  • RQ1Can STT-MRAM’s resistive bit-cell structure be exploited to perform in-memory logic and arithmetic operations via simultaneous multi-wordline activation?
  • RQ2How can error resilience be ensured during in-memory computation given the limited tunneling magneto-resistance and process variations in STT-MRAM?
  • RQ3What architectural extensions are required to integrate STT-CiM as a programmable scratchpad within a general-purpose processor system?
  • RQ4How effective are data mapping strategies in maximizing the performance and energy benefits of STT-CiM?
  • RQ5What are the end-to-end system-level performance and energy improvements achievable with STT-CiM in a real processor environment?

Key findings

  • STT-CiM achieves an average system-level performance speedup of 3.93x, with a peak speedup of 10.4x on tested workloads.
  • The architecture reduces memory system energy consumption by an average of 3.83x, with a maximum reduction of 12.4x compared to baseline systems.
  • Extended ECC schemes effectively detect and correct errors introduced during in-memory computation, improving reliability under process variations.
  • The integration of STT-CiM as a scratchpad via instruction set and bus extensions enables transparent software utilization of in-memory computation.
  • Optimal data mapping techniques significantly enhance the utilization of STT-CiM, maximizing performance and energy benefits.
  • The system-level evaluation using a cycle-accurate model of Nios II and Avalon bus confirms the practical viability and substantial gains of STT-CiM in real-world computing scenarios.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.