BOOMerang: Autonomous Translation from RTL to Microarchitectural Simulators and Back
Ferran Hermida-Rivera, Jack Toubes, Angela Cui, Chengyi Lux Zhang, Sagar Karandikar
Abstract
High-level simulators like gem5 are often used to test and demonstrate novel architectural techniques. While these simulators provide high research productivity, they generally lack the means to provide detailed feedback on the realizability of a hardware design. Furthermore, these simulators can frequently fall out-of-sync with the detailed performance characteristics of real hardware designs, which is usually the responsibility of dedicated engineers/teams in industry. While RTL implementation can address these challenges, it can be even more difficult to translate simulator code to high-quality RTL by hand without a large team. In this work, we architect and evaluate agentic loops that automate both parts of the RTL vs. high-level simulator workflow that is critical to high-quality architecture research. Our loops (1) automatically generate accurate high-level models of RTL implementations of CPU designs (BOOM) in a battle-tested microarchitecture simulation framework (gem5) and (2) automatically translate new microarchitectural features implemented in the high-level simulator back to RTL faithfully. Targeting the first loop at autonomously building a gem5 model for the Berkeley Out-of-Order Machine (BOOM) core, we generate a simulator with IPC within 3% of the RTL, meeting targets pursued for simulators in industry, in only 2 days. We use our second loop to automatically translate 72 features from this aligned gem5 simulator into RTL in the BOOM core, while maintaining its low IPC error. Combining translated optimizations together yields a 25% performance improvement for the BOOM core RTL implementation in SPECint 2017, demonstrating that having these loops for moving between high-level simulation and RTL enables actual improvement of processor performance. The agentic loops we developed and the simulators and RTL we generated will be available in open-source.
Create a lesson
Related papers
Specification-Grounded Adaptive Triage and Formal Invariant Exclusion Synthesis for Autonomous Silicon Coverage Closure
Shared title terminology · Veni Mohan
From Seed to BLOOM: Autonomously Growing a Better Out-of-Order Core
Shared title terminology · Angela Cui, Ferran Hermida-Rivera, Jack Toubes et al.
FoldSim: Scaling Cycle-Exact RTL Simulation with Hierarchical Folding and Static Scheduling
Shared title terminology · Chengxuan Wang, Nikhil Rout, Yang-gon Kim et al.
ReLay: Bidirectional Layout-Code Translation and Library Evolution for Reusable and Process-Portable Analog Design
Shared title terminology · Minxing Chu, Quan Cheng, Anhang Li et al.
MicroAssert: Microarchitecture-Aware Structured Assertion Generation for CPU Verification
Shared title terminology · Hongqin Lyu, Yonghao Wang, Zhiteng Chao et al.
KD-DSE: A Knowledge-Driven LLM Framework for Fast Microarchitecture Design Space Exploration
Shared title terminology · Siqing Fu, Xin Liu, Yuhan Tang et al.