Documente Academic
Documente Profesional
Documente Cultură
Algorithm I:
3.1 AND-OR minimization:
1. Start from the node of any cell in an anti-
In order t o obtain a minimal expression for a
clockwise direction.
boolean function, all vertices must be covered with
the smallest possible number of KH-polygons, such
2. Collect the n end point markers of all X , lines that each KH-polygon is as large as possible. A KH-
for i = 1 , 2 , ...,n on a first-come first--served polygon contained in another larger KH-polygon
basis. The end point markers will correspond must never be selected. Function F can be ex-
t o the node address in cell Ci. pressed as a sum of those product terms that corre-
spond t o the KH-polygon(s) necessary t o cover all
For example, if one moves in an anti-clockwise di- its vertices.
rection from the cell containing 1000 in Fig. 2(b),
one gets the literals z’y’zx’z’yzw which after includ- Example 1: Figure 2.a and 2.b map the func-
ing only the literals that appear first yields z’y’dw. tion F(x,y,z)= C(O,3,4,6) using KH-map and
Therefore, the combination associated with the cell K-map respectively. In fig. 2.a vertex CL has no ad-
is wz’y’z’ i.e., 1000. If for any cell the end points jacent vertex(i.e., no mirror image). Therefore. this
are w’xy’z, then the address of the nodes in that is marked as a KH-polygon of zero dimension. lrer-
cell is 0101. Algorithm I1 implies that the address tex b has only a single adjacent vertex d that forms
of any node can be easily calculated using the end a KH-polygon of one dimension. Uncovered vertex
point markers of chords in a KH-map. Therefore, c makes cd KH-polygon. Now, the KH-polygons CL,
the explicit address placement required in conven- bd and cd cover all the vertices and prolduct terms
tional mapping is no longer required in the proposed for them aredyz, y’z’ and xz‘ respectively. Product
represent ation. term of bd excludes 5 variable as z variable line(z’z)
281
perpendicularly bisects bd. Thus the expression for Theorem 4.2: If vertices V k and are EX-
+ +
the function is F ( z , y, z ) = z’yz y’z’ zz’. OR adjacent about lines X ; and X , and L is the
line joining the vertices then
Example 2: Figure 2.c and 2.d represent the a. L intersect only one X , line where i < j .
function F(w,x,y , ~ = ) C(3,5,8,10,11,12,14,15) b. L intersect Odd number of AY, lines.
using KH-map and K-map respectively. In fig. c. L never intersect X I , where ,k > j .
2.c vertex a form a KH-polygon of zero dimen-
sion. Vertices b and g form a IiH-polygon of one Definition 4.2 : EX-OR polygon A poly-
dimension. Vertex c has two adjacent vertices d gon consisting of 2” vertices is called EX-OR poly-
and f . But. froin the figure we observe that d is gon if two consecutive vertices are EX-OR adja-
adjacent to e and e is adjacent to f resulting a cent about any two variable line. EX-OR poly-
larger KH-polygon cdef of two dimensions. Two gon will be uniquely determined by PQ where P =
IiH-polygons cf and de produce the similar re- B1 @ B2@,..., $B, where B1, B2, ..., B, represents
sult. Uncovered vertex g form a one dimensional the address associated with vertices of the polygon.
KH-polygon with the vertex h, which eventually Q is EX-ORof all the variable not present in P.
form a larger KH-polygon of two dimensions with Q is called EX-OR product. For example in fig.
tlic d e KH-polygon. Now, the IiH-polygons a , by. 3.b. EX-ORpolygon abcd will be repr esented as
c d e f and g d e h cover all the vertices and product Y(W 8 2 $ 2).
term for them are w‘xy’z. x‘yz,wz‘ and wy respec-
tively. Product term for c d e f excludes z and y Polarity determination: If vertices Vk and
variables as x variable line z‘x and y variable line 14 are EX-OR adjacent about lines X , and X ,
y’y’ perpendicularly bisect the arms d e ( cf also) then EX- 0 R polygon containing only the vertices
and cd. Thus the expression for the function is VL-and I$ may be represented by P ( X , @ X , ) or
+
F ( w , z ,y,z)= w’zy’z z’yz t wz’t wy. In fig. P ( X , @ X , ) . Let the line L joining the vertices in-
2.d equivalent subcubes of the KH-polygon bg and tersect only one X , line. Consider all the end points
c d e f are formed by folding the Ii-map. of X , line intersected by L in on a fixed side. If there
are even number of X , points then take X : other-
wise take X,.Now, if the points are X,,XJ or Xi,lYi
then take P ( X , @I X,) otherwise take P ( X , @ X j ) .
4 EX-OR minimization and
properties In order t o obtain a minimal expression in the
form EX-OR AND OR, all vertices must be covered
Definition 4.1: Two vertices VI,and V, will be with the smallest possible number of KH-polygons
called EX-OR adjacent about lines X , and X , if and EX-OR polygon, such that each IiH-polygon is
there exist a vertex V such that V is adjacent t o I,i as large as possible.
and about line X , and X , respectively. This im-
plies that combination associated with the vertices Example 3: Figure 3.a. represents the func-
must differ by only two variable. tion F(w,x, y, 2 ) = (1,2,7,11,13,14). In the fig-
Theorem 4.1: Two vertices V k and 15 will be ure vertex a and b are EX-OR adjacent about z and
.>.
always EX-OR adjacent about lines X, and X,-1 if w line. End points of z and w lines on the same side
line joining the vertices passes through the center. of ab i s either wx or w’x’. Therefore EX-OR poly-
gon ab will be represented by yz‘(w @ Product
Proof: From the construction of KH-map we term yz‘ can easily be found applying technique in
know that the single lines in an n variable map is the previous section. For the EX-OR polygon c d e f ,
X, and X,-1. All other lines are 2“(k > 0) in num- EX-OR product would be 20 @ z @ z . Therefore ex-
ber. Line passing through the center intersect all pression is y ( w CE z @ .)+ yz‘(w @ .).
the Xi lines. Therefore, combination associated w
ith the vertices must differ by X, and X,-1. Example 4: Figure 3.b. represents the func-
tion F ( w ,I C , y, z ) = (1,2,4,7,8,11,13)and after
282
minimization we get F= y(w GI 5 e?)+ wx‘yz + Simplijcation of Multi-variable Boolean Func-
Z ’ W ’ ( Z ) . tion,” IEEE NAECON’95 proc. Dayton, Ohio,
pp. 256-261, 1995.
5 Conclusion
From the foregoing discussion it is clear that the
technique provides an intuitive and geomietric way
to minimize logic function. It is also cleax that al-
most the same approach used in realizing AND-OR
relation using KH-map can be used in XOR-AND-
OR for other minimization. The only difference is
the way of defining KH-polygon and XOR,-.polygon.
Examples used in this paper show how the EX-OR
relation can be realized simply. It is hoped that
KH-map will be an important tool t o analyze and
design complicated EX-OR based circuits and EX-
OR production rules.
References
283
J
Figure 1.
(a) ICH-map for 3 variables
( b ) IC-map for 3 variables
( c ) KH-map for 4 variables
j d ) I<-map for 4 variables
284
@ XY*
: x
X
d c
Y'
VZ
,
w'
C
z
wxyz
285