Terracotta: Enabling the Adoption of New DRAM Techniques via a Flexible DRAM Interface and Memory Controller
cs.AR, cs.CR, cs.DC
Submitted: 2026-10-05
Updated: 2026-10-06
Comments: Extended version of the MICRO 2026 paper
Code: https://github.com/CMU-SAFARI/Terracotta
Project page: https://tilos-ai-institute.github.io/MacroPlacement/Enablements/NanGate45
License: http://creativecommons.org/licenses/by/4.0/
The gist: DRAM continues to limit the performance, energy efficiency, and robustness of modern systems.
Abstract
DRAM continues to limit the performance, energy efficiency, and robustness of modern systems. Many prior works propose DRAM techniques that support in-DRAM computation, improve memory access latency and parallelism, and enhance DRAM maintenance and reliability. However, adopting each new technique requires repeated modifications to the rigid DRAM interface and memory controller, hindering its deployment. Our goal is to reduce these repeated modifications. We observe that the DRAM commands and memory controller structures of many DRAM techniques are similar. Our key idea is to use these similarities to compose a set of primitives for implementing diverse DRAM techniques. We propose Terracotta, a new framework with two flexible components: (i) custom command extensions that let DRAM vendors define new commands within a single, standardized interface, and (ii) a programmable memory controller that system designers can program to support new DRAM techniques post-silicon. Together, these enable deployment by configuring the memory controller instead of modifying the interface and controller. We design Terracotta for a DDR5-based system and evaluate its performance, energy, and hardware complexity. For four DRAM techniques from four distinct domains (processing-using-DRAM, low-cost DRAM maintenance, subarray-level parallelism, and latency reduction), Terracotta retains almost all of the performance benefits (>96%) of custom implementations. A Terracotta-based composition of two techniques outperforms the Terracotta-based implementation of each technique alone, demonstrating the benefits of adding techniques without repeated interface and controller modifications. Terracotta incurs low DRAM energy (0.6-3.2%), area (0.03%), and power (0.56%) overheads in a high-end server-grade processor. Terracotta's source code is freely available at https://github.com/CMU-SAFARI/Terracotta.
Sources
- A Case for Transparent Reliability in DRAM Systems
- A Modern Primer on Processing in Memory
- Simple DRAM and Virtual Memory Abstractions to Enable Highly Efficient Memory Systems
- PULSAR: Simultaneous Many-Row Activation for Reliable and High-Performance Computing in Off-the-Shelf DRAM Chips
- MVDRAM: Enabling GeMV Execution in Unmodified DRAM for Low-Bit LLM Acceleration
- The Processing Using Memory Paradigm:In-DRAM Bulk Copy, Initialization, Bitwise AND and OR
- In-DRAM Bulk Bitwise Execution Engine
- Security Analysis of the Silver Bullet Technique for RowHammer Prevention
- CODA: How to Mitigate ColumnDisturb for (Almost) Free?
- RogueRFM: Attacking Refresh Management for Covert-Channel and Denial-of-Service
- DSAC: Low-Cost RowHammer Mitigation Using In-DRAM Stochastic and Approximate Counting Algorithm
- From Fleet to Lab: Revisiting the Security and Complexity of Industrial Rowhammer Mitigation
- Building an Open CGRA Ecosystem for Agile Innovation
- DiscoRD: An Experimental Methodology for Quickly Discovering the Reliable Read Disturbance Threshold of Real DRAM Chips
- Self-Managing DRAM: A Low-Cost Framework for Enabling Autonomous and Efficient in-DRAM Operations
Related papers
- WitCert: Sound Runtime Risk Observability and Gating for KV-Cache Quantization
- Golden Ruler: A Numeric Format Catalog with Bit-Exact Conformance Vectors for FP8, BF16, MXFP4, and Microscaling Formats
- RFChipAgent: Multi-Agentic AI Flow for Analog/RF Chip Design
- PoisonCap: Efficient Hierarchical Temporal Safety for CHERI
- Provisioning to Runtime Optimization of a 100 MW-Scale AI Cluster
- Bit-Accurate Modeling of GPU Matrix Multiply-Accumulate Units: Demystifying Numerical Discrepancy and Accuracy