Docsity

BDDs and Variable Ordering: Lecture 4, Study notes of Electrical and Electronics Engineering

Toggle sidebar
bg1
1
Alan Mishchenko
ECE 510 OCE
BDDs and Their Applications
Lecture 4. Variable Reordering
April 6, 2000
April 9, 2000 ECE 510 OCE: BDDs and Their Applications 2
Overview
•Connection between variable ordering and BDD size
•The size of BDDs for symmetric functions
•Exponential lower bounds
•Exact minimization is NP-complete
•The fan-in based heuristic to find good static variable
ordering for BDDs representing outputs of logic
networks
•Dynamic reordering based on variable swap
•Reordering algorithms: window permutation, sifting,
block sifring, symmetric sifting
pf3
pf4
pf5

Partial preview of the text

Download BDDs and Variable Ordering: Lecture 4 and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

Alan Mishchenko

ECE 510 OCE

BDDs and Their Applications

Lecture 4. Variable Reordering

April 6, 2000

April 9, 2000 ECE 510 OCE: BDDs and Their Applications 2

Overview

  • Connection between variable ordering and BDD size
  • The size of BDDs for symmetric functions
  • Exponential lower bounds
  • Exact minimization is NP-complete
  • The fan-in based heuristic to find good static variable ordering for BDDs representing outputs of logic networks
  • Dynamic reordering based on variable swap
  • Reordering algorithms: window permutation, sifting, block sifring, symmetric sifting

April 9, 2000 ECE 510 OCE: BDDs and Their Applications 3

Variable Ordering for F=a 1 b 1 + a 2 b 2

a 1

a 2

b 1

b 2

a 1 <b 1 <a 2 < b 2

a 1

b 1

a 2

b 2

a 2

b 1

a 1 <a 2 <b 1 < b 2

April 9, 2000 ECE 510 OCE: BDDs and Their Applications 4

BDDs for Symmetric Functions

  • The value depends only on the number of 1’s

in the input vector

  • For n-variable functions, there are n+

possible numbers of 1’s and so 2n+1^ functions

  • Cofactors of symmetric functions themselves

are symmetric functions

  • Ik the function is cofactored k times, there are

no more than n+1-k different cofactors

  • The BDD size is limited by n*(n+1-k) ~ O(n^2 )

April 9, 2000 ECE 510 OCE: BDDs and Their Applications 7

Exact Minimization: Historical Picture

  • 1986, in the original paper introducing

BDDs, Randy Bryant stated without proof that the construction of an optimal order is NP-complete

  • 1993, S.Tani, K.Hamaguchi, S.Yijima

proved the weaker case (for shared BDDs)

  • 1996, B.Bollig and I.Wegener proved the

theorem for BDDs with exactly one root

April 9, 2000 ECE 510 OCE: BDDs and Their Applications 8

Optimizing Variable Ordering

  • Depending on the initial representation (Boolean formula, net list, SOP, etc.), the problem of finding a good static order may have many formulations
  • Often semantic information can be used
  • The initial functions may be already in the form of BDDs

April 9, 2000 ECE 510 OCE: BDDs and Their Applications 9

Fan-in Heuristic for Static Ordering

  • Transitive fan-in for the node of the

combinational boolean network is

  • 0, if it is an output node
  • or 1+max (^) wi( TFI(wi) ), otherwise
  • Heuristic:
  • transform the network to have one output
  • perform a depth-first search of the network starting from the outputs and, when there are two or more predecessors, prefer the one with the largest TFI
  • the earlier the variable appears in a predecessor’s variable list, the earlier it is put in the global list

April 9, 2000 ECE 510 OCE: BDDs and Their Applications 10

Motivation for the fan-in heuristic

Z

V 1 V 2 V 3

y (^1) y 2 y^3

April 9, 2000 ECE 510 OCE: BDDs and Their Applications 13

Algorithms for Dynamic Reordering

  • Window permutation
  • Sifting algorithm
  • Block sifting
  • Symmetric sifting
  • Block-restricted sifting

April 9, 2000 ECE 510 OCE: BDDs and Their Applications 14

Quantitative Comparison