Definition
Bayesian Network-Based Test Generation refers to a family of coverage-guided test-program generation techniques in which a Bayesian network is used as the probabilistic model that drives the selection and mutation of test stimuli. The Bayesian network encodes dependencies among test parameters and coverage feedback, allowing the generator to bias new tests toward parts of the design that remain uncovered.
Position in the Test-Generation Landscape
The approach belongs to the broader class of model-based test-generation methods, which historically separate the test generator from the architectural description of the design under test. Within that class, Bayesian-network-based generation is grouped together with:
- Constraint-solving approaches that propagate constraints among multiple instructions to maximize coverage.
- Coverage-guided approaches that incorporate a coverage model holding constraints describing execution paths of individual instructions.
- Other machine-learning-based techniques used for test generation.
- Fuzzing-based techniques that apply random mutation guided by coverage feedback.
Role in RISC-V Verification Literature
In the related-work discussion of RISC-V compliance testing, Bayesian-network-based coverage-guided test generation is cited as reference [10], representing one of several existing test-generation paradigms that pre-date the RISC-V-specific generators. It is listed alongside other machine-learning approaches (reference [11]) and fuzzing (reference [12]) as an established technique that motivates the design of newer, RISC-V-targeted negative-testing frameworks.
Characteristics
- Coverage-guided: Uses a feedback loop in which observed coverage statistics influence the Bayesian-network model used to propose subsequent test programs.
- Probabilistic: Bayesian networks encode conditional probability distributions over test parameters, which is well-suited to modeling the dependencies between instruction operands and architectural states.
- Architecture-independent at the algorithmic level: As with other model-based test generators, the Bayesian-network framework is decoupled from any specific ISA description.
Significance
Bayesian-network-based generation is significant because it brought machine-learning-driven, coverage-guided stimulus generation to hardware verification prior to the emergence of ISA-specific generators such as the RISC-V Torture Test generator and RISCV-DV. It is frequently cited as a baseline technique against which newer RISC-V-targeted negative-testing approaches are compared.