Towards Understanding the Bugs in Verilator, a Hardware Description Language Compiler
Songyan Jiang, Maolin Sun, Kang Chen, Qingyang Li, Yibiao Yang, Yuming Zhou
Key points
From the paper's conclusion- We manually collected, analyzed, and categorized a dataset of 488 confirmed bugs from the official repository over three years.
Abstract
Verilator is the premier open-source Hardware Description Language (HDL) compiler. It transforms Verilog and SystemVerilog designs into optimized C++ or SystemC models, enabling high-speed, cycle-accurate simulation prior to large-scale production. As a cornerstone of the hardware verification ecosystem, the correctness of Verilator is paramount; compiler faults can lead to silent simulation errors or unexpected failures, undermining the integrity of the hardware development lifecycle. Unlike traditional software compilers, HDL compilers manage unique concurrency and synthesis semantics, potentially introducing distinct bug patterns and complexities. However, while prior research has explored testing techniques for HDL toolchains, there remains a lack of systematic empirical studies characterizing the specific nature of bugs in Verilator. This knowledge gap hinders the development of targeted improvements in compiler robustness and testing strategies. To address this, we present the first comprehensive empirical study of Verilator bugs. We manually collected, analyzed, and categorized a dataset of 488 confirmed bugs from the official repository over three years. Our study investigates bug symptoms, root causes, and the characteristics of triggering test cases, while also evaluating the effectiveness of existing testing techniques. Based on our findings, we provide actionable guidance for developers to enhance Verilator's reliability and for researchers to design more effective automated testing methodologies for HDL compilers.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Fuzzing FPGA Synthesis and Simulation Tools via LLM-Generated Syntax-Valid HDL CodesProceedings of the ACM on Software Engineering · 2026
- Translation Validation of SystemVerilog-to-SystemC RTL Conversion by Reading the Generated C++arXiv · 2026
- HaVen-Agent: Enhancing Hallucination-Mitigated Verilog Code Generation Aligned with HDL Engineers through Code Repair and Multi-Agent OrchestrationACM Transactions on Design Automation of Electronic Systems · 2026
- BugGen 2.0: Rethinking the Roles of LLMs for Scalable RTL Bug SynthesisarXiv · 2026
- CPU-Eval: Evaluating Large Language Models for CPU Hardware Code GenerationarXiv · 2026
- Dictionary-Guided Mutation Operators for Automated HDL RepairarXiv · 2026