Synthesizing Formal Models of Hardware from RTL for Efficient Verification of Memory Model Implementations
Yao Hsiao, Dominic P. Mulligan, Nikos Nikoleris, Gustavo Petri, Caroline Trippel
Abstract
Modern hardware complexity makes it challenging to determine if a given microarchitecture adheres to a particular memory consistency model (or MCM). This observation inspired the Check tools, which formally check that a specific microarchitecture correctly implements an MCM with respect to a suite of litmus test programs. Unfortunately, despite their effectiveness and efficiency the Check tools must be supplied a microarchitecture in the guise of a manually constructed axiomatic specification, called a 𝜇spec model.
To facilitate MCM verification-and enable the Check tools to consume processor RTL directly-we introduce a methodology and associated tool, rtl2𝜇spec, for automatically synthesizing 𝜇spec models from microprocessor designs written in Verilog, with the help of modest user-provided design metadata. As a case study, we use rtl2𝜇spec to facilitate the Check-based verification of the four-core RISC-V V-scale (or multi-V-scale) processor's MCM implementation. We show that rtl2𝜇spec can synthesize a complete, and proven correct by construction, 𝜇spec model from the Verilog design of the multi-V-scale processor in 6.90 minutes. Subsequent Check-based MCM verification of the synthesized 𝜇spec model takes less than one second per litmus test.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
7 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Control Logic Synthesis: Drawing the Rest of the OWL cites Pensieve: Microarchitectural Modeling for Security Evaluation
- Pensieve: Microarchitectural Modeling for Security Evaluation cites Axiomatic hardware-software contracts for security
Cited by top-tier papers7
- Axiomatic hardware-software contracts for securityNicholas Mosier, Hanna Lachnitt, Hamed Nemati, Caroline TrippelISCA 2022 · 26 citations
- Pensieve: Microarchitectural Modeling for Security EvaluationYuheng Yang, Thomas Bourgeat, Stella Lau, Mengjia YanISCA 2023 · 23 citations
- RTL2MμPATH: Multi-μPATH Synthesis with Applications to Hardware Security VerificationYao Hsiao, Nikos Nikoleris, Artem Khyzha, Dominic P. Mulligan et al.MICRO 2024 · 12 citations
- AutoCAT: Reinforcement Learning for Automated Exploration of Cache-Timing AttacksMulong Luo, Wenjie Xiong, Geunbae Lee, Yueying Li et al.HPCA 2023 · 3 citations
- Control Logic Synthesis: Drawing the Rest of the OWLZachary D. Sisco, Andrew David Alex, Zechen Ma, Yeganeh Aghamohammadi et al.ASPLOS 2024 · 2 citations
Builds on2
- TransForm: Formally Specifying Transistency Models and Synthesizing Enhanced Litmus TestsNaorin Hossain, Caroline Trippel, Margaret MartonosiISCA 2020 · 9 citations
- PerpLE: Improving the Speed and Effectiveness of Memory Consistency TestingThemis Melissaris, Markos Markakis, Kelly A. Shaw, Margaret MartonosiMICRO 2020 · 3 citations
Related papers
- PipeSynth: Automated Synthesis of Microarchitectural Axioms for Memory ConsistencyChase Norman, Adwait Godbole, Yatin A. ManerkarASPLOS 2023 · 4 citations
- HeteroGen: Automatic Synthesis of Heterogeneous Cache Coherence ProtocolsNicolai Oswald, Vijay Nagarajan, Daniel J. Sorin, Vasilis Gavrielatos et al.HPCA 2022 · 15 citations
- QED: Scalable Consistency Verification of Memory Instruction Reordering in HardwareGokulan Ravi, Xiaokang Qiu, Mithuna Thottethodi, T. N. VijaykumarISCA 2026 · 1 citation
- CAAT: consistency as a theoryThomas Haas, Roland Meyer, Hernán Ponce de LeónOOPSLA 2022 · 11 citations
- HMC: Model Checking for Hardware Memory ModelsMichalis Kokologiannakis, Viktor VafeiadisASPLOS 2020 · 29 citations
