Verification guide
Verification guide
Verification Methodologies
Methodologies define strategies for validating that a design meets its specifications. Choose and combine approaches to match the design and verification goals.
Directed Testing (Explicit Testcases)
Description: Engineers manually write specific testcases to verify known scenarios and features.
Characteristics:
- Testcases written for specific design features
- Engineer has full control over stimulus
- Good for testing known corner cases
- Predictable and easy to debug
Advantages:
- Simple to write and understand
- Targets specific functionality
- Good debugging when issues found
Disadvantages:
- Difficult to find unexpected bugs
- Requires detailed knowledge of design
- Time-consuming to write many testcases
- May not cover corner cases
Constrained-Random Testing (CRT)
Description: Automated test generators create random stimulus within specified constraints, allowing exploration of many scenarios automatically.
Characteristics:
- Randomness with constraints (valid input ranges)
- Automatically generates many test variations
- Can find unexpected corner cases
- Requires coverage metrics to guide testing
Advantages:
- Discovers unexpected bugs
- Covers many scenarios automatically
- Reduces manual testcase writing
- Efficient for complex designs
Disadvantages:
- Harder to debug failing tests
- Requires good constraint setup
- May generate redundant tests
Coverage-Driven Verification (CDV)
Description: Uses coverage metrics to identify untested areas and automatically generates tests to close coverage gaps.
Characteristics:
- Measures what has been exercised (code, functional coverage)
- Identifies gaps in verification
- Iteratively generates tests to improve coverage
- Driven by metrics, not manual effort
Key Coverage Types:
- Code Coverage: Line, branch, toggle coverage
- Functional Coverage: Feature-specific coverage (user-defined)
Advantages:
- Ensures completeness of verification
- Objective metric for sign-off
- Finds corner cases automatically
Assertion-Based Verification (ABV)
Description: Uses assertions (formal properties) to continuously check design properties and protocols during simulation or formal verification.
Characteristics:
- Assertions check design properties every cycle
- Can be checked during simulation or formal proof
- Catches violations immediately
- Documents design intent and protocols
Assertion Types:
- Temporal Assertions: Check sequences over time
- Protocol Assertions: Verify bus protocol compliance
- State Assertions: Check design state consistency
Advantages:
- Early bug detection
- Continuous property checking
- Reduces manual debugging
- Can be reused in formal verification
Methodology Comparison
| Methodology | Automation | Bug Discovery | Effort | Best For |
|---|---|---|---|---|
| Directed Testing | Manual | Known bugs | High | Known features |
| CRT | Automated | Unknown bugs | Medium | Corner cases |
| CDV | Automated | Very good | Medium | Complete verification |
| ABV | Continuous | Protocol issues | Medium | Protocol compliance |
Recommended Approach
Modern verification typically combines all four methodologies:
- Use directed tests for critical features
- Use CRT to find corner cases
- Use CDV to guide testing and measure completeness
- Use ABV to continuously check properties