Verification foundations

Test Plan

A test plan defines what will be tested, how it will be tested, and what success looks like. It is the foundation for a focused verification effort.

Purpose of a Test Plan

  • Define verification scope: What features must be tested
  • Allocate resources: Team members, tools, time
  • Set success criteria: Coverage targets, quality metrics
  • Document approach: Testing strategies and methodologies
  • Track progress: Milestone and deliverables
  • Risk management: Identify and mitigate verification risks

Key Components of a Test Plan

1. Overview & Scope
  • Design being verified (name, version)
  • High-level features and functionality
  • Out-of-scope items (what won't be tested)
2. Verification Strategy
  • Verification methodologies to be used
  • Testing approaches (directed, random, formal, etc.)
  • Tool selection and environment
  • Simulation vs. formal vs. emulation approach
3. Feature Test List
  • All features to be tested
  • Test objectives for each feature
  • Coverage goals (code, functional)
  • Estimated effort per test
4. Coverage & Metrics
  • Code coverage targets (lines, branches, toggles)
  • Functional coverage points to measure
  • Sign-off criteria (e.g., 95% coverage required)
5. Resource Plan
  • Verification engineer headcount
  • Tools and licenses needed
  • Compute resources (simulation servers)
  • Timeline and milestones
6. Risk Analysis
  • High-risk areas that need focused testing
  • Complex features requiring special attention
  • Mitigation strategies
7. Sign-Off Criteria
  • Minimum coverage thresholds
  • All critical bugs must be fixed
  • Regression test suite must pass
  • Documentation complete

Example: Simple Test Plan Structure

TEST PLAN: FIFO Controller Verification

1. SCOPE
   - Verify 32x8 FIFO Controller
   - Write/Read operations
   - Full/Empty/Half-Full conditions
   - Reset behavior

2. VERIFICATION STRATEGY
   - Directed tests for basic operations
   - Constrained-random tests for stress
   - Coverage-driven verification
   - Assertion-based checking

3. FEATURE TEST LIST
   - Basic write operation (directed test)
   - Basic read operation (directed test)
   - Full condition handling (directed + random)
   - Empty condition handling (directed + random)
   - Overflow/Underflow prevention (directed)
   - Concurrent read-write (random)
   - Reset during operation (random)

4. COVERAGE TARGETS
   - Code coverage: >95% lines
   - Branch coverage: >90%
   - Functional coverage: All features 100%

5. RESOURCE PLAN
   - 1 verification engineer (3 weeks)
   - ModelSim/VCS simulator
   - UVM verification framework

6. SIGN-OFF CRITERIA
   - Coverage >95%
   - All tests passing
   - 0 critical bugs
   - Verification report approved

Test Plan Best Practices

  • Be specific: List exact features and test objectives
  • Set realistic targets: Coverage goals should be achievable
  • Identify risks early: Highlight complex or high-risk areas
  • Plan for iteration: Budget time for gap closure
  • Track against plan: Monitor progress weekly
  • Update regularly: Revise as understanding of design improves
  • Communicate: Ensure team alignment on goals