Ec3352 Digital System Design Unit1
Ec3352 Digital System Design Unit1
Ec3352 Digital System Design Unit1
lOMoARcPSD|26677430
UNIT- I
BASIC CONCEPTS
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 formulated by
E.V. Huntington in 1904.
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
x*y=y*x all x, y Є S
Eg: 0+ 1 = 1+ 0 = 1 a) x+ y= y+ x
0.1=1.0=0 b) x. y= y. x
v) Inverse:
A set S having the identity element e, w.r.t. binary operator * is said to have an inverse,
whenever for every x Є S, there exists an element x’ Є S such that,
x. x’ Є e
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
Summary:
1) a) x+ x = x
x+ x = (x+ x) . 1 ------------------- by postulate 2(b) [ x. 1 = x ]
= (x+ x). (x+ x’) ------------------- 5(a) [ x+ x’ = 1]
= x+ xx’ ------------------- 4(b) [ x+yz = (x+y)(x+z)]
= x+ 0 ------------------- 5(b) [ x. x’ = 0 ]
=x ------------------- 2(a) [ x+0 = x ]
lOMoARcPSD|26677430
b) x. x = x
x. x = (x. x) + 0 ------------------- by postulate 2(a) [ x+ 0 = x ]
= (x. x) + (x. x’) ------------------- 5(b) [ x. x’ = 0]
= x ( x+ x’) ------------------- 4(a) [ x (y+z) = (xy)+ (xz)]
= x (1) ------------------- 5(a) [ x+ x’ = 1 ]
=x ------------------- 2(b) [ x.1 = x]
2) a) x+ 1 = 1
x+ 1 = 1 . (x+ 1) ------------------- by postulate 2(b) [ x. 1 = x ]
= (x+ x’). (x+ 1) ------------------- 5(a) [ x+ x’ = 1]
= x+ x’.1 ------------------- 4(b) [ x+yz = (x+y)(x+z)]
= x+ x’ ------------------- 2(b) [ x. 1 = x ]
=1 ------------------- 5(a) [ x+ x’= 1]
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
x+ xy = x. 1 + xy ------------------- by postulate 2(b) [ x. 1 = x ]
= x (1+ y) ------------------- 4(a) [ x (y+z) = (xy)+ (xz)]
= x (1) ------------------- by theorem 2(a) [x+ 1 = x]
= x. ------------------- by postulate 2(a) [x. 1 = 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)]
= x+ y (1) ------------------- 5(a) [x+ x’ = 1]
= x+ y ------------------- 2(b) [x. 1= x]
lOMoARcPSD|26677430
d) x. (x’+y) = xy
x. (x’+y) = x.x’+ xy---------------------------------by postulate 4(a) [ x (y+z) = (xy)+ (xz)]
= 0+ xy ------------------- 5(b) [x. x’ = 0]
= xy. ------------------- 2(a) [x+ 0= x]
x+ y = y+ x
According to this property, the order of the OR operation conducted on the variables makes no
difference.
Boolean algebra is also commutative over multiplication given by,
x. y = y. x
This means that the order of the AND operation conducted on the variables makes no difference.
2. Associative property:
The associative property of addition is given by,
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:
A+ BC = (A+B) (A+C)
The Boolean addition is distributive over Boolean addition, given by
4. Duality:
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.
Summary:
Theorems of Boolean algebra:
DeMorgan’s Theorems:
Two theorems that are an important part of Boolean algebra were proposed by
DeMorgan.
The first theorem states that the complement of a product is equal to the sum of the
complements.
(AB)’ = A’+ B’
The second theorem states that the complement of a sum is equal to the product of the
complements.
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,
BOOLEAN FUNCTIONS:
Minimization of Boolean Expressions:
The Boolean expressions can be simplified by applying properties, laws and
theorems of Boolean algebra.
1. x (x’+y)
= xx’+ xy [ x. x’= 0 ]
= 0 + xy [ x+ 0 = x ]
= xy.
2. x+ x’y
= x + xy + x’y [ x+ xy= x]
= x+ y (x+x’)
= x+ y (1) [ x+ x’ = 1]
= x+ y.
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
= x (1) + x’y [ 1+ x = 1 ]
= x+ x’y [ x+ x’y = x+ y ]
= x+ y.
Re-arranging,
= w’x’y+ wx’y + w’y z’ + w’xy’z’
= x’y (w’+ w) + w’z’ (y+ xy’)
lOMoARcPSD|26677430
28. Y= ∑m (1, 3, 5, 7)
= x’y’z+ x’yz+ xy’z+ xyz
= x’z( y’+y) + xz( y’+y)
= x’z (1)+ xz (1) [ x+ x’= 1]
= x’z+ xz
= z( x’+ x)
= z (1) [ x+ x’= 1]
= z.
COMPLEMENT OF A FUNCTION:
The complement of a function F is F’ and is obtained from an interchange of 0’s for 1’s
and 1’s for 0’s in the value of F. The complement of a function may be derived algebraically
through DeMorgan’s theorem.
DeMorgan’s theorems for any number of variables resemble in form the two- variable
case and can be derived by successive substitutions similar to the method used in the preceding
derivation. These theorems can be generalized as –
(A+ B+ C+ D+ … + F)’ = A’ B’ C’ D’ … F’
1. F= x’yz’+ x’y’z
F’= (x’yz’+ x’y’z)’
= (x”+ y’+ z”) . (x”+ y”+z’)
= (x+ y’+ z). (x+ y+ z’).
= x’+ y’z’
lOMoARcPSD|26677430
3. F= x (y’z’+ yz)
F’= [x (y’z’+yz)]’
= x’+ (y’z’+ yz)’
= x’+ (y’z’)’. (yz)’
= x’+ (y”+ z”) . (y’+ z’)
= x’+ (y+ z) . (y’+ z’).
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.
below.
Variables Minterms Maxterms
x y z mi Mi
0 0 0 x’y’z’ = m0 x+ y+ z= M0
0 0 1 x’y’z = m1 x+ y+ z’= M1
0 1 0 x’yz’ = m2 x+ y’+ z= M2
0 1 1 x’yz = m3 x+ y’+ z’= M3
1 0 0 xy’z’ = m4 x’+ y+ z= M4
1 0 1 xy’z = m5 x’+ y+ z’= M5
1 1 0 xyz’ = m6 x’+ y’+ z= M6
1 1 1 xyz = m7 x’+ y’+ z’= M7
3. Y= A. (B+ C+ A)
= (A+ B.B’+ C.C’). (A+ B+ C)
= (A+B+C) (A+B+C’) (A+B’+C) (A+ B’+C’) (A+B+C)
= (A+B+C) (A+B+C’) (A+B’+C) (A+ B’+C’)
= M0. M1. M2. M3
= ∏M (0, 1, 2, 3)
4. Y= (A+B’) (B+C) (A+C’)
= (A+B’+C.C’) (B+C+ A.A’) (A+C’+ B.B’)
= (A+B’+C) (A+B’+C’) (A+B+C) (A’+B+C) (A+B+C’) (A+B’+C’)
= (A+B’+C) (A+B’+C’) (A+B+C) (A’+B+C) (A+B+C’)
= M2. M3. M0. M4. M1
lOMoARcPSD|26677430
= ∏M (0, 1, 2, 3, 4)
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)
= M4. M5. M0.M2
= ∏M (0, 2, 4, 5).
Product terms are assigned to the cells of a K-map by labeling each row and each column
of a map with a variable, with its complement or with a combination of variables &
complements. The below figure shows the way to label the rows & columns of a 1, 2, 3 and 4-
variable maps and the product terms corresponding to each cell.
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.
lOMoARcPSD|26677430
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.
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.
Examples of Quads
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.
STUDENTSFOCUS
4. Check for quads and octets of adjacent 1’s even if it contains some 1’s that have
already been encircled. While doing this make sure that there are minimum number
of groups.
5. Combine any pairs necessary to include any 1’s that have not yet been grouped.
6. Form the simplified expression by summing product terms of all the groups.
F = yz+ xz’
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
= ∑ m (1, 2, 3, 5, 7)
lOMoARcPSD|26677430
F = C + A’B
F = A’C + B’
Therefore,
F= y’+ w’z’+ xz’
3. F= A’B’C’+ B’CD’+ A’BCD’+ AB’C’
= A’B’C’ (D+ D’) + B’CD’ (A+ A’) + A’BCD’+ AB’C’ (D+ D’)
= A’B’C’D+ A’B’C’D’+ AB’CD’+ A’B’CD’+ A’BCD’+ AB’C’D+ AB’C’D’
= m1+ m0+ m10+ m2+ m6+ m9+ m8
= ∑ m (0, 1, 2, 6, 8, 9, 10)
Therefore,
F= B’D’+ B’C’+ A’CD’.
Therefore,
Y= AB+ AC+ AD’.
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 indicated
by the dotted lines. In order to group the remaining 1’s, four pairs have to be formed. However,
all the four 1’s covered by the quad are also covered by the pairs. So, the quad in the above k-
map is redundant.
Therefore, the simplified expression will be,
Y = A’C’D+ A’BC+ ABD+ ACD.
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)
Y’ = B’C’D’+ AB+ BC
Y= Y” = (B’C’D’+ AB+ BC)’
= (B’C’D’)’. (AB)’. (BC)’
= (B”+ C”+D”). (A’+B’). (B’+ C’)
= (B+ C+ D). (A’+ B’). (B’+ C’)
Therefore, Y= (B+ C+ D). (A’+ B’). (B’+ C’)
Y’ = BD’+ CD+ AB
F (x, y, z) = 1
F (w, x, y, z) = w’x’+ yz
Soln:
F( A, B, C, D) = CD’+ B’D’+ A’B’C’D’.
corresponding cells.
Five- Variable Karnaugh map (Layer Structure)
Thus, every row on one map is adjacent to the corresponding row (the one occupying the
same position) on the other map, as are corresponding columns. Also,
the rightmost and leftmost columns within each 16- cell map are adjacent, just as they are in
any 16- cell map, as are the top and bottom rows.
lOMoARcPSD|26677430
2. F (A, B, C, D, E) = ∑m (0, 5, 6, 8, 9, 10, 11, 16, 20, 24, 25, 26, 27, 29, 31)
Sol
3. F (A, B, C, D, E) = ∑m ( 1, 4, 8, 10, 11, 20, 22, 24, 25, 26)+∑d (0, 12, 16, 17)
Soln:
5. F (x1, x2, x3, x4, x5) = ∑m (2, 3, 6, 7, 11, 12, 13, 14, 15, 23, 28, 29, 30, 31 )
Soln:
6. F (x1, x2, x3, x4, x5) = ∑m (1, 2, 3, 6, 8, 9, 14, 17, 24, 25, 26, 27, 30, 31 )+ ∑d (4, 5)
Soln:
F (x1, x2, x3, x4, x5) = x2x3’x4’+ x2x3x4x5’+ x3’x4’x5+ x1x2x4+ x1’x2’x3x5’+ x1’x2’x3’x4
LOGIC GATES
BASIC LOGIC
GATES:
Logic gates are electronic circuits that can be used to implement the most elementary
logic expressions, also known as Boolean expressions. The logic gate is the most basic building
block of combinational logic.
There are three basic logic gates, namely the OR gate, the AND gate and the NOT 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.
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, the OR
function and the NOR function.
i) NOT function:
lOMoARcPSD|26677430
By connecting all the inputs together and creating a single common input.
iii) OR function:
By simply inverting inputs of the NAND gate. i.e.,
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.
ii) OR function:
By simply inverting output of the NOR gate. i.e.,
Truth table
Original Circuit:
Soln:
NAND Circuit:
lOMoARcPSD|26677430
:
lOMoARcPSD|26677430
gate.
Adding bubbles on the output of each AND gates and on the inputs of each OR