1 hybrid-formal coverage convergence dan benua synopsys verification group january 18, 2010

17
1 Hybrid-Formal Coverage Convergence Dan Benua Synopsys Verification Group January 18, 2010

Upload: millicent-bradley

Post on 03-Jan-2016

217 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: 1 Hybrid-Formal Coverage Convergence Dan Benua Synopsys Verification Group January 18, 2010

1

Hybrid-Formal Coverage Convergence

Dan BenuaSynopsys Verification Group

January 18, 2010

Page 2: 1 Hybrid-Formal Coverage Convergence Dan Benua Synopsys Verification Group January 18, 2010

2

• Formal and Hybrid methods typically employed in property checking can also be leveraged to attack coverage convergence problems.

• The Synopsys Magellan hybrid-formal tool has supported coverage convergence on production designs for several years.

• This talk will briefly review the technology and methodology considerations for this application.

• Hybrid formal technology is distinct from the automation of stimulus coverage closure used in simulation. (e.g. “Echo” feature in VCS)

Abstract

Page 3: 1 Hybrid-Formal Coverage Convergence Dan Benua Synopsys Verification Group January 18, 2010

3

• Coverage Convergence & FPV

• The Problem of Constraints

• Handling Capacity Issues

• Hybrid-Formal Coverage Methodology

• Benefits & Limitations

• Future Directions

Agenda

Page 4: 1 Hybrid-Formal Coverage Convergence Dan Benua Synopsys Verification Group January 18, 2010

4

Traditional Coverage Convergence Methodology

TimeTime

100% 100%

Constraint Random testsConstraint Random tests

co

vera

ge

co

vera

ge Directed tests

(manual effort)

• Constrained random simulation saturates @ ~ 70%

• Remaining few percent take lot of effort and time

• No knowledge if the remaining targets are coverable

Page 5: 1 Hybrid-Formal Coverage Convergence Dan Benua Synopsys Verification Group January 18, 2010

5

Improving Convergence with Hybrid-Formal Techniques

TimeTime

100% 100%

Constraint Random testsConstraint Random tests

co

vera

ge

co

vera

ge

Formal Coverage ConvergenceFormal Coverage Convergence

100% 100% Unreachable Targets

Directed tests (manual effort)

• Formal analysis identifies unreachable coverage targets

• Hybrid search improves automatic stimulus generation

Page 6: 1 Hybrid-Formal Coverage Convergence Dan Benua Synopsys Verification Group January 18, 2010

6

• Formal Analysis of Safety Properties– For each assertion:

• “Does a legal path exist from a reset state to a property failure state?”

• Coverage Closure– For each coverage target:

• “Does a legal path exist from a reset state to a state satisfying the coverage target?”

Finding Paths Through the State Spaceof the DUV & Environment

Page 7: 1 Hybrid-Formal Coverage Convergence Dan Benua Synopsys Verification Group January 18, 2010

7

State Space View

Initial State

Target State

DUV + Env State Space

If no path exists, targetstate is “Unreachable”

Page 8: 1 Hybrid-Formal Coverage Convergence Dan Benua Synopsys Verification Group January 18, 2010

8

• Formal vs. Simulation environment– Behavioural models not synthesizable– Declarative vs Procedural representation– cycle vs event semantics

• Capacity Issues– Number of Coverage Targets

• Functional (Covergroups, Cover Properties)• Structural (line, condition, FSM, toggle…)

– Trace Depth• Number of cycles from an initial state to a goal state reaching each

coverage target

Formal method coverage closure: Challenges

System level test environments …1.Contain abstractions which can’t be synthesized into Finite state automata needed by pure formal solutions.2.Often exceed model-checking algorithm capacity.

Page 9: 1 Hybrid-Formal Coverage Convergence Dan Benua Synopsys Verification Group January 18, 2010

9

• Finds paths to goal states that consist of some random simulation cycles and some cycles calculated by formal engines.

• Sacrifices exhaustive search in exchange for better capacity and performance.

What is Hybrid Search?

Page 10: 1 Hybrid-Formal Coverage Convergence Dan Benua Synopsys Verification Group January 18, 2010

10

Hybrid Search Illustrated

Initial State

Target State

DUV + Env State Space

Hybrid Trace:Dynamic + Formal

Page 11: 1 Hybrid-Formal Coverage Convergence Dan Benua Synopsys Verification Group January 18, 2010

11

• Block Level – < 10M gates, < 100K Coverage targets– Unreachable analysis can handle larger

circuits (w/ approximation)

• Synthesizable DUT – With extensions, E.g. SVA, XMR, Monitors

• Formal-compatible constraints– SVA /PSL+ RTL modeling code– Constraint solver for stimulus generation– Good leverage with FPV flow

Methodology Fit

Page 12: 1 Hybrid-Formal Coverage Convergence Dan Benua Synopsys Verification Group January 18, 2010

12

1. Tool instruments design to select desired functional and structural coverage targets.

2. Run unreachability analysis without constraints to detect “uncoverable” targets.

3. Create and validate formal-compatible constraint environment.

4. Run constrained random simulation to hit “easy” coverage targets

5. Run hybrid search algorithm to find remaining “hard” reachable coverage targets

6. Merge coverage results from “hard”, “easy”, and “uncoverable” runs.

Practical Implementation of Hybrid-Formal Coverage Convergence

Page 13: 1 Hybrid-Formal Coverage Convergence Dan Benua Synopsys Verification Group January 18, 2010

13

• Automated convergence, within the limits of tool capacity

• No conventional testbench required, but testbench monitors may be reused

• Coverage metrics measured in familiar simulation context

• Easy to parallelize on server farms

Benefits of Hybrid Convergence

Page 14: 1 Hybrid-Formal Coverage Convergence Dan Benua Synopsys Verification Group January 18, 2010

14

• Non-exhaustive, some targets may remain “uncovered”

• Uses cycle-based semantics

• Large compute resource requirements and potentially long runtimes

• Requires caution when merging coverage from distinct environments

Limitations

Page 15: 1 Hybrid-Formal Coverage Convergence Dan Benua Synopsys Verification Group January 18, 2010

15

• More flow automation for hybrid solutions

• Multi-core, multi-processor servers for performance/capacity increases

• Standardization of coverage databases, including formal (Accellera UCIS Technical Committee)

• Continued research on testbench-based coverage closure automation

The Future

Page 16: 1 Hybrid-Formal Coverage Convergence Dan Benua Synopsys Verification Group January 18, 2010

16

• Hybrid-Formal techniques address a sub-set of the general problem of coverage closure

• Multiple users are seeing benefits from this technology when combined with FPV and conventional CR testbench methods

Conclusion

Page 17: 1 Hybrid-Formal Coverage Convergence Dan Benua Synopsys Verification Group January 18, 2010

17

Q&A