(Jan 15) DPSD 01.01 KG
(Jan 15) DPSD 01.01 KG
Review of Number Systems – Arithmetic Operations – Binary Codes – Boolean Algebra and
Theorems – Boolean Functions – Simplification of Boolean Functions using Karnaugh Map and
Tabulation Methods – Logic Gates – NAND and NOR Implementations.
Digital electronics have made possible in many systems to minimize the analogous in
the electronic system. Everybody knows and deals with the electronic and electricals with
analog form, where a quantity is described by the amount of voltage, or current etc.,
expressed in a variable. However to minimize the analog function, a large proportion of
electronic equipment, including computers, uses digital electronic and also where the
quantities are described by two states; ON and OFF. These two states can also be
represented by true or false as 1 and 0 respectively. Since many quantities cannot be
represented by two states, more than one binary digit can be used to represent a number.
DIGITAL ELECTRONICS
Digital electronics deals with 0‟s and 1‟s in an electronic device. Digital stands for
„digit‟. Basically it has two states: 1 referred as true and 0 referred as false. Those states
can be implemented with a two valued logic using logic gates.
Digital electronics may also be referred as electronic devices (or) circuits representing
signal by discrete bands of analog levels, rather than by a continuous range.
The general-purpose digital computer is the best-known example of a digital system.
Other examples include telephone switching exchanges, digital voltmeters, frequency
counter and calculators, etc.
General characteristic of a digital system is its manipulation of discrete elements of
information. Such discrete elements may be electric impulses, the decimal digits, the letters
of an alphabet, arithmetic operations, punctuation marks, or any other set of meaningful
symbols.
1.2 Digital Principles and System Design
Before going to discuss about the techniques used to minimize the logics and about
logic gates, let us see about the number systems.
A number system that uses eight digits 0, 1, 2, 3, 4, 5, 6 and 7 is called an octal number
system. It has a base of eight.
Example: (765.42)8
These each digits has a respective multiplier of i.e.,
The hexadecimal number system has a base of 16. Thus, it has 16 distinct digit
symbols. It uses the digit 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 plus the A, B, C, D, E and F as 16 digit
symbols.
Example: (A8C.28)16
These each digits has a respective multipliers of
1.4 Digital Principles and System Design
Example 1.1 Convert the following decimal numbers to Binary, Octal and
Hexadecimal. (i) (455)10 (ii) (256.22)10
Solution:
Example 1.2 Convert the following binary number to decimal, octal and
hexadecimal. (i) (11101)2 ; (ii) (100010.011)2
Solution:
(100)2 = (4)8
Boolean Algebra and Logic Gates 1.7
For first 3-bit is .011 For second 3-bit, is 010
For second 3-bit is, 101 For fractional value, split the 3-bits from
left side
(101)2 (5)5
Example 1.3 Convert the following octal number to decimal, binary and
hexadecimal. (i) (35) ; (ii) (42.3)
8 8
Solution:
(a) Octal to Decimal
(i) (35)8 (ii) (42.3)8
Similarly
Therefore (35)8 = (29)10
(42)8 = (34)10
For fractional value (0.11)
4 = 100 2 = 010
Hence (42)8 = (100010)2
3 = 011 5 = 101 For fractional value .3
Therefore the answer for
(35)8 = (011101)2
i.e., (3 5) 3 = 011
011 101
Therefore the answer for
(42.3)8 = (100010.011)2
Example 1.4 Convert the following hexadecimal number to decimal, binary and
octal. (i) (1D) , (ii) (22.6)
16, 16
Solution:
(a) Hexadecimal to Decimal
(i) (1D) (ii) (22.6)16
16
Similarly
Therefore the answer for (22)16 = (34)10
(1D)16 = (29)10
For fractional number
(.6)16 = (0.375)10
(1D)16 = (00011101)2
(c) Hexadecimal to Octal
(i) (1D) (ii) (22.6)16
16
There is no direct conversion between Similarly
hexadecimal to octal. So convert the We know that
hexadecimal to binary and then that binary (22.6)16 = (00100010.0110)2
to octal.
Boolean Algebra and Logic Gates 1.11
We know that also
(1D)16 = (00011101)2 000100010.0110 = 100 010 . 011
also
4 2 . 3
00011101 = 000 011 101 Therefore the answer for
0 3 5 (22.6) = (42.3)
16 8
Therefore the answer for
(1D)16 = (35)8
Note For 1 + 1 = 10 (Here 0 is the result and 1 is the carry into next position).
1 + 1 = 10
1 + 1 + 1 = 11
1 + 1 + 1 + 1 = 100 (Here 0 is the result and 10 is the carry into next position)
1 + 1 + 1 + 1 + 1 = 101
Solution:
(i) 101 and 111 (ii) 1100 and 1101
Binary Decimal Binary Decimal
111 7 1101 13
–101 –5 –1100 –12
010 2 0001 1
(iii) 010.01 from 110.10 (iv) 0100.11 from 1000.11
Binary Decimal Binary Decimal
110.10 6.50 1000.11 8.75
010.01 2.25 0100.11 4.75
100.01 4.25 0100.00 4.00
1.3. COMPLEMENTS
Complements are used in digital computers for simplifying the subtraction operation
and for logical manipulation. There are two types of complements.
(i) r ‟s complement
(ii) (r – 1)‟s complement
where r is the base of the respective number system.
For binary number (Base = r = 2), we have the following complements.
1. 2‟s complement (r ‟s complement)
2. 1‟s complement ((r – 1)‟s complement)
For decimal numbers (Base = r = 10), we have the following complements.
1. 10‟s complement (r ‟s complement)
2. 9‟s complement ((r – 1)‟s complement)
Example 1.10 Subtract the following binary number using 1’s complement method.
(i) 1100 from 1111 (ii) 1010 from 1110
Solution:
(i) 1100 from 1111
Here the smaller number is 1100.
Step 1: Take 1‟s complement to the smaller number.
Binary 1’s complement
1100 0011
Verification:
Binary Decimal
1111 15
1100 – 12
30011
Boolean Algebra and Logic Gates 1.17
Verification:
Binary Decimal
1110 14
1010 – 10
0100 4
(b) To subtract a larger number from a smaller number.
(i) Take the 1‟s complement for the larger number.
(ii) Add the 1‟s complement to the smaller number.
(iii) The answer has a opposite sign and is the 1‟s complement of the result. There is
no carry.
Example 1.11 Subtract (i) 1111 from 1100 and (ii) 1110 from 1010
Solution:
(i) 1111 from 1100
Here larger number is 1111 0000 is 1‟s complement form.
1’s complement method Direct subtraction
0000 1100
+ 1100 – 1111
+ 1100 – 0011
Take 1‟s complement for
1100 – 0011 is the result.
1.18 Digital Principles and System Design
Example 1.12 Take 2’s complement for a binary number 1101 and 1010.
Solution:
(i) 1101
Binary number 1101
1‟s complement 0010
+1
2‟s complement 0011
(ii) 1010
Binary number 1010
1‟s complement 0101
+1
2‟s complement 0110
Example 1.13 Add the following decimal number using binary addition.
(i) 12 + 4 (ii) 12 + (– 4) (iii) (– 12) + 4 (iv) (– 12) + (– 4)
Boolean Algebra and Logic Gates 1.19
Solution:
(i) 12 + 4
Decimal Binary
1
12 1100
4 0100
16 10000
(ii) 12 + (– 4)
For a signed decimal addition using binary numbers. Follow the following rules.
(i) Take the two number in 8-bit value.
(ii) Take 2‟s complement for a negative signed number.
(iii) Add the positive number and 2‟s complement number.
(iv) Addition will be the result. If the result will be a negative s igned number, then the
result is 2‟s complement of the number.
12 0000 1100
4 0000 0100
12 00001100
–4 11111100
+8 00001000
1.20 Digital Principles and System Design
(iii) (– 12) + (4)
Take 2‟s complement to the 12.
12 00001100
1‟s complement 11110011
+ 1
2‟s complement 11110100
– 12 1 1 1 1 0 1 0 0
4 00000100
–8 11111000
Since the addition was result in negative number, so the produced result will be in 2‟s
complement of 8.
To verify the result, take 2‟s complement of 8.
8 00001000
1‟s complement 1 1 1 1 0 1 1 1
1
2‟s complement 1 1 1 1 1 0 0 0 = (– 8)
The 2‟s complement of 8 and resultant values of ( – 12) + 4 is equal. Hence the
addition was found correct.
(iv) (– 12) + (– 4)
Here both the numbers are negative numbers. Hence take 2‟s complement of 12 and 4.
12 00001100 4 00000100
11110011 11111011
1 1
– 12 = 11110100 – 4 = 11111100
– 12 11110100
– 4 11111100
– 16 11110000
Boolean Algebra and Logic Gates 1.21
Since the addition results in negative number, the produced result will be in 2‟s
complement of 16.
To verify the result, take 2‟s complement of 16.
16 00010000
1‟s complement 11101111
1
2‟s complement 11110000 = (–16)
The 2‟s complement of 16 and resultant value of (– 12) + (– 4) is equal. Hence the
addition was found correct.
Example 1.14 Find the 9’s complement of the following decimal number.
(i) 8 (ii) 27 (iii) 368 (iv) 4516
Solution: To find 9‟s complement, subtract each decimal digit from the value 9.
(i) 8 (ii) 27
Here only one digit is there. Here two digits are there, so
9 99
–8 – 27
9‟s complement of 27
1 9‟s complement of 8 72
1.22 Digital Principles and System Design
Example 1.15 Perform subtraction of the given decimal number using 9’s
complement.
(i) 5 from 9 (ii) 16 from 25 (iii) 18 from 11
Solution:
(i) 5 from 9
(ii) 16 from 25
Boolean Algebra and Logic Gates 1.23
(iii) 18 from 11
Direct subtraction
99 11
18 – 18
81 9‟s complement of 18 – 07
11
81
92
Negative sign indicated in 9‟s complement.
99
92
– 07
Example 1.16 Find the 10’s complement of the following decimal number.
(i) 6; (ii) 64; (iii) 562; (iv) 4621
Solution:
(i) 6 (ii) 64
9 99
–6 – 64
3 35
+1 +1
4 10‟s complement of 6 36 10‟s complement of 64
1.24 Digital Principles and System Design
(ii)562 (iv)4621
999 9999
– 562 4621
437 5378
+1 +1
438 10‟s complement of 562 5379 10‟s complement of 4621
Example 1.17 Perform the subtraction of the given decimal number using 10’s
complement.
(i) 6 from 9; (ii) 16 from 25; (iii) 18 from 11
Solution:
(i) 6 from 9
10‟s complement of 6 is 4 Direct subtraction
9 9
+4 6
Carry 3 3
Discard carry, hence result is 03
(ii) 16 from 25
(a) Law 1: A B = B A
A binary operator „.‟ on a set „x ‟ is said to be commutative whenever
A B = B A for all A, B x
„.‟ represents the multiplication (AND) operation.
Boolean Algebra and Logic Gates 1.27
i.e.,
A B A B A B BA
0 0 0 0 0 0
=
0 1 0 0 1 0
1 0 0 1 0 0
1 1 1 1 1 1
(b) Law 2: A + B = B + A
A binary operator „+‟ on a set x is said to be commutative whenever,
A + B = B + A for all A, B x
“+” represent „OR‟ operation
i.e.,
A B A+B A B B+A
0 0 0 0 0 0
=
0 1 1 0 1 1
1 0 1 1 0 1
1 1 1 1 1 1
(b) Law 2: (A B) C = A (B C)
A binary operator „.‟ on a set „x ‟ is said to be associative whenever
(A B) C = A (B C) for all A, B x
i.e.,
A B C AB (A B) C A B C BC A (B C)
0 0 0 0 0 0 0 0 0 0
0 0 1 0 0 0 0 1 0 0
0 1 0 0 0 0 1 0 0 0
=
0 1 1 0 0 0 1 1 1 0
1 0 0 0 0 1 0 0 0 0
1 0 1 0 0 1 0 1 0 0
1 1 0 1 0 1 1 0 0 0
1 1 1 1 1 1 1 1 1 1
The principle of duality theorem states that, every algebraic expression from the
postulates of Boolean algebra remains valid if the operators and identity elements are
interchanged.
= A + A – 1 (A A = 1)
– – –
= A+A (A 1–= A)
= 1 (A + A = 1)
Theorem 2(b): A 0=0
A
0 0 = 0 A 0 = 0
10 0
=
Boolean Algebra and Logic Gates 1.31
=
Theorem 3: A = A (Involution)
=
A = A (i.e., double the complement of A is A)
A – =
A A=A
0 1 0 =
A=A
1 0 1
Theorem 4(a): A + AB = A (Absorption)
A B AB A + AB
0 0 0 0
0 1 0 0 A + AB = A
1 0 0 1
1 1 1 1
Proof:
A + AB = A 1 + AB By postulates (A 1 = A)
= A (1 + B) By theorem 2(a) (1 + A = 1)
= A1 (A 1 = A)
= A
Theorem 4(b): A (A + B) = A (Absorption)
A B A+B A (A + B)
0 0 0 0
0 1 1 0 A(A + B) = A
1 0 1 1
1 1 1 1
Proof:
1.4.6. CONSENSUS
THEOREM
–
In simplification of Boolean expression, an expression of the form AB–+ AC + BC, the
term BC is redundant and can be eliminated to form the equivalent AB + AC. The theorem
used for this simplification is known as consensus theorem and it is stated as
– –
AB + AC + BC = AB + AC
Boolean Algebra and Logic Gates 1.33
Proof: – – –
AB + AC + BC = AB + AC + (A + A) BC
= – –
AB + AC + AB + AC
= –
AB + AC
Table 1.2. List of Postulates, Laws and Theorem of Boolean Algebra
Boolean algebra is an algebra that deals with binary variables and logic operations. A
Boolean function described by an algebraic expression consists of binary variables.
Example: The Boolean function consists of variable A, B and C can be expressed as
f (A, B, C) = (A + B) C (or) f = (A + B) C
A Boolean function can be represented in a truth table. The number of rows in the truth
n
table is given by 2 where n is the number of variables.
For example, if the function consists of three variable A, B and C, then number of rows
n 3
in truth table = 2 = 2 = 8.
1.34 Digital Principles and System Design
1.5.1. MINTERMS
– A binary variable may appear either in its normal form (A) or its complement form
(A). Now consider two binary variables A and B combined with an AND operation. These
– –
two variables may be in two form i.e., A, A, B and B. If these variables are combined with
–– – –
an AND operation, there are four possible combinations: AB, AB, AB, AB. Each of these
four AND terms is called a minterm or a standard product.
Example: Variable A and B are combined with AND operation then AB is called as
minterm. It is denoted by m .
1.5.2. MAXTERMS
In similar to minterms, if the variables are combined with an „OR‟ operation, there are
– – – –
four possible combinations: A + B, A + B, A + B, A + B. Each of these four OR terms is
called a maxterm or a standard sum.
Example: Variable A and B are combined with OR operation, then A + B is called as
maxterm. It is denoted by M.
Minterm and Maxterm for three Binary Variables
Variable = 3; n 3
So 2 = 2 = 8 rows of binary values
A B C Minterms Maxterms
Term Designation Term Designation
–––
0 0 0 ABC m0 A+B+C M0
–– –
0 0 1 ABC m1 A+B+C M1
– – –
0 1 0 ABC m2 A+B+C M2
– – –
0 1 1 ABC m3 A+B+C M3
–– –
1 0 0 ABC m4 A+B+C M4
– – –
1 0 1 ABC m5 A+B+C M5
– – –
1 1 0 ABC m6 A+B+C M6
– – –
1 1 1 ABC m7 A+B+C M7
Boolean Algebra and Logic Gates 1.35
We know that according to Duality principle, if AND is replaced by OR, then the
binary variables also changed i.e., 0 replace 1. The minterm and maxterm also describes
the principles of duality theorem. Thus in minterm, if the binary of A is 0, then it is
–
represented as A and in maxterm if the binary value of A is 0, then it is represented as A.
The product terms are summed together with a OR Logic is known as Sum of Product
(SOP).
Here the function has three variables, these three variables are present in each of the
product terms either in complemented or uncomplemented. Hence this expression is in
standard SOP form.
Here the function has three variables, these three variables are present in each of the
sum terms either in complemented or uncomplemented form. Hence this expression is in
standard POS form.
Step 2: ANDing each product term by ORing the missing variable and its complement.
Step 3: Expand the terms by applying distributive law and reorder it by the variables.
Step 4: Reduce the expression by omitting repeated product terms if any.
Step 2: AND Product term with ORing the missing variables and
Step 3: Expand the terms and reorder it – – –
F(A, B, C) = –
A (B + B) (C + C) + BC (A + A)
– – – ––
= (AB + AB) (C + C) + ABC + ABC
– – –– – ––
= ABC + ABC + ABC + ABC + ABC + ABC
Step 4: Omit repeated product terms – –– ––
F(A, B, C) = –
ABC + ABC + ABC + ABC + ABC
– – –
[ ABC + ABC = ABC]
Then the standard SOP form is
F(A, B, C) = – – –– ––
ABC + ABC + ABC + ABC + ABC
EXERCISE PROBLEM
1. Convert the expression in standard SOP form: – – –
f (A, B, C) = AC + AB + BC
[Ans. f (A, B, C) = ABC + ABC + ABC + ABC]
2. Convert the expression in standard SOP form. – – ––
f (A, B, C) = A + ABC
[Ans. f (A, B, C) = ABC + ABC + ABC + ABC]
Boolean Algebra and Logic Gates 1.39
SOLVED EXAMPLES
f (A, B, C) – – – – –
= (A + B + C) (A + B + C) (A + B + C) (A + B + C) (A + B +
C)
1.40 Digital Principles and System Design
EXERCISE
PROBLEM
1. Convert the given expression in standard POS form.
F(A, B, C) = A (A + B + C) – – – –
Since we discussed about the postulates and theorem of Boolean algebra, Boolean
expression can be reduced by those theorems and postulates.
Z = A
EXERCISE PROBLEMS
Z = A + AB + ABC + ABCD
= A (1 + B + BC + BCD) [ 1 + B = 1]
= A1=A
Z =A
–––––––––––
–––––––
8. Y = (ABC) ( AB ) + CB
Y = ––––––––––––––––
(ABC) (AB) + CB
–––– ==== –
= (ABC) + ( AB ) + BC
= – – –
(ABC) (A + B) + BC
1.44 Digital Principles and System Design
= – – – –– – –
ABCA + ABCB + BC [ A A = 0, B B = 0]
=
0 + 0 + BC
Y = –
BC
9. – – –
F = X (XYZ + XYZ)
F = – – –
X (XYZ + XYZ)
= – – – –
XXYZ + XXYZ [ X X = 0]
= –
0 YZ + 0 YZ
F =0
–– –– ––
10. F = (X1 + X2) (X1 + X1 X2) + (X2 + X1 X2 )
–– –– ––
F = (X1 + X2) (X1 + X1X2) + (X2 + X1X2)
–– –– –– ––
= X1X1 + X1X1X2 + X2X1 + X2X1X2 + X2 + X1X2
–– –– ––
= 0 + X1X2 + X2X1 + X1X2 + X2 + X1X2
–– –– ––
= X2X1 + X2X1 + X1X2 + X1X2 + X2
–– –– ––
= X2 (X1 + X1) + X1 (X2 + X2) + X2
––
= X2 1 + X 1 1 + X 2
––
F = X2 + X1 + X2
F = M (0, 2, 4, 5)
Example 1
.
2
Convert the following SOP expression to an equivalent POS
6
expression. – –– – – – –
ABC + ABC + ABC + ABC + ABC
Solution: The given expression is in standard SOP form.
F = ––– – – – –
ABC + ABC + ABC + ABC + ABC
000 010 011 101 111
0 2 3 5 7
F = m (0, 2, 3, 5, 7)
Therefore the POS is a complement of SOP.
– = (1, 4, 6) = 001 + 100 + 110
F
– = 001 + 100 + 110
F
= = ––––––––––––––
F 001 + 100 + 110
F = ––– ––– ––– –––– ––––– –––––
001 100 110 ( ABC ) ( ABC ) ( ABC )
– – – –
F = (A + B + C) (A + B + C) (A + B +
C)
Boolean Algebra and Logic Gates 1.47
Fig. 1.5.
Similarly,
––– – – –– –
F = ABD + ABD F = ACD + ABC + ABC + ACD
Fig. 1.7. (ii) Fig. 1.7. (iii)
Illegal Grouping
Fig. 1.11. (i) Diagonal grouping is illegal Fig. 1.11. (ii) Odd number ones is illegal
Fig. 1.11. (iii) Odd number ones is illegal
Boolean Algebra and Logic Gates 1.55
(ii) Place 1s in those cells corresponding to the terms in the given expression.
– –
F = XZ + Y
–– –– –
Y(ABCD) = AC + AD + BCD
Place the one‟s in those corresponding to the values in the given expression.
–– –– – –
Y(ABCD) = ABC + ACD + ACD
1.58 Digital Principles and System Design
Y(A, B, C) = m (0, 1, 2, 3, 4, 5, 6, 7)
0 – 000 – – – 4 – 100 – ––
– ABC; ABC
1 – 001 – – 5 – 101 – –
– ABC; ABC
2 – 010 – – 6 – 110 – –
– ABC; ABC
3 – 011 – 7 – 111 – ABC
– ABC;
Place the one‟s in those corresponding to the values in the given expression.
i.e.,
Y(A, B, C) = 1
Boolean Algebra and Logic Gates 1.59
In the above K-Map, there are eight adjacent ones, so octet is possible. For this, there
no common variable, therefore the expression 1.
Place the one‟s in those corresponding to the values in the given expression.
–
Y(A, B, C) = C
Example 1.33 Simplify the following expressions using K-Map.
Y(A, B, C, D) = m (0, 2, 4, 7, 8, 10, 12, 13)
Solution:
Place the one‟s in those corresponding to the values in the given expression.
1.60 Digital Principles and System Design
– – –– ––
Y(A, B, C, D) = ABCD + ABC + BD + CD
Y(A, B, C, D) = AB + AC + AD + BCD
Solution:
– – –– – – ––
F(A, B, C, D) = C + BD + AD F(W, X, Y, Z) = Y + XZ + WZ
Example 1.36 Simplify the Boolea n Example 1.37 Minimize the following
Expression using K-Map method. logic function using K-Map.
Y(A, B, C, D) = m (0, 1, 2, 3, 4, 5, 6, 11) Y(A, B, C, D) = m (0, 1, 2, 3, 5, 7, 8, 9, 11,
14)
Solution: Solution:
–– –– – –– – –– – –
Y(A, B, C, D) = AC + AD + BCD Y(A,B,C,D) = AB+AD+BC+BD+ABCD
1.62 Digital Principles and System Design
EXERCISE PROBLEMS
To get POS structure, take complement for the each terms in row and columns.
–
Y(A, B, C, D)
Boolean Algebra and Logic Gates 1.63
Example 1.38 Simplify the Boolean expression using K-Map in POS form.
– – – – – – – –
Y(A, B, C) = (A + B + C) (A + B + C) (A + B + C) (A + B + C)
Solution:
Given: Y(A, B, C) = – – – – – – – –
(A + B + C) (A + B + C) (A + B + C) (A + B + C)
In POS, – – –
A, B, C = 0 and A, B, C = 1.
Y(A, B, C) = (0 + 1 + 0) (1 + 1 + 0) (0 + 1 + 1) (1 + 1 + 1)
= 010 110 011 111
= 2 6 3 7
Y(A, B, C) = П (2, 6, 3, 7)
Place 0s in those cells corresponding to the values in the given expression and in the
remaining cells place 1s.
Boolean Algebra and Logic Gates 1.65
In SOP, we have grouping the adjacent ones, but in POS, we have to group adjacent
zeros, because POS is the complementary function of SOP.
Also place 0‟s in those corresponding to the values in the expression instead of 1‟s.
–
Y(A, B, C) = B
– –
Y(A, B, C) = (A + C) (A + B)
Example 1.40 Minimize the Boolean expression using K-Map.
Y(A, B, C) = П M (0, 3, 5, 6)
1.66 Digital Principles and System Design
Solution:
– – – – – –
Y(A, B, C) = (A + B + C) (A + B + C) (A + B + C) (A + B + C)
– –
Y(A, B, C, D) = B + D
–
Y(A, B, C, D) = (A + C) (C + D) (B + C)
– – – – – – –
(A + B + D) (A + C + D) (B + C +
D)
Solution:
–
Y(A, B, C, D) = (B) (A + C)
– – – – – –
Y(A, B, C, D) = (A + B) (A + C + D) (A + C + D) (A + C + D)
EXERCISE PROBLEM
Simplify the following expression using K-Map in POS form.
(i) Y(A, B, C) = П M (0, 1, 4, 5) [Ans. Y(A, B, C) = B]
(ii) Y(A, B, C) = П M (0, 2, 4, 5) –
[Ans. (A + C) (A +
B)]
(iii) Y(A, B, C, D) = П M (0, 2, 8, 9, 12, 13, 15) – – – –
[Ans. (A + C) (A + B + D) (A + B + D)]
Boolean Algebra and Logic Gates 1.69
(iv) Y(A, B, C, D) = П M (0, 1, 2, 3, 5, 6, 7, 12, 14)
– – – –
[Ans. (A + B) (A + D) (A + C) (A + B + D)]
(v) – –
Y(A, B, C, D) = (A + B + C) (A + B + D) [Ans. (A + B + C) (A + B + D)]
– – –
Y(A, B, C) = A + B + C
––
Y(A, B, C, D) = CD + AB
Solution:
–– – –
F(A, B, C, D) = BD + AC + ABD
–– –– – –
F(A, B, C, D) = ACD + BCD + ACD + BCD
Place 0‟s in those corresponding to the values in П M and place „X‟ in those
corresponding to the values in d .
Y(A, B, C) = (A + B) (C)
– – –
f (A, B, C, D) = (A + B) (B + D) (A + B + C)
– – –
f (W, X, Y, Z) = (W + X + Z) (W + Y) (X + Z)
EXERCISE PROBLEM
Simplify the Boolean function. –
(i) Y(A, B, C) = m (0, 1, 3, 5) + d (2, 5)
[Ans. A + C]
1.74 Digital Principles and System Design
(ii) Y(A, B, C, D) = m (1, 3, 5, 8, 9, 11, 15) + d (2, 13) – –– –
–
Y(A, B, C, D, E) = BC
Solution:
––– ––– –– – – –– – –
F(A, B, C, D, E) = BCD + ADE + BCE + ABCD + ACD + ABCE
Y(A, B, C, D, E) = П M (3, 4, 7, 11, 15, 19, 21, 23, 27, 28, 29, 31)
Solution:
– – – – – – – – –
Y(A, B, C, D, E) = (A + C + E) (A + B + C + D) (A + B + C + D + E) (D + E)
Boolean Algebra and Logic Gates 1.77
EXERCISE PROBLEM
Limitations of K-Map
The K-Map method of simplification is convenient for the number of variables does not
exceed five or six. As the number of variables increases, the excessive number of squares
prevents a reasonable selection of adjacent squares. For the function of six or more
variables, it is difficult to plot and grouping the best selection has been made.
1.7.3. QUINE–McCLUSKEY
Step 4: Repeat step 3 for the resultant column and continue these cycles until no further
elimination of variables takes place.
Step 5: List the prime implicants. [The remaining terms and the terms which do not
match during the process are called prime implicants] i.e., prime implicants
are which has uncheck mark].
Step 6: Form Prime Implicant Chart
(i) The prime implicants should be represented in rows and each minterm of
the function in a column.
(ii) Cross (X) should be placed in each row to show the composition of
minterm that makes the prime implicants.
(iii) A completed prime implicant table should be inspected for columns
containing only a single cross. Prime implicants that cover m interm with
a single cross in their columns are called essential prime implicants.
Step 7: Select the minimum number of primes that must cover all the minterms.
Example 1.56 Simplify the given expression using Quine McCluskey Method.
f(a, b, c, d) = m (0, 1, 2, 3, 8, 9)
Solution: Step 1: List all the minterms in the binary form.
Minterm Binary Representation
m0 0000
m1 0001
m2 0010
m3 0011
m8 1000
m9 1001
Step 2: Arrange the minterms according to the number of 1s and also split them.
Minterm Binary Representation Group
m0 0000 Group 0
Number of 1s zero
m1 0001 Group 1
m2 0010 Number of 1s one
m8 1000
m3 0011 Group 2
m9 1001 Number of 1s two
Boolean Algebra and Logic Gates 1.79
Step 3: Compare each binary number with next higher group. If they differ by only one
position and put a check mark.
Step 4: Repeat step 3 for the resultant column and continue these cycles until no
further elimination of variables takes place.
Minterms Binary Representation Minterms Binary
Representation
0, 1 0 0 0 – 0, 1, 8, 9 – 0 0 –
0, 2 0 0 – 0 0, 1, 2, 3 0 0 – –
0, 8 – 0 0 0
1, 3 0 0 – 1
1, 9 – 0 0 1
2, 3 0 0 1 –
8, 9 1 0 0 –
Step 7: Select the minimum number of primes that must cover all the minterms.
Here both (0, 1, 8, 9) and (0, 1, 2, 3) are essential prime implicants, so we have to
consider both the primes.
1.80 Digital Principles and System Design
a b c d
0, 1, 8, 9 – 0 0 – ––
=bc
0, 1, 2, 3 0 0 – – ––
=ab
–– ––
f (a , b, c , d ) = b c + a b
m7 0111
m 1011 Number of 1s three
11
m 1110
14
m 1111 Number of 1s four
15
Boolean Algebra and Logic Gates 1.81
Step 3: Compare each binary number with higher group.
Prime Minterms
Implicant 0 5 7 8 9 10 11 14 15
X X
0, 8
X X
5, 7
7, 15 X X
X X X X
8, 9, 10, 11
X X X X
10, 11, 14, 15
Essential Prime
Step 7: Select the minimum number of primes that must cover all the minterms.
Here (0, 8), (5, 7), (8, 9, 10, 11) and (10, 11, 14, 15) are the essential primes and (7, 15)
is covered by the prime (5, 7) and (10, 11, 14, 15). So eliminate the prime (7, 15).
Example 1.58 Simplify the logic function using Quine-McCluskey Method and
realize using NAND gates.
F(A, B, C, D) = m (1, 3, 4, 5, 9, 10, 11) + d (6, 8) (Nov/Dec 2011)
Boolean Algebra and Logic Gates 1.83
Solution:
Minterm Binary Representation
m1 0001
m3 0011
m4 0100
m5 0101
m9 1001
m 1010
10
m 1011
11
d6 0110
d8 1000
Column – 1 Column – 2
Minterm Binary Minterm Binary Representation
Representation
1 0001 1, 3
00–1
4 0100 1, 5 0–01
8 1000 1, 9
–001
3 0011 4, 5 010–
5 0101 4, 6 01–0
6 0110 8, 9
100–
9 1001 8, 10
10–0
10 1010 3, 11
–011
11 1011 9, 11
10–1
10, 11
101–
Prime Minterms
Implicants 1 3 4 5 9 10 11
1, 5 X X
X X
4, 5
4, 6 X
X X X X
1, 3, 9, 11
X X X
8, 9, 10, 11
Fig. 1.12.
Example 1.59 Simplify the given Boolean function using tabulation method.
F(A, B, C, D) = m(1, 2, 3, 5, 7, 9, 10, 11, 13, 15) (Nov/Dec 2012)
Solution:
Minterm Binary Representation
m1 0001
m2 0010
m3 0011
m5 0101
m7 0111
m9 1001
m 1010
10
m 1011
11
m 1101
13
m 1111
15
Column – 1 Column – 2
Minterms Binary Minterms Binary
Representation Representation
1, 3 1, 3, 5, 7
00–1 0––1
1, 5 1, 3, 9, 11
0–01 –0–1
1, 9 1, 5, 3, 7
–001 0––1
2, 3 1, 5, 9, 13
001– ––01
2, 10 1, 9, 3, 11
–010 –0–1
3, 7 1, 9, 5, 13
0–11 ––01
3, 11 2, 3, 10, 11 –01–
–011
5, 7 2, 10, 3, 11 –01–
01–1
5, 13 3, 7, 11, 15 ––11
–101
9, 11 3, 11, 7, 15 ––11
10–1
9, 13 5, 7, 13, 15
1–01 –1–1
10, 11 5, 13, 7, 15
101– –1–1
7, 15 9, 11, 13, 15
–111 1––1
11, 15 9, 13, 11, 15
1–11 1––1
13, 15
11–1
Further grouping also possible and eliminate the similar variables in the above Table.
Column – 3
Minterms Binary Representation
1, 3, 9, 11, 5, 7, 13, 15 –––1 Both are similar
1, 3, 5, 7, 9, 13, 11, 15 –––1
Prime (3, 7, 11, 15) is eliminated because it is covered by (1, 3, 9, 11, 5, 7, 13, 15).
–
F(A, B, C, D) = BC + D
We can verify by using K-Map
EXERCISE PROBLEM
Minimize the following Boolean function using Tabulation Method.
(i) F(a , b , c , d ) = m (0, 1, 2, 5, 6, 7, 8, 9, 10, 14) –– – –
[Ans. b c + cd + a b d ]
(ii) F(D, C, B, A) = m (1, 3, 13, 15) + d (8, 9, 10, 11) –
[Ans. CA + DA]
SOLVED EXAMPLES
Example 1.60 Simplify the Boolean function using Quine-McClusky method.
F(A, B, C, D, E, F) = m (0, 5, 7, 8, 9, 12, 13, 23, 24, 25, 28, 29, 37, 40, 42, 44, 46, 55,
56, 57, 60, 61)
Solution:
Step 1: List all minterms in the binary form, as shown in the below Table.
Step 2: Arrange minterms according to categories of 1s column (b).
Minterms Binary Representation Minterms Binary Representation
000000
m0 m0 000000
000101
m5 m8 001000
000111
m7 m5 000101
001000
m8 m9 001001
001001 m
m9 12 001100
m 001100 m
12 24 011000
m 001101 m
13 40 101000
m 010111
23 m7 000111
m 011000 m
24 13 001101
m 011001 m
25 25 011001
m 011100 m
28 28 011100
m 011101 m
29 37 100101
m 100101 m
37 42 101010
m 101000 m
40 44 101100
m 101010 m
42 56 111000
m 101100 m
44 23 010111
m 101110 m
46 29 011101
m 110111 m
55 46 101110
m 111000 m
56 57 111001
m 111001 m
57 60 111100
m 111100 m
60 55 110111
m 111101 m
61 61 111101
Column (a) Column (b)
Boolean Algebra and Logic Gates 1.89
Step 3: Compared each binary number with every term in the next higher category and
if they differ by only one position, put a check mark and copy the term in the next column
„–‟ in the position that they differed.
Minterms Binary Representation Minterms Binary Representation
0, 8 0 0 – 0 00 8, 9, 12, 13 001–0–
8, 9 0 0 1 0 0– 8, 9, 24, 25 0–100–
8, 12 0 0 1 – 00 8, 12, 24, 28
0–1–00
8, 24 0 – 1 0 00 8, 12, 40, 44 –01–00
8, 40 – 0 1 0 00 8, 24, 40, 56 ––1000
5, 7 0 0 0 1 –1 9, 13, 25, 29
0–1–01
5, 13 0 0 – 1 01 12, 13, 28, 29
0–110–
5, 37 – 0 0 1 01 12, 44, 28, 60
––1100
9, 13 0 0 1 – 01 24, 25, 28, 29 011–0–
Step 4: Apply the same process described in step 3 for the resultant column and
continue these cycles until a single pass through cycle yields no further elimination of literals.
Minterms Binary Representation
8, 9, 12, 13, 24, 25, 28, 29 0–1–0–
8, 12, 40, 44, 24, 28, 56, 60 ––1–00
24, 25, 28, 29, 56, 57, 60, 61 –11–0–
Prime Implicant 0 5 7 8 9 12 13 23 24 25 28 29 37 40 42 44 46 55 56 57 60 61
0, 8
5, 7
5, 13 X X
5, 37
40, 42 X X
7, 23 X X
23,55
40, 42, 44, 46
40, 56, 44, 60 X X X X
8, 9, 12, 13, 24, 25,
28, 29
8, 12, 40, 44, 24, 28, X X X X X X X X
56, 60
24, 25, 28, 29, 56,
57, 60, 61
Essential Primes
1.92 Digital Principles and System Design
Primes A B C D E F
0, 8 0 0 – 0 0 0
– – – ––
ABDEF
5, 7 0 0 0 1 – 1 –––
ABCDF
5, 37 – 0 0 1 0 1 –– –
BCDEF
23, 55 – 1 0 1 1 1 –
BCDEF
40, 42, 44, 46 1 0 1 – – 0 – –
ABCF
8, 9, 12, 13, 24, 25, 28, 29 0 – 1 – 0 – – –
ACE
24, 25, 28, 29, 56, 57, 60, 61 – 1 1 – 0 – –
BCE
––––– ––– –– – – – – – – –
F(A, B, C, D, E, F) = ABDEF + ABCDF + BCDEF + BCDEF + ABCF + ACE + BCE
EXERCISE PROBLEM
Logic gates are the basic elements that make up a digital system. Boolean functions are
expressed in terms of AND, OR and NOT operations. It is easier to implement a Boolean
function with these types of gates.
The types of gates available are the NOT, AND, OR, NAND, NOR, Exclusive-OR, and
the Exclusive-NOR, Buffer.
NOT Gate
NOT gate has only one input. If binary input is 0, then the output 1 and vice versa. It is
also called as Inverter gate (or) Complementary gate.
Logic Symbol
Boolean Algebra and Logic Gates 1.93
Truth Table
–
Input x Output x
0 1
1 0
AND Gate
AND gate has two or more inputs. The output of AND gate is high (1) only when all
inputs are high, otherwise the output is low (0). It is also called as product gate.
Logic Symbol
Truth Table
Input Output
A B Y=AB
0 0 0
0 1 0
1 0 0
1 1 1
OR Gate
The OR gate has two or more inputs. The output of OR gate is high (1) when any one
of the input is high. It is also called as sum gate.
Logic Symbol
Truth Table
Input Output
A B Y=A+B
0 0 0
0 1 1
1 0 1
1 1 1
1.94 Digital Principles and System Design
NAND Gate
The NAND gate has two or more inputs. NAND is the combination of NOT + AND
gate. The output of NAND gate is high only when one of the inputs is low. It is also called
universal gate.
Logic Symbol
Truth Table
Input Output
A B
Y=AB
0 0 1
0 1 1
1 0 1
1 1 0
NOR Gate
The NOR gate has two or more inputs. NOR is the combination of NOT + OR gate. The
output of NOR gate is high when all the inputs are low. It is also called universal gate.
Logic Symbol
Truth Table
Input Output
A B
Y=A+B
0 0 1
0 1 0
1 0 0
1 1 0
Boolean Algebra and Logic Gates 1.95
Truth Table
Input Output
A B
Y = A B
0 0 1
0 1 0
1 0 0
1 1 1
Buffer
The output is same as input and used to increase output driving capacity.
OR F=x+y
Input Output
x y F
0 0 0
0 1 1
1 0 1
1 1 1
Buffer F=x
Input Output
x F
0 0
1 1
NAND
F=xy
Input Output
x y F
0 0 1
0 1 1
1 0 1
1 1 0
Boolean Algebra and Logic Gates 1.97
Exclusive-OR – –
F = xy + x y
Input Output
(XOR)
=xy x y F
0 0 0
0 1 1
1 0 1
1 1 0
Exclusive-NOR ––
Input Output
or Equivalence F=xy+xy
=x y x y F
0 0 1
0 1 0
1 0 0
1 1 1
NAND Gate
The NAND gate can be used to implement AND, OR and NOT function. Also we can
implement NOR function.
Truth Table
===
A B AB A B AB AB
0 0 0 0 0 1 0
0 1 0 = 0 1 1 0
1 0 0 0 0 1 0
1 1 1 1 1 0 1
Truth Table
– – – – – –
A B A+B A B A B A B A B
0 0 0 0 0 1 1 1 0
0 1 1 = 0 1 1 0 0 1
1 0 1 1 0 0 1 0 1
1 1 1 1 1 0 0 0 1
Implement NOT Operation using NAND Gate
An inverter can be made from a NAND gate by connecting all the inputs together and
creating, in effect, a single common input.
A B AB
X=0 0 0 1 Y=1
0 1 1
1 0 1
X=1 1 1 0 Y=0
Implement NOR Operation using NAND Gate
Boolean expression for NOR gate is
Y =
A+B
– –
Y = AB
Y = ––––– (using DeMorgan‟s theorem 2)
AB
1.100 Digital Principles and System Design
Truth Table
– – –– –––––
– –
–––––
– –
NOR Gate
Similar to NAND gate, the NOR gate is also a universal gate, it can be used to generate
the NOT, AND, OR and NAND functions.
––––– –
Y=A+B =X+X =X
A B A+B
X=0 0 0 1 Y=1
0 1 0
1 0 0
X=1 1 1 0 Y=0
Boolean Algebra and Logic Gates 1.101
=====
A B A+B A B A+B A+B A+B
0 0 0 0 0 0 1 0
0 1 1 = 0 1 1 0 1
1 0 1 1 0 1 0 1
1 1 1 1 1 1 0 1
Truth Table
– – – – – –
A B AB A B A B A+B A+B
0 0 0 0 0 1 1 1 0
0 1 0 = 0 1 1 0 1 0
1 0 0 1 0 0 1 1 0
1 1 1 1 1 0 0 0 1
Implement NAND Function using NOR Gate
The Boolean expression for NAND gate is
Y = AB
– –
Y = A+B [DeMorgan‟s theorem 1]
=====
– –
=
Y = A+B [A = A]
The above equation is implemented using only NOR gates.
– – – – – – – –
A B A B
A B A B A+B A+B A+B
0 0 1 0 0 1 1 1 0 1
0 1 1 = 0 1 1 0 1 0 1
1 0 1 1 0 0 1 1 0 1
1 1 0 1 1 0 0 0 1 0
Boolean Algebra and Logic Gates 1.103
The Boolean algebra is used to express the output of any combinational network. Such
network can be implemented using logic gates.
Guidelines to draw the Logic Diagram for given Expression using Gates
(i) Identify the minterms and maxterms from the expression.
(ii) Identify the complement variables.
(iii) Draw the logic gates for each minterm and maxterms in the expression.
(iv) Simplify the input variable if it is used more one and as complementary function.
SOLVED EXAMPLES
Example 1.61 Draw the logic circuit using gates for the given function
– – –
F = AB + CD + BC
Solution:
Given function is the SOP expression. In that we have three product terms with 2
literals in each product term.
To draw the logic circuit, we need three AND gate as input and one OR gate as
output it contains three input.
– – –
Example 1.62 Draw the logic circuit for the function F = AB + BC + CDE.
Solution:
Given function is the SOP expression. In that we have three product terms.
1.104 Digital Principles and System Design
Example 1.63 Draw the logic circuit using basic gates for the function
–
F = (A + B) (A + B) (C + D)
Solution:
Given function is the POS expression. In that we have three sum terms.
We need three OR gate as input and each gate contains two literals and one AND
gate as output.
Example 1.64 Draw the logic circuit using basic gates for the function
– –
F = (A + B) (B + C) (C + D + E)
Solution:
Given function is a POS expression. We have three sum terms with 2 literals in two
terms and 3 literals in one term.
Boolean Algebra and Logic Gates 1.105
We need three OR gate and one AND gate.
NAND-NAND Implementation
1.106 Digital Principles and System Design
SOLVED EXAMPLES
Example 1.65 Implement the following Boolean function with NAND-NAND logi c
– –
F = AB + ABC + ABC + AB + D (using only NAND gates).
Solution:
Step 1: Simplify the given Boolean function to get minimum number of literals.
F = – –
AB + ABC + ABC + AB + D
= – – –
AB + BC (A + A) + AB + D [A + A = 1]
= – –
A (B + B) + BC (A + A) + D
F = A + BC + D
Step 2: Draw the AND-OR logic gate
Example 1.66 Implement the following Boolean function with NAND-NAND logi c F
= (A, B, C) = m (0, 1, 3, 5, 6, 7) (using only NAND gates).
Solution:
Step 1: Simplify the given Boolean function.
–– ––
F = C + AB + AB = AB + AB + C
Step 2: Implement Boolean function with AND-OR logic.
Lets consider POS form (OR-AND logic) and how it will be represented in NOR-
NOR logic.
Consider the Boolean function Y = (A + B + C) (D + E) F
NOR-NOR Implementation
SOLVED EXAMPLES
Example 1.67 Implement the following Boolean function with only NOR gates.
Y = AC + BC + AB + D
Solution:
Step 1: Here the given function is in SOP format. So first we convert it into POS form,
using duality theorem, we get
Boolean Algebra and Logic Gates 1.109
Y = AC + BC + AB + D
– – – – – – – –
Y = (A + C) (B + C) (A + B) D
Step 2: Implement Boolean function with OR-AND logic.
– – – – – – – –
Y = (A + C) (B + C) (A + B) D
Step 3: Convert OR-AND logic to NOR-NOR logic.
– ––––––––––––––––––––––––––––
––––– ––––– ––––– =
Y = (A + C) + (B + C) + (A + B) + D
= –––––––––––––––––––––––
– – – – – – –
Y = (A + C) (B + C) (A + B) D
Y = AC + BC + AB + D
Example 1.68 Implement the following Boolean function with NOR-NOR logi c
–
(using only NOR gates) F = (A + B) C.
1.110 Digital Principles and System Design
Solution:
Step 1: Implement Boolean function with OR-AND logic.
Example 1.69 Simplify and implement the following POS function using NOR gates
f(A, B, C, D) = П M (0, 1, 2, 3, 12, 13, 14, 15).
Solution:
Step 1: Simplify the given Boolean function.
– –
f (A, B, C, D) = (A + B) (A + B)
Boolean Algebra and Logic Gates 1.111
Example 1.70 Simplify and implement the following SOP function using NOR
gates.
f(A, B, C, D) = m (0, 1, 4, 5, 10, 11, 14, 15)
Solution:
Step 1: Given function is SOP, so convert into its equivalent POS function.
m (0, 1, 4, 5, 10, 11, 14, 15) = П M (2, 3, 6, 7, 8, 9, 12, 13)
Step 2: Simplify the given Boolean function using K-Map simplification.
– –
f (A, B, C, D) = (A + C) (A + C)
1.112 Digital Principles and System Design
EXERCISE PROBLEMS
– –
1. Implement the following Boolean function using only NAND gates F = AB + AB.
2. Implement the following Boolean function using only NAND gates.
–
Y = AC + ABC + ABC + AB + D
3. Implement the following Boolean function with NAND-NAND logic
–– – –
F = AB + AC + BC
4. Implement the following expression using logic gates.
f (A, B, C, D) = m (0, 8, 11, 12, 15) + d (1, 2, 4, 7, 10, 14)
5. Implement the following Boolean function with NOR-NOR logic.
F(x , y , z ) = П M (0, 1, 2, 3, 6, 7, 8, 10, 11)
6. Implement the following Boolean function with only NOR gates
–
f (A, B, C) = A (B + C)
–– –
7. Given the Boolean function: F = x y + x y + y z
(a) Implement it with AND, OR and NOT gates.
(b) Implement it with only OR and NOT gates.
(c) Implement it with only AND and NOT gates.
Boolean Algebra and Logic Gates 1.113
Logic gates can be cascaded to get the desired output. The maximum number of gates
cascaded in series between a network input and the output is referred to as number of
levels of gates.
In SOP form or POS form having two level gate networks and usually it is assumed
that all variables and their complements are available as network inputs.
Fig. 1.18.
In digital circuits, many times multiple outputs are derived from the same input
variables. Each output function can be separately simplified by the use of K-Map or Quine
McCluskey method. It is possible that the simplified output functions may have common
terms. The common term used by one output function can be shared by other functions.
This sharing of common terms reduces the total number of gates.
1.116 Digital Principles and System Design
Example 1.71 Simplify the following functions and draw the logic diagram.
F1 = f(A, B, C) = (1, 2, 3, 5)
F = f(A, B, C) = (1, 3, 5, 7)
2
F3 = f(A, B, C) = (2, 3, 4, 5)
Solution: First simplified the output functions using K-Map to get the Boolean
expression.
Fig. 1.19. Four product terms are required Fig. 1.20. Three product terms are required
–
when each function is treated separately
when common term AB is shared
Example 1.72 Draw the multi-output gate network for the Boolean expression
– – – –
F1 = AB + AB, F2 = BC + AB
Boolean Algebra and Logic Gates 1.117
– – – –
Solution: Given: F1 = AB + AB; F2 = BC + AB
–
In that two functions we have four product terms and one product term (AB) is shared
between two functions.
Fig. 1.21. Four product terms are required Fig. 1.22. Three product terms are required
–
when two function is treated separately when common term AB is shared
SOLVED UNIVERSITY PROBLEMS
Example 1.75 Minimize the following function using K-Map. Implement the
resultant function using NOR gates only. (May/June 05)
F(A, B, C, D, E) = П M (2, 4, 7, 9, 26, 28, 29, 31)
Solution:
– – – – –
F(A, B, C, D, E) = (A + B + C + D + E) (A + B + C + D + E) (A + B + C + D + E)
– – – – – – – – – – – –
(A + B + C + D + E) (A + B + C + D) (A + B + C + E) (A + B + C + D +
E) OR-AND implementation can be replaced by NOR-NOR implementation.
Example 1.76 Implement the following function using a quad 2-input NOR gates.
– – (Nov/Dec 2005)
f = (AB + C) D
f = – –
Solution: (AB + C) D
===========
– –
f = (AB + C) D
= ––––––––––––––=
(AB + C) + D
= –––––––––––––
(AB + C) + D
–––––––––––––––– – –
====
= (A + B) + C + D [AB = AB ]
Example 1.78 Write the Boolean expression for the output of the system shown i n
below Fig. (May/June 07)
C = – –
Solution: (A + B) B = A B B
C =0
–
Example 1.79 Draw the logic diagram for X = AB + BC. (Nov/Dec 07)
X = –
Solution: AB + BC
– – –
Example 1.80 Implement F = (AB + AB) (C + D) with only NOR gates. (Nov/Dec 07)
– – – – –– – – –
Solution: F = (AB + AB) (C + D) = ABC + ABD + ABC + ABD
=
========================== ––––––––––––––––––––––––––
–––––
=====
––––– –––––
– –– – – – –
= (A + B + C) (A + B + D) (A + B + C) (A + B + D)
1.122 Digital Principles and System Design
Example 1.82 Sketch a NAND-NAND logic circuit for the Boolean expression.
Y – (Nov/Dec 07)
= AB + AC + BD
Y –
Solution: = AB + AC + BD
Given function is a SOP form, so we can implement NAND-NAND logic directly.
–
[In SOP, 0 = A, 1 = A]
–– –– ––
F = BD + ACD + ABC
Implementation of SOP using Basic Gates:
F = –– –– ––
BD + ACD + ABC
(ii) POS Form: F(A, B, C, D) = П (3, 4, 6, 7, 11, 12, 13, 14, 15)
–
[In POS, 0 = A, 1 = A]
– – – – – – –
F(A, B, C, D) = (C + D) (A + B) (B + C + D) (B + C)
1.124 Digital Principles and System Design
––– –
F(x , y z ) = x y z + x y z
SOP format can be implemented directly using NAND gates.
––– –
F(x , y z ) = x y z + x y z
Boolean Algebra and Logic Gates 1.125
4. Draw the logic diagram of OR gate using universal gates. (Nov/Dec 11)
1.126 Digital Principles and System Design
5. State DeMorgan’s theorem.(May/June 09, 13, Apr/May 11, 05, Nov/Dec 06)
DeMorgan suggested two theorems that form an important part of Boolean algebra. They
are:
Theorem 1: – –
AB = A+B
Theorem 2: – –
A+B = A B
6. What are don’t care terms? (May/June 13)
I0 represent the don‟t care conditions. Two terms are used as don‟t care terms such
as „X‟ or „d ‟.
7. Simplify the given Boolean expression F = x′ + x y + xz′ + xy′z′. (Nov/Dec 12)
F = x ′ + x y + x z′ + xy ′z ′
– – ––
F = x + x y + xz + x y z
– – –– –
= x + y + xz + xy z [ A + AB = A + B]
– – [ A + AB = A]
= x + y + xz
–– – – –
F = x + xz + y = x + z + y [ A + AB = A + B]
8. Implement the given function using NAND gates F(x, y, z) = m (0, 6). (Nov/Dec 12)
Given function F(x , y , z ) = m (0, 6) is a SOP. Simplify it using K-Map
––– –
F(x , y , z ) = x y z + x y z
Boolean Algebra and Logic Gates 1.127
9. What is Totem output? (Apr/May 2011)
In totem pole output configuration, transistor Q 3 and Q4 from a totem pole is
called as active pull-up or totem pole output. The totem output formed by Q 3 and Q4
has specific advantage.
10. If A and B are Boolean variables and if A = 1 and A + B = 0, then find B.
(Nov/Dec 03)
Given: A= 1
and A + B = 0
A+B = 1
1+B = 1
B = 1–1
B = 0 therefore B can be either 0 or 1.
11. Express the switching function f(BA) = A in terms of minterms. (Nov/Dec 03)
Given: f (BA) = A
– –
= A (B + B) ( A + A = 1)
f (BA) = –
AB + AB
12. Plot the expression on K-Map: F(w, x, y) = (0, 1, 3, 5, 6) + d(2, 4) (May/June 04)
NAND and NOR gates are called as universal gates because using these two gates
we can implement any logic functions.
AND, OR and NOT gates are called basic gates.
22. List the number systems.
1. Binary number system
2. Octal number system
3. Decimal number system
4. Hexadecimal number system
23. Define Boolean algebra.
Boolean algebra may be defined with a set of elements, a set of operations, and a
number of unproved postulates.
Boolean algebra may also be referred as an algebraic structure defined by a set of
element. A set of elements is a collection of objects which is two or more binary
numbers, together with two binary operator „+‟ and „‟ (dot).
24. What are the laws of Boolean algebra?
1. Commutative laws
2. Associative laws
3. Distributive law
25. Define Duality Theorem.
The principle of duality theorem states that every algebraic expression from the
postulates of Boolean algebra remain valid if the operators and identity elements are
interchanged.
If we apply dual principle for an algebraic expression simply interchange OR and
AND operators and replace 1‟s by 0‟s and vice versa.
1.130 Digital Principles and System Design
26. Define consensus theorem.
–
In simplification of Boolean expression, an expression of the form AB + AC + BC,
–
the term BC is redundant and can be eliminated to form the equivalent AB + AC. The
theorem used for this simplification is known as consensus theorem and it is stated as
– –
AB + AC + BC = AB + AC
27. Define sum of product terms (SOP).
Sum of product term is also called as sum of minterms. That means if two or more
minterms are combined with an OR logic is said to be a sum of product (SOP).
28. Define product of sum terms (POS).
Product of sum terms is also called as product of max terms. That means if two or
more maxterms are combined with an AND logic is said to be product of sum (POS).
29. What is meant by Karnaugh map or K-Map method?
A K-Map is a diagram made up of squares with each square representing one
minterm of the function that is to be minimized. The simplified expressions produced
by the map are always in one of the two standard forms. Sum of products (SOP) or
product of sum (POS).
30. What are called don’t care conditions?
In some logic circuits certain input conditions never occur, therefore the
corresponding output never appears. In such cases, the output level is not defined, it
can be either high or low. These output levels are indicated by „X‟ or „ d ‟ in the truth
tables and are called don‟t care conditions or incompletely specified functions.
31. What is tabulation method?
A method involving an exhaustive tabular search method for the minimum
expression to solve a Boolean equation for more variables is called as a tabulation
method.
32. State two advantages of CMOS logic. (Nov/Dec 03)
Consumes less power.
Can be operated at high voltages, resulting in improved noise immunity.
fan-out = = = 10
IIH(ma x) 40 A
35. What is the advantage of Schottky TTL Family? (Nov/Dec 04)
The advantage of Schottky TTL family is fast switching speed.
36. What are tri-state gates? (May/June 05)
the high speed operation of the totem-pole arrangement while permitting outputs to be
wired-AND. It is called tri-state TTL because it allows three possible output stages:
HIGH, LOW and High impedance.