Lecture 2-8
Lecture 2-8
x y xy x y (xy)'
or xy
0 0 0 0 0 1
0 1 1 0 1 0
1 0 1 1 0 0
1 1 0 1 1 1
The Exclusive Or function means:
x OR y, but NOT BOTH
The Exclusive Nor function, denoted by the operator , is
sometimes known as the "Equivalence" function. Why?
EXOR/EXNOR Extensions
The EXOR function w(xy) = w(xy)' + w'(xy)
can be extended to 3 = w(xy'+x'y)' + w'(xy'+x'y)
or more variables. For = w[(xy')'(x'y)'] + w'xy' + w'x'y
more than 2 variables, = w[(x'+y)(x+y')] + w'xy' + w'x'y
it is called a modulo 2 = w[x'x+x'y'+xy+yy']+w'xy'+w'x'y
sum (Mod 2 sum), not = w[0+x'y'+xy+0]+w'xy'+w'x'y
EXOR: = wx'y'+wxy+w'xy'+w'x'y
These identities can x0 = x x1 = x'
be shown to hold: xx = 0 xx' = 1
xy' = (xy)' x'y = (xy)'
Further commutative
and associative laws xy = yx
apply thus: (xy)z = x(yz) = xyz
EXOR Implementations
X
The simple SOP
implementation uses
the following XY
structure:
Y
A NAND only
implementation is:
EXOR Implementations
(Cont.)
The AND-OR implementation is simply a SOP form of the
equation defining the EXOR function:
xy = x' y + x y'
The multiple level NAND implementation is a little more
interesting. The last two stages implement the SOP form for:
xy = x T + y T where: T = (xy)' = (x'+y')
Substituting for T we get:
xy = x (x'+y')+ y (x'+y')
= x x' + x y' + x' y +y y'
= 0 + x y' + x' y + 0
= x y' + x' y
Odd Function
Going back to 3-input Mod 2 Sum definition:
w(xy) = w(xy)' + w'(xy)
which becomes: (100) (111) (010) (001)
= wx'y'+wxy+w'xy'+w'x'y
We see that the function value is "1" for one, or three "ones" in
the input variables.
This extends to an "N" input EXOR function which attains a
value of "1" if and only if the number of ones in the input
variable set is odd. Thus the Mod 2 Sum function is called the
Odd Function.
Multiple input EXOR functions are difficult to implement in
practice, so a multilevel tree structure is used to implement
the function, using 2-input EXOR gates as blocks.
Odd Function Implementation
Three-Input Odd Function:
1 1 1 1
1 1 1 1
x x
1 1 1 1
w w
1 1 1 1
Note: n bit Odd or Even
z z
function, there will be
Odd Function Even Function
(2**n)/2 or 2**(n-1) product
v=0 y v=1 y terms of n variables
1 1 1 1 (minterms)!
1 1 1 1
x x
1 1 1 1
w w
1 1 1 1
z z
B
TPHL
TPLH
In
TPLH
A TPHL
Positive and Negative Logic
The same physical gate can have different logical meanings
depending on how we interpret the signal levels.
Positive Logic
Logic 1 is set to high (more positive) signal levels
Logic 0 is set to low (less positive) signal levels
Negative Logic
Logic 1 is set to low (more negative) signal levels
Logic 0 is set to high (less negative) signal levels
Positive (H = 1) Negative (H = 0)
Logic (L = 0) Logic (L = 1)
0 0 0 1 1 1
0 1 1 1 0 0
1 0 1 0 1 0
1 1 1 0 0 0
Positive and Negative Logic (Cont.)
Rearranging the negative logic terms to be in proper
function table order we get:
Positive (H = 1) Negative (H = 0)
Logic (L = 0) Logic (L = 1)
0 0 0 0 0 0
0 1 1 0 1 0
1 0 1 1 0 0
1 1 1 1 1 1
X X
Z Z
Y Y
Positive Logic
Negative Log