Download presentation
Presentation is loading. Please wait.
1
5/6/2004J.-H. R. Jiang1 Functional Dependency for Verification Reduction & Logic Minimization EE290N, Spring 2004
2
5/6/2004J.-H. R. Jiang 2 Outline Motivations Previous work Our formulation Experimental results Conclusions
3
5/6/2004J.-H. R. Jiang 3 Outline Motivations Previous work Our formulation Experimental results Conclusions
4
5/6/2004J.-H. R. Jiang 4 Motivations Logic synthesis of state transition systems Remove “redundant” registers using functional dependency Formal verification of state transition systems Reduce state space and compact BDD representations by removing dependent state variables
5
5/6/2004J.-H. R. Jiang 5 Outline Motivations Previous work Functional dependency Signal correspondence Our formulation Experimental results Conclusions
6
5/6/2004J.-H. R. Jiang 6 Previous work “Functional” dependency in state transition systems Problem formulation Given a characteristic function F(x 1,x 2, …, x n ), compute a minimal set of irredundant (independent) variables Variable x i is redundant if it can be replaced with a function over other variables Solution – functional deduction Variable x i is redundant if and only if F| x i = 0 Æ F| x i = 1 = false Example F = abc Ç : a : c Minimal independent sets: {a, b}, {b, c} with dependency functions c := a, a := c, respectively
7
5/6/2004J.-H. R. Jiang 7 Previous work Applications of functional dependency Synthesis Register minimization in hardware synthesis from HDL Verification Minimization of BDDs of reached state sets Embed detection of functional dependency inside reachability analysis as an on-the-fly reduction Weakness Need to perform reachability analysis to derive functional dependency (for applying functional deduction)
8
5/6/2004J.-H. R. Jiang 8 Unsolved problem How to detect functional dependency without or before computing reached state sets ?
9
5/6/2004J.-H. R. Jiang 9 Previous work Signal correspondence Problem formulation A signal correspondence C µ s £ s is an equivalence relation (in reachable state subspace) on the set s of state variables ( This definition includes only identical functions, it can be extended to also include complemented functions) An effective solution Compute the equivalence relation by iterative refinement of state variables Valid for an over-approximated reachable space Application of detecting signal correspondence Make sequential equivalence checking more like combinational equivalence checking Detect equivalent state variables
10
5/6/2004J.-H. R. Jiang 10 Example (219B) s1s1 1 1 1 1 1 s2s2 s3s3 s4s4 s5s5 s 1 =1 s 2 =1 s 3 =1 s 4 =1 s 5 =1 v s 1 = x v s 4 = x v v1v1 s 2 = v s 3 = v s 5 = v v2v2 s 1 = x v 1 s 4 = x v 1 v1v1 s 2 = v 1 v 2 ) s 3 = v 1 v 2 ) s 5 = v 1 v 2 ) v2v2 Result: {s 1,s 4 } {s 2,s 3,s 5 } Instead of using constraint, use fresh variable for each class
11
5/6/2004J.-H. R. Jiang 11 Previous work Weakness Signal correspondence is a very limited form of functional dependency
12
5/6/2004J.-H. R. Jiang 12 Unsolved problem How to characterize a more general form of functional dependency by fixed-point computation?
13
5/6/2004J.-H. R. Jiang 13 Outline Motivations Previous work Our formulation Observation Combinational dependency Sequential dependency Greatest fixed point Least fixed point Verification Reduction Experimental results Conclusions
14
5/6/2004J.-H. R. Jiang 14 Our formulation Objective Resolve the unsolved problems (exploiting functional dependency and detecting signal correspondence) in a unified framework Key Conclude functional dependency directly from transition functions of a state transition system. Define combinational dependency Extend to sequential dependency
15
5/6/2004J.-H. R. Jiang 15 Combinational dependency Given two functions f and g over the same domain C, f functionally depends on g if there exists some function such that f (·) = ( g (·) ). A necessary and sufficient condition: f (a) f (b) g (a) g (b), for all a,b C In such case, we denote g v f Consider multi-valued functions as vectors of Boolean functions
16
5/6/2004J.-H. R. Jiang 16 Combinational dependency
17
5/6/2004J.-H. R. Jiang 17 Combinational dependency
18
5/6/2004J.-H. R. Jiang 18 Sequential dependency Extend combinational dependency for state transition systems Find invariant such that s dep = (s ind ) and dep = ( ind ) where s represents the set of state variable and represents the set of transition functions. Two approaches of computing fixed points Greatest fixed-point (gfp); least fixed-point (lfp)
19
5/6/2004J.-H. R. Jiang 19 Sequential dependency Greatest fixed-point (gfp) computation Initially, all state variables are distinct. In each iteration, compute the combinational dependency among independent state variables from the previous iteration.
20
5/6/2004J.-H. R. Jiang 20 Sequential dependency (gfp)
21
5/6/2004J.-H. R. Jiang 21 Sequential dependency Least fixed-point (lfp) computation Initially, select one state var as the representative. (0) is determined by initial state information. In each iteration of computing functional dependency, try to reuse ’s from the previous iteration. If restrict ’s to be identity functions, the computation reduces to detecting signal correspondences.
22
5/6/2004J.-H. R. Jiang 22 Sequential dependency (lfp)
23
5/6/2004J.-H. R. Jiang 23 Legitimacy for logic synthesis Dependency may not hold for initial states which have no predecessors Localize conflicting state variables and declare them as independent state variables
24
5/6/2004J.-H. R. Jiang 24 Verification reduction Reachability analysis on reduced state space Static verification reduction Before a reachability analysis, derive sequential dependency (using lfp or gfp computation). Dynamic (on-the-fly) verification reduction In each iteration of a reachability analysis, derive a minimal set of independent state variables before the image computation. (No need to try to reuse ’s.) Thus, the image computation is over the reduced state space. Prior work on exploiting functional dependency is not effective because the detection of functional dependency is done after the image computation.
25
5/6/2004J.-H. R. Jiang 25 Verification reduction
26
5/6/2004J.-H. R. Jiang 26 Outline Motivations Previous work Our formulation Experimental results Conclusions
27
5/6/2004J.-H. R. Jiang 27 Experimental results Dependency in original FSM CircuitRegSignal CorrespondenceSequential Dependency GfpSequential Dependency Lfp Indp.Iter.MbsecIndp.Iter.MbsecIndp.Iter.Mbsec s298-rt34315100.3232 1.62410416.2 s526n-rt64554131.037260104.240145826.8 s838-rt734820131.5331223.733462118.3 s991-rt42242130.5212 1.4202211.4 mult16a-rt106666130.9752131.0618134.6 tbk-rt49 2 6.813462264.12135948.4 s4863104813474.781169178.77534714.5 s537817916312376.515525115.9154145143.1 s132076693031613895.64605111384.626337100836.0 s1585059743124142221.756931341487.1315321421441.0 s38584145286917303525.5144011554103.38492530322001.1 808519391156528.919307042.479176364.3
28
5/6/2004J.-H. R. Jiang 28 Experimental results Dependency in product FSM CircuitRegSignal CorrespondenceSequential Dependency GfpSequential Dependency Lfp Indp.Iter.MbsecIndp.Iter.MbsecIndp.Iter.Mbsec s2088+16167100.2171100.11210416.2 s29814+34395100.5372211.530145826.8 s3866+15133100.2132120.312462118.3 s49922+416321143.1432387.3422211.4 s5106+34384130.62725025.9298134.6 s52621+58648132.25926041.65035948.4 s526n21+64698132.458259121.95034714.5 s63532+516631137.8661211.451145143.1 s83832+7378312516.8652484.25937100836.0 s99119+42422221.5402382.539321421441.0 mult16a16+106826144.6912141.7772530322001.1 tbk5+49542145.517461175.625176364.3
29
5/6/2004J.-H. R. Jiang 29 Experimental results On-the-fly reduction CircuitIter.Reach. Analysis w/o Dep. ReductionReach. Analysis w Dep. Reduction Peak (bdd nodes) Reached (bdd nodes) MbsecPeak (bdd nodes) Reached (bdd nodes) Mbsec s3271428,819,30116,158,2426202784.118,843,83710,746,0534151082.6 s4863218,527,781248,885365404.8549,0068,7726713.1 s53782N/A >2GN/A1,151,439113,5227021.5 s158501529,842,8899,961,94565321337.417,667,0766,356,7144638175.0 80855016,663,7491,701,60439024280.27,830,6021,338,3222124640.1
30
5/6/2004J.-H. R. Jiang 30 Outline Motivations Previous work Our formulation Experimental results Conclusions
31
5/6/2004J.-H. R. Jiang 31 Conclusions Proposed a computation of functional dependency w/o reachability analysis. Unified two previously independent studies on detecting signal correspondence and exploiting functional dependency. Detecting signal correspondence is a special case of lfp computation of sequential dependency. Previous approach on exploiting functional dependency can be improved with our dynamic reduction. In addition to verification reduction, our results can be used to minimize state transition systems.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.