Cs8351-Digital Principles and System Design Ii Year - Iii Semester - R2017 Unit-I
Cs8351-Digital Principles and System Design Ii Year - Iii Semester - R2017 Unit-I
Cs8351-Digital Principles and System Design Ii Year - Iii Semester - R2017 Unit-I
INTRODUCTION:
In 1854, George Boole, an English mathematician, proposed algebra for
symbolically representing problems in logic so that they may be analyzed
mathematically. The mathematical systems founded upon the work of Boole are called
Boolean algebra in his honor.
The application of a Boolean algebra to certain engineering problems was
introduced in 1938 by C.E. Shannon.
For the formal definition of Boolean algebra, we shall employ the postulates
M
formulated by E.V. Huntington in 1904.
O
C
Fundamental postulates of Boolean algebra: S.
The postulates of a mathematical system forms the basic assumption from which
U
C
i) Closure:
A set S is closed w.r.t. a binary operator, if for every pair of elements of S, the
EN
The result of each operation with operator (+) or (.) is either 1 or 0 and 1, 0 ЄB.
U
ST
e* x = x * e = x
Eg: 0+ 0 = 0 0+ 1 = 1+ 0 = 1 a) x+ 0= x
1.1=1 1.0=0.1=1 b) x. 1 = x
v) Inverse:
M
A set S having the identity element e, w.r.t. binary operator * is said to have an
O
C
inverse, whenever for every x Є S, there exists an element x’ Є S such that,
S.
x. x’ Є e
U
C
FO
a) x+ x’ = 1, since 0 + 0’ = 0+ 1 and 1+ 1’ = 1+ 0 = 1
b) x. x’ = 1, since 0 . 0’ = 0. 1 and 1. 1’ = 1. 0 = 0
TS
EN
D
Summary:
U
Basic Theorems:
b) x. x = x
x. x = (x. x) + 0 ------------------- by postulate 2(a) [ x+ 0 = x ]
M
= (x. x) + (x. x’) ------------------- 5(b) [ x. x’ = 0]
O
= x ( x+ x’) ------------------- 4(a) [ x (y+z) = (xy)+ (xz)]
C
= x (1) S.
------------------- 5(a) [ x+ x’ = 1 ]
U
=x ------------------- 2(b) [ x.1 = x ]
C
2) a) x+ 1 = 1
FO
= x+ x’ ------------------- 2(b) [ x. 1 = x ]
U
b) x .0 = 0
3) (x’)’ = x
From postulate 5, we have x+ x’ = 1 and x. x’ = 0, which defines the complement
of x. The complement of x’ is x and is also (x’)’.
Therefore, since the complement is unique,
(x’)’ = x.
4) Absorption Theorem:
a) x+ xy = x
b) x. (x+ y) = x
x. (x+ y) = x. x+ x. y ------------------- 4(a) [ x (y+z) = (xy)+ (xz)]
= x + x.y ------------------- by theorem 1(b) [x. x = x]
= x. ------------------- by theorem 4(a) [x+ xy = x]
c) x+ x’y = x+ y
x+ x’y = x+ xy+ x’y ------------------- by theorem 4(a) [x+ xy = x]
= x+ y (x+ x’) ------------------- by postulate 4(a) [ x (y+z) = (xy)+ (xz)]
M
= x+ y (1) ------------------- 5(a) [x+ x’ = 1]
O
= x+ y ------------------- 2(b) [x. 1= x]
C
S.
d) x. (x’+y) = xy
U
C
1. Commutative property:
x+ y = y+ x
x. y = y. x
This means that the order of the AND operation conducted on the variables makes no
difference.
2. Associative property:
A+ (B+ C) = (A+B) + C
The OR operation of several variables results in the same, regardless of the grouping of
the variables.
The associative law of multiplication is given by,
A. (B. C) = (A.B) . C
It makes no difference in what order the variables are grouped during the AND
operation of several variables.
3. Distributive property:
M
The Boolean addition is distributive over Boolean multiplication, given by
O
C
A+ BC = (A+B) (A+C)
S.
U
The Boolean addition is distributive over Boolean addition, given by
C
FO
4. Duality:
U
ST
It states that every algebraic expression deducible from the postulates of Boolean
algebra remains valid if the operators and identity elements are interchanged.
If the dual of an algebraic expression is desired, we simply interchange OR and
AND operators and replace 1’s by 0’s and 0’s by 1’s.
x+ x’ = 1 is x. x’ = 0
Duality is a very important property of Boolean algebra.
DeMorgan’s Theorems:
M
Two theorems that are an important part of Boolean algebra were proposed by
O
C
DeMorgan.
S.
The first theorem states that the complement of a product is equal to the sum of
U
the complements.
C
FO
(AB)’ = A’+ B’
TS
The second theorem states that the complement of a sum is equal to the product of the
EN
complements.
D
Consensus Theorem:
In simplification of Boolean expression, an expression of the form AB+ A’C+ BC,
the term BC is redundant and can be eliminated to form the equivalent expression AB+
A’C. The theorem used for this simplification is known as consensus theorem and is
stated as,
1. x (x’+y)
= xx’+ xy [ x. x’= 0 ]
= 0 + xy [ x+ 0 = x ]
= xy.
2. x+ x’y
M
= x + xy + x’y [ x+ xy= x]
O
= x+ y (x+x’)
C
= x+ y (1) [ x+ x’ = 1]
S.
U
= x+ y.
C
FO
= x (1+ y’+ y)
D
= x (1) [ 1+y= 1 ]
U
ST
= x.
4. xy + x’z + yz.
= xy + x’z + yz( x+ x’) [ x+ x’= 1]
= xy + x’z + xyz + x’yz
Re-arranging,
= xy + xyz + x’z +x’yz
= xy (1+ z) + x’z (1+y) [1+y= 1]
= xy+ x’z.
8. x+ xy’+ x’y
= x (1+ y’)+ x’y
M
= x (1) + x’y [ 1+ x = 1 ]
O
= x+ x’y [ x+ x’y = x+ y ]
C
= x+ y.
S.
U
9. AB + (AC)' + AB’C (AB + C)
C
Re- arranging,
= A' + AB’+ B+ C' [A’ + AB = A’ + B]
= A' + B’+ B+ C' [ B’+ B= 1]
= A' +1+ C’ [ A+ 1= 1]
=1
M
O
= x’z’ (y’+ y)+ xz’ (y’+ y)
C
= x’z’+ xz’ [ x+ x’= 1]
= z’ (x’+ x) S.
U
= z’ [ x+ x’= 1]
C
FO
[ 1+ x = 1 ]
= xz’ (y+ y’) + xy’z
D
= x (z‘+ y’z)
ST
M
= xy+ xz+ y+ yz [x+ x= x]; [x. x= x]
O
= xy+ xz+ y [x+ xy= x]
C
= y+ xz S. [x+ xy= x]
U
C
= xy’z. z+ x’y’z
EN
= y’z.
M
= xy+ xy’ (x’’+ z’’)
O
= xy+ xy’ (x+ z) [x’’ = x]
C
= xy+ xy’x+ xy’z S.
U
= xy+ xy’+ xy’z [x. x= x]
C
= x( y+ y’)
EN
= x [1] [ x+ x’= 1]
= x.
D
U
M
= xz. x’y+ xz. yz’+ x’y. x’y+ x’y. yz’+ yz. x’y+ yz. yz’
O
= 0+ 0+ x’y+ x’yz’+ x’yz+ 0 [x. x’= 0]; [x. x= x]
C
= x’y+ x’yz’+ x’yz S.
= x’y (1+ z’+ z)
U
C
= x’y (1) [ 1+ x = 1 ]
FO
= x’y.
TS
EN
28. Y= ∑m (1, 3, 5, 7)
= x’y’z+ x’yz+ xy’z+ xyz
D
= x’z+ xz
= z( x’+ x)
= z (1) [ x+ x’= 1]
= z.
(A+ B+ C+ D+ … + F)’ = A’ B’ C’ D’ … F’
1. F= x’yz’+ x’y’z
M
F’= (x’yz’+ x’y’z)’
O
C
= (x”+ y’+ z”) . (x”+ y”+z’)
= (x+ y’+ z). (x+ y+ z’).
S.
U
C
FO
4. F= xy’+ x’y
F’= (xy’+ x’y)’
= (xy’)’. (x’y)’
= (x’+y) (x+y’)
= x’x+ x’y’+ yx+ yy’
= x’y’+ xy.
M
5. f = wx’y + xy’+ wxz
O
C
f’ = (wx’y + xy’+ wxz)’
= (wx’y)’ (xy’)’ (wxz)’
S.
U
= (w’+x+ y’) (x’+ y) (w’+ x’+ z’)
C
FO
= w’x’. w’+ w’y. w’+ xy. w’+ x’y’. w’+ w’x’. x’+w’y. x’+ xy. x’+ x’y’. x’+
EN
= w’x’+ w’y+ w’xy+ w’x’y’+ w’x’+ w’x’y+ 0 + x’y’+ w’x’z’+ w’yz’+ xyz’+ x’y’z’
U
ST
= w’x’+ w’y+ w’xy+ w’x’y’+ w’x’y+ x’y’+ w’x’z’+ w’yz’+ xyz’+ x’y’z’
= w’x’( 1+ y’+ y+ z’)+ w’y( 1+ x+ z’)+ x’y’(1+ z’)+ xyz’
= w’x’(1)+ w’y(1)+ x’y’(1)+ xyz’
= w’x’+ w’y+ x’y’+ xyz’
M
table below.
O
C
Variables Minterms Maxterms
x y z mi
S. Mi
U
C
0 0 0 x’y’z’ = m0 x+ y+ z= M0
FO
0 0 1 x’y’z = m1 x+ y+ z’= M1
TS
0 1 0 x’yz’ = m2 x+ y’+ z= M2
0 1 1 x’yz = m3 x+ y’+ z’= M3
EN
1 0 0 xy’z’ = m4 x’+ y+ z= M4
D
M
standard (or) canonical SOP form. Each individual term in standard SOP form is called
O
minterm canonical form.
C
F (A, B, C) = AB’C+ ABC+ ABC’
S.
U
C
2. AND each product term having missing literals by ORing the literal and its
complement.
EN
3. Expand the term by applying distributive law and reorder the literals in the
D
product term.
U
M
= ∑m (3, 5, 6, 7).
O
C
5. Y (A, B, C, D) = AB+ ACD S.
U
= AB (C+ C’) (D+ D’) + ACD (B+ B’)
C
If each term in POS form contains all literals then the POS is known as standard
ST
(or) Canonical POS form. Each individual term in standard POS form is called Maxterm
canonical form.
F (A, B, C) = (A+ B+ C). (A+ B’+ C). (A+ B+ C’)
F (x, y, z) = (x+ y’+ z’). (x’+ y+ z). (x+ y+ z)
M
= M0. M1. M4. M2
O
C
= ∏M (0, 1, 2, 4)
S.
U
3. Y= A. (B+ C+ A)
C
5. Y= xy+ x’z
= (xy+ x’) (xy+ z) Using distributive law, convert the function into OR terms.
= (x+x’) (y+x’) (x+z) (y+z) [x+ x’=1]
= (x’+y) (x+z) (y+z)
= (x’+y+ z.z’) (x+z+y.y’) (y+z+ x.x’)
= (x’+ y+ z) (x’+ y+ z’) (x+ y+ z) (x+ y’+ z) (x+ y+ z) (x’+ y+ z)
= (x’+ y+ z) (x’+ y+ z’) (x+ y+ z) (x+ y’+ z)
M
represents one of the minterms. It can be drawn directly from either minterm (sum-of-
O
products) or maxterm (product-of-sums) Boolean expressions.
C
S.
U
Two- Variable, Three Variable and Four Variable Maps
C
Karnaugh maps can be used for expressions with two, three, four and five
FO
variables. The number of cells in a Karnaugh map is equal to the total number of
possible input variable combinations as is the number of rows in a truth table. For three
TS
variables, the number of cells is 23 = 8. For four variables, the number of cells is 24 = 16.
EN
D
U
ST
It is important to note that when we move from one cell to the next along any
row or from one cell to the next along any column, one and only one variable in the
product term changes (to a complement or to an uncomplemented form). Irrespective of
number of variables the labels along each row and column must conform to a single
change. Hence gray code is used to label the rows and columns of K-map as shown ow.
M
O
C
S.
U
C
FO
TS
EN
D
U
ST
The grouping is nothing but combining terms in adjacent cells. The simplification
is achieved by grouping adjacent 1’s or 0’s in groups of 2i, where i = 1, 2, …, n and n is
the number of variables. When adjacent 1’s are grouped then we get result in the sum of
product form; otherwise we get result in the product of sum form.
M
O
C
S.
U
C
FO
TS
EN
D
U
ST
Examples of Pairs
Grouping Four Adjacent 1’s: (Quad)
In a Karnaugh map we can group four adjacent 1’s. The resultant group is called
Quad. Fig (a) shows the four 1’s are horizontally adjacent and Fig (b) shows they are
vertically adjacent. Fig (c) contains four 1’s in a square, and they are considered adjacent
to each other.
The four 1’s in fig (d) and fig (e) are also adjacent, as are those in fig (f) because,
the top and bottom rows are considered to be adjacent to each other and the leftmost
and rightmost columns are also adjacent to each other.
M
O
C
S.
U
C
FO
TS
EN
D
U
ST
M
O
C
S.
U
C
F = yz+ xz’
FO
TS
Soln:
D
U
ST
F = z’+ xy’
3. F = A’C + A’B + AB’C + BC
Soln:
= A’C (B+ B’) + A’B (C+ C’) + AB’C + BC (A+ A’)
= A’BC+ A’B’C + A’BC + A’BC’ + AB’C + ABC + A’BC
= A’BC+ A’B’C + A’BC’ + AB’C + ABC
= m3+ m1+ m2+ m5+ m7
F = C + A’B
M
O
C
S.
U
C
FO
TS
F = A’C + B’
EN
D
M
Therefore,
O
C
F= y’+ w’z’+ xz’
3. F= A’B’C’+ B’CD’+ A’BCD’+ AB’C’
S.
U
= A’B’C’ (D+ D’) + B’CD’ (A+ A’) + A’BCD’+ AB’C’ (D+ D’)
C
FO
= ∑ m (0, 1, 2, 6, 8, 9, 10)
EN
D
U
ST
Therefore,
F= B’D’+ B’C’+ A’CD’.
M
O
C
Therefore, S.
U
Y= AB+ AC+ AD’.
C
FO
TS
Therefore,
Y= AB+ AC+ AD+BCD.
In the above K-map, the cells 5, 7, 13 and 15 can be grouped to form a quad as
M
indicated by the dotted lines. In order to group the remaining 1’s, four pairs have to be
O
formed. However, all the four 1’s covered by the quad are also covered by the pairs. So,
C
the quad in the above k-map is redundant.
S.
Therefore, the simplified expression will be,
U
C
M
O
9. F (A, B, C, D) = ∑ m (0, 1, 4, 8, 9, 10)
C
S.
U
C
FO
TS
EN
D
U
ST
1. Y= (A+ B+ C’) (A+ B’+ C’) (A’+ B’+ C’) (A’+ B+ C) (A+ B+ C)
= M1. M3. M7. M4. M0
=∏ M (0, 1, 3, 4, 7)
= ∑ m (2, 5, 6)
2. Y= (A’+ B’+ C+ D) (A’+ B’+ C’+ D) (A’+ B’+ C’+ D’) (A’+ B+ C+ D) (A+ B’+ C’+ D)
(A+ B’+ C’+ D’) (A+ B+ C+ D) (A’+ B’+ C+ D’)
= M12. M14. M15. M8. M6. M7. M0. M13
= ∏M (0, 6, 7, 8, 12, 13, 14, 15)
M
O
C
S.
U
C
FO
Y’ = B’C’D’+ AB+ BC
TS
M
O
C
S.
U
Y’ = BD’+ CD+ AB
C
FO
F (w, x, y, z) = w’x’+ yz
M
3. F (w, x, y, z) = ∑m (0, 7, 8, 9, 10, 12)+ ∑d (2, 5, 13)
O
C
S.
U
C
FO
TS
EN
D
U
ST
M
O
Five- Variable Maps:
C
S.
A 5- variable K- map requires 25= 32 cells, but adjacent cells are difficult to
U
identify on a single 32-cell map. Therefore, two 16 cell K-maps are used.
C
If the variables are A, B, C, D and E, two identical 16- cell maps containing B, C,
FO
D and E can be constructed. One map is used for A and other for A’.
TS
adjacent to the corresponding cell in the other map, because only one variable changes
between such corresponding cells.
D
U
ST
M
O
Typical subcubes on a five-variable map
C
However, the rightmost column of the map is not adjacent to the leftmost
column of the other map. S.
U
C
FO
TS
F (A, B, C, D, E) = ∑m (0, 2, 4, 6, 9, 11, 13, 15, 17, 21, 25, 27, 29, 31)
D
Soln:
U
ST
M
F (A, B, C, D, E) = C’D’E’+ A’B’CD’E+ A’B’CDE’+ AB’D’E’+ ABE+ BC’
O
C
S.
3. F (A, B, C, D, E) = ∑m ( 1, 4, 8, 10, 11, 20, 22, 24, 25, 26)+∑d (0, 12, 16, 17)
U
C
Soln:
FO
TS
EN
D
U
ST
M
O
C
5. F (x1, x2, x3, x4, x5) = ∑m (2, 3, 6, 7, 11, 12, 13, 14, 15, 23, 28, 29, 30, 31 )
S.
Soln:
U
C
FO
TS
EN
D
U
ST
F (x1, x2, x3, x4, x5) = x2x3’x4’+ x2x3x4x5’+ x3’x4’x5+ x1x2x4+ x1’x2’x3x5’+ x1’x2’x3’x4
M
O
LOGIC GATES
C
S.
U
BASIC LOGIC GATES:
C
Logic gates are electronic circuits that can be used to implement the most
FO
elementary logic expressions, also known as Boolean expressions. The logic gate is the
most basic building block of combinational logic.
TS
There are three basic logic gates, namely the OR gate, the AND gate and the NOT
EN
gate. Other logic gates that are derived from these basic gates are the NAND gate, the
NOR gate, the EXCLUSIVE- OR gate and the EXCLUSIVE-NOR gate.
D
U
ST
M
NOR
input is HIGH. When all its
O
(7402) inputs are LOW, the output is
C
HIGH. S.
U
C
FO
UNIVERSAL GATES:
The NAND and NOR gates are known as universal gates, since any logic
function can be implemented using NAND or NOR gates. This is illustrated in the
following sections.
a) NAND Gate:
The NAND gate can be used to generate the NOT function, the AND function,
M
O
C
S.
U
C
FO
TS
EN
D
iii) OR function:
By simply inverting inputs of the NAND gate. i.e.,
M
O
C
S.
U
C
FO
TS
EN
D
b) NOR Gate:
Similar to NAND gate, the NOR gate is also a universal gate, since it can be used
to generate the NOT, AND, OR and NAND functions.
i) NOT function:
By connecting all the inputs together and creating a single common input.
M
O
C
iii) AND function:
S.
By simply inverting inputs of the NOR gate. i.e.,
U
C
FO
TS
EN
D
U
ST
Truth table
M
O
C
S.
U
C
2. If NAND hardware has been chosen, add bubbles on the output of each AND
gate and bubbles on input side to all OR gates.
EN
If NOR hardware has been chosen, add bubbles on the output of each OR gate
D
Original Circuit:
M
O
C
S.
U
C
FO
TS
EN
D
U
ST
gate.
Adding bubbles on the output of each AND gates and on the inputs of each OR
M
O
C
S.
U
C
M
O
C
S.
U
C
FO
TS
EN
D
U
ST