[Paper Review] DRAM Bender: An Extensible and Versatile FPGA-based Infrastructure to Easily Test State-of-the-art DRAM Chips
DRAM Bender is an open-source, FPGA-based infrastructure that enables direct, low-level access to state-of-the-art DRAM chips through a flexible, extensible API. It allows researchers to issue arbitrary DRAM commands with fine-grained timing control, supports C++ and Python interfaces, and has been successfully ported to five FPGA boards with DDR3 and DDR4 support, enabling new insights into DRAM behavior including expanded RowHammer bit-flip detection.
To understand and improve DRAM performance, reliability, security and energy efficiency, prior works study characteristics of commodity DRAM chips. Unfortunately, state-of-the-art open source infrastructures capable of conducting such studies are obsolete, poorly supported, or difficult to use, or their inflexibility limit the types of studies they can conduct. We propose DRAM Bender, a new FPGA-based infrastructure that enables experimental studies on state-of-the-art DRAM chips. DRAM Bender offers three key features at the same time. First, DRAM Bender enables directly interfacing with a DRAM chip through its low-level interface. This allows users to issue DRAM commands in arbitrary order and with finer-grained time intervals compared to other open source infrastructures. Second, DRAM Bender exposes easy-to-use C++ and Python programming interfaces, allowing users to quickly and easily develop different types of DRAM experiments. Third, DRAM Bender is easily extensible. The modular design of DRAM Bender allows extending it to (i) support existing and emerging DRAM interfaces, and (ii) run on new commercial or custom FPGA boards with little effort. To demonstrate that DRAM Bender is a versatile infrastructure, we conduct three case studies, two of which lead to new observations about the DRAM RowHammer vulnerability. In particular, we show that data patterns supported by DRAM Bender uncovers a larger set of bit-flips on a victim row compared to the data patterns commonly used by prior work. We demonstrate the extensibility of DRAM Bender by implementing it on five different FPGAs with DDR4 and DDR3 support. DRAM Bender is freely and openly available at https://github.com/CMU-SAFARI/DRAM-Bender.
Motivation & Objective
- To address the limitations of existing open-source DRAM testing infrastructures, which are outdated, hard to use, or restrict low-level DRAM access.
- To enable researchers to conduct experimental studies on real DRAM chips with full control over command sequencing and timing.
- To provide a modular, extensible design that supports new DRAM interfaces and FPGA boards with minimal effort.
- To facilitate new discoveries in DRAM reliability, security, performance, and energy efficiency through direct hardware experimentation.
Proposed method
- Designing a modular FPGA-based infrastructure that directly exposes the DRAM chip's low-level interface to user programs.
- Implementing a non-restrictive C++ and Python API that allows arbitrary command ordering and sub-10 ns timing resolution.
- Using a layered hardware-software stack to abstract DRAM protocol details while preserving low-level control.
- Enabling support for multiple FPGA boards (Xilinx and Bittware) and DDR3/DDR4 interfaces through configurable, reusable components.
- Integrating a power measurement setup in progress using shunt resistors, high-precision current sensors, and multimeters.
- Designing for extensibility to support future DRAM interfaces like DDR5 and packetized 3D-stacked DRAMs.
Experimental results
Research questions
- RQ1Can a new open-source FPGA-based infrastructure enable direct, low-level access to modern DRAM chips with fine-grained timing control?
- RQ2What new insights into DRAM behavior, such as RowHammer bit-flips, can be uncovered using unrestricted command sequencing and data patterns?
- RQ3How easily can such an infrastructure be extended to support new DRAM interfaces (e.g., DDR5) and new FPGA platforms?
- RQ4To what extent does the infrastructure’s flexibility improve the discovery of undocumented DRAM behaviors compared to existing tools?
- RQ5Can the infrastructure be deployed and used effectively across diverse FPGA hardware platforms with minimal porting effort?
Key findings
- DRAM Bender enables arbitrary DRAM command sequencing with sub-10 ns timing resolution, surpassing the 10 ns minimum delay limitation of prior tools like LiteX RowHammer Tester.
- Using custom data patterns, DRAM Bender uncovers a larger set of RowHammer-induced bit-flips than previously reported, revealing previously undetected vulnerabilities.
- The infrastructure has been successfully ported to five different FPGA boards (two Xilinx and three Bittware), demonstrating strong hardware portability and extensibility.
- The modular design allows for easy integration of new DRAM interfaces and FPGA platforms with minimal code changes.
- A power measurement setup is under development, based on shunt resistors and high-precision sensors, to enable energy efficiency studies.
- The infrastructure supports both C++ and Python APIs, significantly improving usability and reducing development time for new experiments.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.