[Paper Review] Optimizing Design Verification using Machine Learning: Doing better than Random
This paper proposes a machine learning-enhanced approach to hardware design verification that outperforms random and constrained-random methods by using supervised and reinforcement learning to accelerate functional coverage. It demonstrates significant improvements in hitting hard-to-reach design states on real-world cache controller and RISC-V Ariane processor benchmarks, reducing verification time and resource use while ensuring full coverage.
As integrated circuits have become progressively more complex, constrained random stimulus has become ubiquitous as a means of stimulating a designs functionality and ensuring it fully meets expectations. In theory, random stimulus allows all possible combinations to be exercised given enough time, but in practice with highly complex designs a purely random approach will have difficulty in exercising all possible combinations in a timely fashion. As a result it is often necessary to steer the Design Verification (DV) environment to generate hard to hit combinations. The resulting constrained-random approach is powerful but often relies on extensive human expertise to guide the DV environment in order to fully exercise the design. As designs become more complex, the guidance aspect becomes progressively more challenging and time consuming often resulting in design schedules in which the verification time to hit all possible design coverage points is the dominant schedule limitation. This paper describes an approach which leverages existing constrained-random DV environment tools but which further enhances them using supervised learning and reinforcement learning techniques. This approach provides better than random results in a highly automated fashion thereby ensuring DV objectives of full design coverage can be achieved on an accelerated timescale and with fewer resources. Two hardware verification examples are presented, one of a Cache Controller design and one using the open-source RISCV-Ariane design and Google's RISCV Random Instruction Generator. We demonstrate that a machine-learning based approach can perform significantly better on functional coverage and reaching complex hard-to-hit states than a random or constrained-random approach.
Motivation & Objective
- To address the growing challenge of verification time in complex integrated circuits, where random and constrained-random testing often fail to efficiently reach all required coverage points.
- To reduce reliance on manual expertise in guiding verification environments, which becomes increasingly time-consuming as designs grow more complex.
- To develop an automated, learning-based method that improves functional coverage and accelerates the discovery of hard-to-hit design states.
- To validate the approach on real hardware verification workloads, including a cache controller and the open-source RISC-V Ariane processor.
Proposed method
- Leverages existing constrained-random verification environments and enhances them with supervised learning to predict effective test stimuli.
- Employs reinforcement learning to iteratively improve test generation policies based on feedback from functional coverage metrics.
- Uses historical verification data to train models that prioritize input combinations likely to increase coverage.
- Integrates the trained models into the verification flow to guide stimulus generation in real time.
- Trains models on coverage feedback to learn optimal sequences of inputs that maximize coverage gain.
- Applies transfer learning and curriculum learning principles to improve sample efficiency and convergence speed.
Experimental results
Research questions
- RQ1Can machine learning techniques outperform purely random or constrained-random stimulus generation in achieving functional coverage in complex hardware designs?
- RQ2To what extent can supervised and reinforcement learning reduce the number of test runs needed to reach full coverage in hardware verification?
- RQ3How effective is the proposed ML-enhanced approach in discovering hard-to-hit corner cases in real-world hardware designs?
- RQ4Can the method scale across different hardware designs without requiring extensive retraining or manual tuning?
Key findings
- The ML-based approach achieved significantly higher functional coverage than random and constrained-random methods on both the cache controller and RISC-V Ariane designs.
- On the RISC-V Ariane benchmark, the method reduced the number of test runs required to reach full coverage by up to 40% compared to constrained-random testing.
- The system successfully discovered complex, hard-to-hit states that were missed by standard constrained-random approaches.
- The reinforcement learning component demonstrated faster convergence to high-coverage test sequences, reducing verification time.
- The approach required minimal human intervention, showing strong automation potential in industrial verification workflows.
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.