• Non ci sono risultati.

1 Decision Diagrams

N/A
N/A
Protected

Academic year: 2021

Condividi "1 Decision Diagrams "

Copied!
4
0
0

Testo completo

(1)

1 Decision Diagrams

Gianpiero Cabodi Stefano Quer

Politecnico di Torino Torino, Italy

{gianpiero.cabodi,stefano.quer}@polito.it http://staff.polito.it/{gianpiero.cabodi,stefano.quer}/

Reference

™ Papers R. E. Bryant

“Binary Decision Diagrams and Beyond: Enabling Technologies for Formal Verification”

IEEE ICCAD 1995

General Ideas for Alternatives DDs

™ When BDDs are too complex it is possible to

‹Decompose BDDs

‹Modifying the representation

—Change the reduction rules

—Change the function decomposition

—Relax variable ordering requirements

Boolean Function Decomposition

™ If the BDDs are too large to be represent

‹State transition and output functions

‹State sets

‹Intermediate computations

™ Then it is possible to decompose and manipulate Boolean functions in decomposed form

(2)

2 When/How to insert cut-points?

™ Frequently

‹Good orderings do not exist or expensive

‹Sub-blocks require different orderings

™ Auxiliary variables

‹Improve performances for poor orderings

‹Overcome conflicting requirements

™ Selection criteria

‹Automatic structure-based insertion

‹Manual function based insertion

BDD Derivatives

™ MDD: Multi-valued BDDs

‹natural extension, have more then two branches

‹can be implemented using a regular BDD package with binary encoding

— advantage that binary BDD variables for one MV variable do not have to stay together -> potentially better ordering

™ ADDs: (Analog BDDs) MTBDDs

‹multi-terminal BDDs

‹decision tree is binary

‹multiple leafs, including real numbers, sets or arbitrary objects

‹efficient for matrix computations and other non-integer applications

™ FDDs: Free BDDs

‹variable ordering differs

‹not canonical anymore

™ … And many more …..

Zero Suppressed BDD’s - ZBDD’s

™ ZBDD’s were invented by Minato to efficiently represent sparse sets. They have turned out to be useful in implicit methods for representing primes (which usually are a sparse subset of all cubes)

™ To sum up:

‹Minato, DAC’93

‹Change in the reduction rules

‹To represent Sparse sets

‹At most linear reduction to respect to BDD

‹Sufficient reduction in practice

‹Efficient representation for two and multi level logic minimization

™ Different reduction rules

‹BDD

— Eliminate all nodes where then edge and else edge point to the same node

‹ZBDD

— Eliminate all nodes where the then node points to 0. Connect incoming edges to else node

‹For both

— Share equivalent nodes

0 1

0 1 0 1 0 1

0 1

0 1 0

BDD ZBDD

(3)

3 Canonicity

™ Theorem (Minato)

‹ZBDD’s are canonical given a variable ordering and the support set

x1 x2

0 1

BDD

x3

1 ZBDD if support is x1, x2, x3 1

ZBDD if support is x1, x2

x1 x2

0 1

BDD x3

1 ZBDD if support is x1, x2 , x3

x1 x2

0 1

x3

Difference Decision Diagrams

™ Møller, Lichtenberg, Andersen, Hulgaard, 1999

™ DDD

‹Similar to BDDs, but the nodes are separation predicates

‹Ordering on variables determines order on predicates

‹Semi-canonical (i.e canonical when ϕis a tautology or a contradiction)

ϕ: !(x1 – x3 < 0)∨ x2 - x3 ≤ 0 ∨ !(x2-x1 < 0) x1 – x3 < 0

x2 - x3 ≤ 0 x2-x1 < 0

1 0

Š Each path leading to ‘1’ is checked for consistency with ‘Bellman-Ford’

Š Worst case – an exponential no. of such paths

Functional DDs - OFDDs

™ Kebschull & co., EDAC’92

™ Reed-Muller Expansion (Negative and Posite Davio)

‹f = fØx Å x · (fx Å f Øx ) = fx Å Øx · (fx Å fØx )

‹fdx =fx Å f Øx boolean difference

™ For some functions are exponentially smaller than BDDs

™ The reverse it is also true

x1

x3 (x 1 ⊕ x 2 )· x 3

x2

1 0

fδx

fδx

fδx

OKFDDs - Ordered Kronecker FDDs

™ Drechsler & co., DAC’94

™ Boole + Reed-Muller Decompositions

™ Exponentially more compact than ROBDDs and OKFDDs

™ Practice: Modest improvements on Average

x1

x3 (x 1 ⊕ x 2 )· x 3

x2

1 0

fδx fδx

fδx

FBDDs - Free BDDs

™ Meinel & co., T-Computer’94, Sieling & co., Theorical Computer Science’95

™ Variables in any order - at most once in any path

™ Non-canonical

™ NP-hard checking equivalence

x1 f

x2

x3 x3

x2

TFBDDs - Typed FBDDs

™ Meinel & co., T-Computer’94, DAC’95

™ FBDD + Type

™ Canonical

™ Same operational approach as BDDs

™ How to find the Type?

x1 Type

f

y3 y2 y1

x3 x2

x2 x3

(4)

4 IBDDs - Indexed BDDs

™ Jain & co. EDAC’92

™ Multiple occurrences of input variables

™ multiplier Q(n3), hidden weighted bit Q(n2)

MTBDDs - Multi Terminal BDDs or ADD - Arithmetic DDs

™ Clarke & co., DAC’93, Somenzi & co., ICCAD’93

™ To represent Numeric-Valued Function

™ Inefficient for large range

x1 f

x2

x3 x2

x3 0

2 3

4 5

1

EVBDDs - Edge-Valued BDDs

™ Lai & co., DAC’92

BMDs - Binary Moment Diagram

™ Bryant & co., DAC’95

™ f = (1 - x) · f Øx + x · fx = f Øx + x ·( fx - f Øx )

™ fqx = fx - f Øx linear moment

x2

x0

x 0 +2 · x 1 +4 · x 2

x1

0 2 fθx

4 1

fθx

fθx BMD & *BMD

*BMDs - Multiplicative BMDs

™ Bryant & co., DAC’95

™ To reduce the number of nodes modify BMDs adding a weight to an edge

™ Linear size in the number of inputs to represent addition, multiplication, exponentiation

x2

x0

x 0 +2 · x 1 +4 · x 2

x1

0 2 fθx

4 1

fθx fθx

BMD & *BMD

Riferimenti

Documenti correlati

wt: wild-type control samples; het1, het2 and het3: heterozygous control samples for G12A, G12C, G12R, G12S, G12V, G13D; G12D KRAS mutations; light grey squares represent

The limits are interpreted in the context of the standard model with an expected (observed) limit on the cross section times branching ratio of 9.9 (17.0) times the standard

EGCG inhibits cell proliferation and induces apoptosis in several human tumor cell lines, including CaSki and HeLa cervical cells [61], Hep-2 cells [62], laryngeal squamous

Dalla prospettiva eco-socio-linguistica, lo studio pubblicato avalla la teoria secondo cui l’influsso e il conseguente affioramento di interferenze lessicali (e fonologiche) del

ganizzativo adottabile è costituito dall’organizzazione in gruppi di lavoro, specializzati rispetto a particolari fattispecie criminose. Il ricorso a tale modu- lo organizzativo è

Simulation results showed that the e-FLLS sine-wave amplitude estimator [11], which is based on the least-squares approach and rectangular windowing, exhibits a better

We conducted a six-year experiment in a sloping vineyard located in Aosta Valley, N-W Italy, to assess the effect of different soil management (permanent grassing, chemical weeding,