Professional Documents
Culture Documents
Shannon expansion theorem Reed-Muller expressions Kronecker expressions Generalized bit level expressions Walsh transform
X0 X1 X2 X3
00 01 10 11
X1
X2
X3 0 1 2 3
a1, m B an ,m B
1 0 f0 f = ( xi xi ) = X (1) B (1) F 0 1 f1
By recursive application of Shannon expansion each n-variable switching function can be represented as
[ x1 x1 ] [ x0 x0 ] = [ x1 x0 x1 x0 x1 x0 x1 x0 ]
n 1 n 1 f = X (1) B(1) F i =0 i =0
3 4
f ( x1 , x 2 , , x n ) = a 0 ( a 1 x1 a 2 x 2 a n x n ) ( a 1 , 2 x1 x 2 a 1 , 3 x1 x 3 a n 1 , n x n 1 x n )
where ai { 0,1}. Representation algorithm 1.
a 1 , 2 ,..., n x1 x 2 x n ,
= 00
1 k
1 n on which
f ( 1 n ) equals 1.
2. 3.
xi = 1 xi
From Shannon expansion we derive the positive Davio (pD) expansion (decomposition) rule, where f is represented as a polynomial
f = xi f 0 xi f1 = f 0 xi ( f 0 f1 ) = c0 c1 xi
In matrix notation the pD expansion rule can be expressed in terms of basic matrices Xrm(1) and R(1)
1 0 f0 f = (1 xi ) = X rm (1) R (1) F 1 1 f1
By recursive application of pD expansion each n-variable switching function can be represented as Positive Polarity Reed-Muller (PPRM) expansion
n n f = X rm (1) R(1) F i =1 i =1
Reed-Muller spectrum
The matrix
R(n) = R(1)
i =1
0 R (n 1) R (n) = R (n 1) R(n 1)
is called the RM matrix, the matrix is non-singular. The columns of the matrix are RM functions rm(i,x) The RM spectrum is defined as thus
10
Definition:
The transeunt triangle for f(x1; x2;; xn) is a triangle of 0's and 1's where the bottom row is the truth vector of f. The j-th element in the i-th row of the triangle is denoted by
ei , j
to-bottom starting with i = 0 and j = 0, respectively. The truth vector corresponds to the elements
The element e n corresponds to f(k), where k is the binary representation 2 1, k of integer k. Other elements are related by
ei , j = ei +1, j ei +1, j +1
* Transeunt -Of a mental act; causing effects outside the mind (transient)
13
14
ei , j = ei + 2k , j ei + 2k , j + 2k
Where
x x = i xi
hi i
hi = 0 hi = 1
and
1 1 R (1) = 0 1
hi
0 1 1 1 i
hi = 0 hi = 1
The number of terms in a FPRM expansion for a given polarity vector H is the number of non-zero terms in the binary vector S = R i (1) F i =1
h
mod(2)
16
Kronecker expressions
Kronecker expressions are generalization of the FPRM expressions each variable can have different expansion rule : Shannon (S), positive Davio (pD) or negative Davio (nD).
f = a0 x1 a1 x1 x3 a2 x1 x2 a3 x1 x2 x3 a4 x1 a5 x1 x3 a6 x1 x2 a7 x1 x2 x3
18
19
Minimization of ESOP
Two level ESOP Simplification based on term rewriting
Before the rewriting the function has to be represented as (non-minimal) two level AND-XOR expression. Rewrite rules S1-S6:
x x 1,
11 0
x 1 x , xy x y x y xy y 1 xy, xy x y x y
Brad-Sasao[93] consider the following problems: Given a set of rule, is there always a chain leading to minimal expression? If no, what rules need to be added? If yes, but not every chain leads to a minimum, how to find a chain that does result in a minimal expression? To what extent are these issues relevant in practice?
22
Minimization of ESOP
Two level ESOP Simplification based on term rewriting
Example: minimize the expression
x y z w xz xw xyzw zw
Conclusion: the set S1-S6 is not sufficient for minimizing the expression. Theorem: The following set is a minimal convergence (to the minimal number of product terms set of rules
1 1 0, 1 x x , x 1 x
Example
xz y x yz xyz xyz
Fourier transform
Walsh transform
The Walsh matrix is defined as
W (n) = W (1),
Wall(0,x)
F ( ) =
t =
f (t )e jt dt
i =1
1 f (t ) = 2
t =
F ( )e jt d
1 1 W (1) = 1 1
Wall(1,x)
Wall2,x)
n 1
is ks
= e j <i ,k >
Wall(3,x)
Wall(4,x)
F (k ) = f (n)e j 2 nk / M
n=0
M 1
S f = W ( n) F
F = 2 n W ( n) S f
Wall(5,x)
Wall(6,x)
Wall(7,x) 0 1 2 3 4 5 6 7
25
26
f ( x) = 2 n S f ( w)Wx ( w)
w=0
2n 1
S f ( w) = f ( x)Ww ( x)
x =0
2n 1
27
28
29