Efficient Reachability Checking using Sequential SAT - PowerPoint PPT Presentation

1 / 25
About This Presentation
Title:

Efficient Reachability Checking using Sequential SAT

Description:

G. Parthasarathy, M. K. Iyer, K.-T.Cheng, Li. C. Wang Department of ECE University of California Santa Barbara – PowerPoint PPT presentation

Number of Views:68
Avg rating:3.0/5.0
Slides: 26
Provided by: Carla240
Category:

less

Transcript and Presenter's Notes

Title: Efficient Reachability Checking using Sequential SAT


1
Efficient Reachability Checking using Sequential
SAT
  • G. Parthasarathy, M. K. Iyer, K.-T.Cheng, Li. C.
    Wang
  • Department of ECE
  • University of California Santa Barbara

2
Motivation
  • Satisfiability in sequential circuits very
    important
  • Applications to Reachability Analysis, model
    checking and ATPG
  • Seen resurgence in SAT with recent advances
  • C-SAT, BerkMin, Zchaff, Grasp, etc ..
  • Similar performance benefits can be derived for
    search in a sequential space
  • Sequential SAT has been proposed
  • How does this perform versus current methods for
    reachability checking ?

3
Outline
  • Sequential SAT
  • Search Strategies in Sequential SAT
  • Efficient State Caching
  • Reachability Checking with sequential SAT
  • Experimental Results
  • Comparison with BDDs
  • Comparison with BMC
  • Conclusions

4
ATPG Formulation of Circuit Justification
  • Typically X-Path based
  • Decision points are subset of Primary inputs and
    internal signals eg. FANs headlines
  • Nodes on justification frontier are justified
    one-by-one

J-frontier e Select J-node e Satisfy
J-node 1st x-pathc,a select a
0 Implications c0, d1, e0 J-node
satisfied Is J-frontier empty yes DONE
Solution a,b 0,X
J-frontier
5
The Most Effective SAT Solvers
  • Backtrack search
  • Boolean constraint propagation
  • Reasonable branching heuristic
  • Clause recording
  • Non-chronological backtracking
  • Search strategies
  • Restarts / Random backtracking
  • Efficient data structures
  • E.g. head/tail lists watched literals literal
    sifting
  • Examples BerkMin Chaff SATO rel_sat GRASP

6
Structural Search v/s Pure SAT
Feature SAT Structural Advantage
1 Conflict-based Learning Yes Minimal SAT
2 Eff. Implications Yes No SAT
3 Structural Information Min Yes Structural
4 Algorithm Complexity Low High SAT
5 Decision Ordering Heuristic Prob Struct/SAT (sat/unsat)
6 Size of SAT Assignments High Low Structural
  • Iyer et. al. , SATORI A Fast sequential SAT
    solver for circuits, ICCAD 2003

7
Sequential SAT SATORI
  • Based on implicit time frame (TF) expansion
  • For each TF, a combinational solver is used to
    find a solution
  • includes heuristics to minimize the number of
    state variables with value assignment using
    3-valued logic
  • Maximize size of these sets
  • The state part of solution further justified in
    prior TF
  • A conflict clause corresponding to the state
    part of the solution is added
  • Prevents reaching the same state again in search
  • Efficient state caching and retrieval
  • Is complete
  • Given enough time, will return a solution if one
    exists
  • Otherwise will certify that no solution exists

8
Sequential Search
1 Time Frame
Primary Inputs
Present State
Previous State
Register
Register
Primary Outputs
9
3-Valued Search DFS or BFS
Obj1
frame0
Illegal State
Legal State
10
State Cache internals
  • State cubes are stored as state avoiding clauses
  • State cube
  • s0,s1,..,sn 1,0,X,X,..,1 is stored as
  • (s0 s1 sn )
  • Imply new state cubes on the state cache
  • Conflicting cubes in the cache under the current
    assignments are covers
  • Smallest covers will conflict first
  • Eg Let new cube be s0,s1,..,sn
    1,0,1,X,..1,1
  • We find implications of this assignment on state
    cache
  • Old cube (s0 s1 sn) conflicts since it
    evaluates to FALSE

11
SATORI Assignment Reduction
12
Reachability Checking
  • Set values of 0/1 on all lines in ISCAS89 ckts
  • Check whether values are satisfiable from initial
    state
  • Compare with state-of-art commercial ATPG engine
  • No fault propagation
  • Even comparison

13
Effect of Path-Tracing
14
Assignment Reduction State Cubes
State Cube Comparisons
15
Reachability Checking
16
Reachability Checking
17
Safety property checking
  • Sequential SAT in BFS mode does pre-image
    computation
  • Check safety properties using pre-image
    computation
  • Test-cases drawn from VIS distribution
  • Sequential SAT uses a modified Buchi Automaton
  • Automaton goes to a Trap state when a
    counter-example is found
  • Automaton restricts search space to valid space
    for counter-examples
  • Effectively guides the search for a
    counter-example.
  • Compare with VIS 2.0 (BDD based)

18
BDDs v/s SATORI Pre-Image Computation
19
BDDs v/s SATORI with Image Computation
20
Best Strategy Times BDDs v/s SATORI
21
State space exploration
22
True Properties VIS-BDDs v/s SATORI
23
False Properties VIS-BDDs, BMC SATORI
24
Performance on Selected false properties
25
In Summary
  • Sequential SAT is complete
  • One can do efficient reachability checking using
    sequential SAT
  • Competes with BDDs for property checking
  • Comparative performance is good
  • Efficiency can be improved through improved
    search order
Write a Comment
User Comments (0)
About PowerShow.com