arXiv:2610.06475cs.AROct 2026

Manuscript Offprint

arXiv:2610.06475

Terracotta: Enabling the Adoption of New DRAM Techniques via a Flexible DRAM Interface and Memory Controller

Harsh Songara, Konstantinos Kanellopoulos, F. Nisa Bostancı, Konstantinos Marios Sgouras, Ataberk Olgun, İsmail Emir Yüksel, Andreas Kosmas Kakolyris, A. Giray Yağlıkçı, Onur Mutlu

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

Harsh Songara 1^{1} Konstantinos Kanellopoulos 1^{1} F. Nisa Bostanci 1^{1} Konstantinos Marios Sgouras 1^{1} Ataberk Olgun 1^{1} İsmail Emir Yüksel 1^{1} Andreas Kosmas Kakolyris 1^{1} A. Giray Yağlıkçı 2^{2} Onur Mutlu 1,3^{1,3}

1^{1}ETH Zürich 2^{2}CISPA 3^{3}New York University

DRAM is the dominant memory technology in modern systems, yet it continues to limit performance, energy efficiency, and system robustness. To mitigate such limitations, many prior works have proposed novel DRAM techniques that change how DRAM is operated to support in-DRAM computation, improve memory access latency and parallelism, and enhance DRAM maintenance and reliability. However, adopting these techniques one after another in current systems with rigid interfaces and memory controller hardware requires repeated and costly modifications to them, hindering the deployment of critical performance, energy efficiency, and robustness improvements.

Our goal is to reduce the repeated DRAM interface and memory controller modifications that hinder or slow down the deployment of diverse DRAM techniques. We observe that the DRAM commands and memory controller structures across several DRAM techniques are similar. Our key idea is to leverage these similarities to compose a set of primitives that DRAM vendors and system designers can use to implement a wide variety of DRAM techniques. To this end, we propose Terracotta, a new framework that consists of two flexible components: (i) custom command extensions that enable DRAM vendors to define new commands within a single, standardized interface, and (ii) a programmable memory controller that system designers can easily and flexibly program to support new DRAM techniques post-silicon fabrication. Together, these two components enable the deployment of new DRAM techniques via configuration of the memory controller rather than repeated interface and controller modifications.

We design Terracotta for a DDR5-based system and comprehensively evaluate its performance, energy, and hardware complexity. We draw three key findings. First, for four DRAM techniques from four distinct domains including processing-using-DRAM, low-cost DRAM maintenance, subarray-level parallelism, and latency reduction, Terracotta retains almost all of the performance benefits (>96%) that custom implementations provide over a baseline system without these techniques. Second, a Terracotta-based composition of two DRAM techniques from the domains of subarray-level parallelism and latency reduction outperforms the Terracotta-based implementations of the individual techniques, showing that Terracotta can enable system improvements by adding techniques without further interface and controller modifications. Third, Terracotta's flexibility incurs low DRAM energy overheads (0.6–3.2%) and low area and power overheads (0.03% and 0.56%, respectively) in a high-end server-grade processor. Terracotta's source code is freely available at https://github.com/CMU-SAFARI/Terracotta.

1. Introduction

Dynamic Random Access Memory (DRAM) [1,2] is the dominant main memory technology across a broad range of modern computing systems because of its high capacity and relatively low latency at low cost [3–7]. However, DRAM continues to limit system performance, energy efficiency, and robustness [3–51], a problem greatly exacerbated today due to the memory demand of emerging Artificial Intelligence (AI) and Machine Learning (ML) workloads [52–68]. To mitigate these limitations, many prior works propose DRAM techniques that change how DRAM is architected, operated, and managed in various novel ways [8–12,34–48,69–299]. These techniques (i) leverage DRAM's analog processing capability and massive parallelism across columns to enable processing-using-DRAM (PuD) [8–12,34,35,69–114], (ii) enable low-cost maintenance operations (e.g., read disturbance mitigation, refresh, memory scrubbing, and online error profiling) [36–47,115–275], (iii) expose DRAM's parallelism across subarrays to the host system [48,230–232,276,277], and (iv) reduce DRAM access latency [220,278–295].

Motivation. DRAM techniques typically require modifications to two parts of the system: (i) the DRAM interface [182] and (ii) the memory controller [4,300–306]. First, several DRAM techniques expose novel DRAM functionalities to the memory controller via new, non-standard DRAM commands [34,48,104–110,217–221,232–235,276,278,290–299], requiring modifications to the DRAM interface. Second, several DRAM techniques require memory controller hardware support to determine when to invoke and how to perform a DRAM technique [34–39,44,45,48,69–110,182–258,270–289,292–299].

The DRAM interface and controller modifications required by many DRAM techniques pose two deployment obstacles. First, implementing a DRAM technique that needs DRAM interface and memory controller support may require the development of a new DRAM standard [307–323]. This can be prohibitive because it requires agreement among all the stakeholders of the DRAM standard, such as DRAM vendors and system designers. These stakeholders may have conflicting goals, approaches, and interests [5,6,181,182], potentially hindering or slowing down the adoption of techniques that benefit a subset of stakeholders. Second, even if the stakeholders agree to support a DRAM technique in future computing systems, already-deployed systems cannot easily adopt it. Such systems remain in the field for several years [216,324–326] (or even decades for satellite [327,328] and space systems [329–339]). During this time, new DRAM techniques may become valuable.

and useful to help address the changing memory demands of various workloads [18,29,33,52,58–61,73,340,341], including fast-evolving ones like AI and ML. Together, these two obstacles hinder the adoption of new DRAM techniques. Both obstacles stem from the rigidity of current DRAM interfaces and memory controllers, whose supported commands and control logic are fixed at design time. Adopting techniques that require new commands and controller support therefore entails repeated and costly interface and controller modifications, depriving computing systems of performance and energy efficiency improvements and essential security features [6,40,43,182,215,216,342].

Our goal is to reduce the repeated interface and controller modifications that hinder or slow down the deployment of diverse DRAM techniques. Our analysis of 32 DRAM techniques [34–36,48,80–83,104,220–231,278–282,294–298] across seven different categories reveals that these techniques rely on similar command structures and memory controller workflows. Our key idea is to leverage these similarities to compose a set of primitives that DRAM vendors and system designers can independently use to implement a diverse set of DRAM techniques. To this end, we propose Terracotta, a new memory control framework that consists of two flexible components: (i) custom command extensions that enable DRAM vendors to independently define new commands within a single standardized interface extension, requiring only a one-time interface change instead of repeated DRAM interface changes, and (ii) a programmable memory controller that enables system designers to express memory controller support for new DRAM techniques post-silicon fabrication.

Custom command extensions. We observe that DRAM commands of various techniques have a common structure. We illustrate this using two examples. First, PRADA [104,105] introduces a partial row activation command, A*, that activates a row without performing sense amplification. Second, CROW [220] introduces a row copy command, ACT-c, that copies data from a source row to a destination row in DRAM. Both A* and ACT-c perform a DRAM operation in a specific DRAM locality (e.g., a specific bank) and operate on one or more operands (e.g., row addresses). Terracotta leverages the common structure in such commands to define three primitives: (i) operation type (e.g., partial row activation or row copy), (ii) target DRAM locality (e.g., a specific bank), and (iii) payload (e.g., row addresses). Terracotta uses these primitives to extend the DRAM interface through a one-time change that standardizes an encoding for custom commands. This encoding only defines the structural format (i.e., bit positions and widths) as a fixed agreement between system designers and DRAM vendors, separating structure from the functional meaning of each command. Terracotta's custom command extensions allow DRAM vendors to expose new DRAM functionalities autonomously, without further interface changes or explicit agreement among the stakeholders of the DRAM standard.

Programmable memory controller. Applying the same approach to the memory controller, we identify common controller workflows across different DRAM techniques. For instance, two existing DRAM techniques, ChargeCache [279] and CROW [220], reduce row activation latency by leveraging high DRAM cell charge in recently precharged and copied rows, respectively. Despite targeting different row types, both techniques require the memory controller to track eligible rows, check incoming requests against these rows, and perform reduced-latency operations when an incoming request targets an eligible row. Terracotta decomposes this common structure into four primitives: state, triggers, updates, and actions. First, state is the microarchitectural information the controller maintains for the operation of a DRAM technique (e.g., recently accessed rows). Second, a trigger fires a DRAM technique when a condition over the state and an incoming memory request is met (e.g., a read request targets a tracked row). Third, an update maintains the state based on the memory requests issued by the memory controller (e.g., inserting a row into a tracking table on an activation). Fourth, an action issues custom DRAM commands, if a technique needs them, by leveraging Terracotta's command extensions. Terracotta exposes programmatic control over these primitives, allowing system designers to implement new DRAM techniques post-silicon fabrication without modifying the memory controller.

Key benefits. Terracotta’s flexible framework allows both DRAM vendors and system designers to enjoy improvements in autonomy and collaboration in four ways. First, Terracotta enables DRAM vendors to unilaterally implement DRAM techniques that they (or their collaborators) see fit, without requiring approval from all the stakeholders of the DRAM standard. Second, Terracotta allows DRAM vendors and system designers to collaborate beyond the DRAM standard to come up with much-needed innovative solutions [5,6,8–11,40,181] to mitigate the limitations of modern DRAM-based systems. Third, both DRAM vendors and system designers can continue to maintain the proprietary nature of their designs. Fourth, system designers can freely choose among many DRAM chips that can implement different DRAM techniques, as performance, energy efficiency, and security needs change, enabling differentiation across different vendors. In turn, Terracotta’s flexibility can foster a more innovative ecosystem, enabling more rapid deployment of new techniques to computing systems, which would benefit end users.

Evaluation. We design Terracotta for a DDR5-based system [310,311] and evaluate it in two settings. First, we evaluate four techniques from four distinct domains: (i) PRADA [104, 105] (PuD, §8.1), (ii) MoPAC-C [221] (low-cost DRAM maintenance, §8.2), (iii) MASA [48] (subarray-level parallelism, §8.3), and (iv) ChargeCache [279] (latency reduction, §8.4). Second, we evaluate a composition of two different DRAM techniques: MASA [48] and ChargeCache [279].

We compare the performance and energy efficiency of each Terracotta-based implementation against (i) a conventional DRAM system and (ii) a dedicated custom implementation, using cycle-level simulations with Ramulator 2.0 [316–323], integrated with DRAMPower [343,344]. We make three key observations from our comprehensive evaluation. First, Terracotta-based implementations of the four techniques and the composi-tion of ChargeCache and MASA retain over 96% of their respective custom implementations' performance benefits over the baseline. Second, the Terracotta-based composition of ChargeCache and MASA outperforms the individual Terracotta-based implementations of ChargeCache and MASA, showing that Terracotta's flexibility can enable the benefits of multiple techniques without repeated modifications. Third, Terracotta's flexibility incurs a small DRAM energy consumption overhead of 3.2% for PRADA and <1% for MoPAC-C, MASA, and ChargeCache relative to their respective custom implementations.

Terracotta’s flexibility comes at low hardware complexity. Terracotta’s custom command encodings require no additional pins, leveraging existing reserved command encoding space in the DDR5 standard (§6.1). We synthesize Terracotta’s programmable memory controller at the RTL level using the OpenROAD flow [345] and the Nangate 45nm library [346], and scale it to 10nm using DeepScale [347]. Our results show that, relative to a high-end server-grade CPU [348], Terracotta incurs only 0.03% die area and 0.56% thermal design power (TDP) overheads on top of a design that provides custom memory controller support for the four DRAM techniques we evaluate. Terracotta’s DRAM-side decoding logic adds only 5 flip-flops and fewer than 24 gates to the DRAM center stripe.

In this work, we make the following contributions:

• We propose Terracotta, a new memory control framework that reduces the repeated modifications needed to adopt diverse DRAM techniques by introducing flexibility into the DRAM interface and memory controller.

• We introduce custom command extensions that extend the DRAM interface through a one-time change, decoupling the structural format of new commands from their functional meaning and allowing vendors to define new commands without further interface changes.

• We identify four fundamental memory controller primitives: state, triggers, updates, and actions, that capture the common operational workflows of DRAM techniques. We expose programmatic control over them, allowing system designers to deploy new techniques post-silicon fabrication.

• We design Terracotta for a DDR5-based system and show that it retains almost all of the performance benefits of custom implementations, composes multiple techniques, and incurs low hardware complexity and DRAM energy overheads over custom implementations.

We hope and expect that Terracotta will inspire academia and industry to develop and adopt innovative DRAM techniques and optimizations that unlock improvements in system performance, energy efficiency, and robustness. By helping reduce stagnation in technique adoption caused by prohibitive standardization processes and rigid interfaces and memory controllers, Terracotta can accelerate progress from new ideas to practical benefits. To this end, we make Terracotta freely available at https://github.com/CMU-SAFARI/Terracotta.

References (100)

Couldn't load all references. Reload the page to try again.