Professional Documents
Culture Documents
Digital Electronics Sample Chapter PDF
Digital Electronics Sample Chapter PDF
GATE
ELECTRONICS & COMMUNICATION
Digital Electronics
Vol 6 of 10
R. K. Kanodia
Ashish Murolia
Information contained in this book has been obtained by author, from sources believes to be reliable. However,
neither NODIA & COMPANY nor its author guarantee the accuracy or completeness of any information herein,
and NODIA & COMPANY nor its author shall be responsible for any error, omissions, or damages arising out
of use of this information. This book is published with the understanding that NODIA & COMPANY and its
author are supplying information but are not attempting to render engineering or other professional services.
MRP 490.00
Later, we perceived that many aspirants couldnt develop a good problem solving approach in their B.E/B.
Tech. Some of them lacked the fundamentals of a subject and had difficulty understanding simple solutions.
Now, we have an idea to enhance our content and present two separate books for each subject: one for theory,
which contains brief theory, problem solving methods, fundamental concepts, and points-to-remember. The
second book is about problems, including a vast collection of problems with descriptive and step-by-step
solutions that can be understood by an average student. This was the origin of GATE Guide (the theory book)
and GATE Cloud (the problem bank) series: two books for each subject. GATE Guide and GATE Cloud were
published in three subjects only.
Thereafter we received an immense number of emails from our readers looking for a complete study package
for all subjects and a book that combines both GATE Guide and GATE Cloud. This encouraged us to present
GATE Study Package (a set of 10 books: one for each subject) for GATE Electronic and Communication
Engineering. Each book in this package is adequate for the purpose of qualifying GATE for an average student.
Each book contains brief theory, fundamental concepts, problem solving methodology, summary of formulae,
and a solved question bank. The question bank has three exercises for each chapter: 1) Theoretical MCQs,
2) Numerical MCQs, and 3) Numerical Type Questions (based on the new GATE pattern). Solutions are
presented in a descriptive and step-by-step manner, which are easy to understand for all aspirants.
We believe that each book of GATE Study Package helps a student learn fundamental concepts and develop
problem solving skills for a subject, which are key essentials to crack GATE. Although we have put a vigorous
effort in preparing this book, some errors may have crept in. We shall appreciate and greatly acknowledge
all constructive comments, criticisms, and suggestions from the users of this book. You may write to us at
rajkumar.kanodia@gmail.com and ashish.murolia@gmail.com.
Acknowledgements
We would like to express our sincere thanks to all the co-authors, editors, and reviewers for their efforts in
making this project successful. We would also like to thank Team NODIA for providing professional support
for this project through all phases of its development. At last, we express our gratitude to God and our Family
for providing moral support and motivation.
**********
CONTENTS
1.1 INTRODUCTION 1
1.2 ANALOG AND DIGITAL SYSTEMS 1
1.2.1 Advantages of Digital System 2
1.2.2 Limitations of Digital System 2
1.3 NUMBER SYSTEMS 2
1.3.1 Decimal Number System 2
1.3.2 Binary Number System 3
1.3.3 Octal Number System 3
1.3.4 Hexadecimal Number System 4
1.4 NUMBER SYSTEM CONVERSION 5
1.4.1 Decimal-to-Binary Conversion 5
1.4.2 Decimal-to-Octal Conversion 6
1.4.3 Decimal-to-Hexadecimal Conversion 7
1.4.4 Octal-to-Binary conversion 7
1.4.5 Binary-to-Octal Conversion 7
1.4.6 Hexadecimal-to-Binary Conversion 8
1.4.7 Binary-to-Hexadecimal Conversion 8
1.4.8 Hexadecimal-to-Octal and Octal-to-Hexadecimal Conversion 8
1.5 BASIC BINARY ARITHMETIC 9
1.5.1 Binary Addition 9
1.5.2 Binary Subtraction 9
1.5.3 Binary Multiplication 9
1.5.4 Binary Division 9
1.6 COMPLEMENTS OF NUMBERS 10
1.7 NUMBER REPRESENTATION IN BINARY 11
1.7.1 Sign-Magnitude Representation 11
1.7.2 1s Complement Representation 11
1.7.3 2s Complement Representation 12
1.8 COMPLEMENT BINARY ARITHMETIC 13
1.8.1 Addition Using 1s Complement 13
1.8.2 Subtraction Using 1s Complement 13
1.8.3 Addition Using 2s Complement 14
1.8.4 Subtraction using 2s Complement 15
1.9 HEXADECIMAL ARITHMETIC 15
1.9.1 Hexadecimal Arithmetic Using 1s or 2s Complements 15
1.9.2 Hexadecimal Subtraction Using 15s or 16s Complement 15
1.10 OCTAL ARITHMETIC 16
1.10.1 Octal Arithmetic using 1s or 2s Complements 16
1.10.2 Octal Subtraction using 7s or 8s complement 16
1.11 DECIMAL ARITHMETIC 17
1.11.1 Decimal Arithmetic Using 1s or 2s Complements 17
1.11.2 Decimal Subtraction Using 9s and 10s Complement 17
1.12 BINARY CODES 18
1.13 BINARY CODED DECIMAL (BCD) CODE OR 8421 CODE 20
1.13.1 BCD-to-Binary Conversion 20
1.13.2 Binary-to-BCD Conversion 20
1.14 BCD ARITHMETIC 20
1.14.1 BCD Addition 21
1.14.2 BCD Subtraction 21
1.15 THE EXCESS-3 CODE 22
1.16 GRAY CODE 23
1.16.1 Binary-to-Gray Code Conversion 23
1.16.2 Gray-to-Binary Code Conversion 24
1.16.3 Applications of Gray Code 24
EXERCISE 1.1 25
EXERCISE 1.2 31
EXERCISE 1.3 33
SOLUTIONS 1.1 41
SOLUTIONS 1.2 53
SOLUTIONS 1.3 58
2.1 INTRODUCTION 63
2.2 BOOLEAN ALGEBRA 63
2.2.1 Logic Levels 63
2.2.2 Truth Table 64
2.3 BASIC BOOLEAN OPERATIONS 64
2.3.1 Boolean Addition (Logical OR) 64
2.3.2 Boolean Multiplication (Logical AND) 65
2.3.3 Logical NOT 65
2.4 THEOREMS OF BOOLEAN ALGEBRA 66
2.4.1 Complementation Laws 66
2.4.2 AND Laws 66
2.4.3 OR Laws 66
2.4.4 Commutative Laws 67
2.4.5 Associative Laws 67
2.4.6 Distributive Law 67
2.4.7 Redundant Literal Rule 67
2.4.8 Idempotent Law 67
2.4.9 Absorption Law 67
2.4.10 Consensus Theorem 67
2.4.11 Transposition Theorem 68
2.4.12 De Morgans Theorem 68
2.4.13 Shannons Expansion Theorem 68
2.5 SIMPLIFICATION OF BOOLEAN EXPRESSIONS USING BOOLEAN ALGEBRA 68
2.5.1 Complement of Boolean Function 69
2.5.2 Principal of Duality 69
2.5.3 Relation Between Complement and Dual 69
2.6 LOGIC GATES 69
2.6.1 Logic Levels 70
2.6.2 Types of Logic Gates 70
2.7 UNIVERSAL GATE 75
2.7.1 NAND Gate as a Universal Gate 75
2.7.2 NOR Gate as a Universal Gate 77
2.8 ALTERNATE LOGIC-GATE REPRESENTATIONS 79
2.9 BOOLEAN ANALYSIS OF LOGIC CIRCUITS 80
2.9.1 Converting Boolean Expressions to Logic Diagram 80
2.9.2 Converting Logic to Boolean Expressions 81
2.10 CONVERTING LOGIC DIAGRAMS TO NAND / NOR LOGIC 82
2.10.1 NAND-NAND Logic 82
2.10.2 NOR-NOR Logic 83
EXERCISE 2.1 84
EXERCISE 2.2 105
EXERCISE 2.3 107
SOLUTIONS 2.1 117
SOLUTIONS 2.2 144
SOLUTIONS 2.3 148
CHAPTER 8 MICROPROCESSOR
Page 63
CHAPTER 2
Chap 2
Boolean Algebra and
Logic Simplification
i. n
2.1 INTRODUCTION
o
This chapter, concerned with the basic study of Boolean algebra and
c
simplification theory, includes the following topics:
.
Introduction to Boolean algebra: logic levels, truth table.
i a
Basic Boolean operations: addition, multiplication, not operation
Various theorems of Boolean algebra
o d
Meaning of positive and negative logic
Various types of logic gates: AND, OR, NOT, NAND, NOR, XOR,
.
XNOR gates.
n
Universal logic gates; conversion of logic diagrams to universal
w w
logic gates.
Boolean analysis of logic circuits.
2.2
w
BOOLEAN ALGEBRA
Logic 0 Logic 1
False True
Open switch Close switch
Page 64
Logic 0 Logic 1
Chap 2
Boolean Algebra and
Logic Simplification Low High
No Yes
OFF ON
in
Table 2.2: Examples of Truth Tables for 1-input, 2-input and 3-input
Circuits
o .
. c
d ia
n o
w.
w w
Input Output
A B Y = A+B
0 0 0
0 1 1
i. n
1 0 1
1 1 1
NOTE :
. c o
The minimum number of inputs for OR operation is two. The number of outputs
i a
is always one, irrespective of the number of inputs.
2.3.2
d
Boolean Multiplication (Logical AND)
o
The AND operation in Boolean algebra is similar to multiplication in
. n
ordinary algebra i.e, AND performs logical multiplication operation.
Let A and B be two Boolean variables. Then, the logical AND
w w
operation on A and B is denoted by
Y = A : B,
where : is the AND operator. The output Y corresponding to various
Input Output
A B Y = AB
0 0 0
0 1 0
1 0 0
1 1 1
NOTE :
The minimum number of inputs for AND operation is two. The number of output
is always one, irrespective of the number of inputs.
0 1
1 0
NOTE :
Logical NOT is the only Boolean operation which must be performed with only
one operand or one input. Note that in some texts, the NOT operation is also
presented as Al .
. in
Boolean expression and also to transform the given expression into a
more useful and meaningful equivalent expression. These theorems are
2.4.1
discussed as below.
Complementation Laws
. c o
d ia
The term complement implies to invert, i.e. to change 1s to 0s and 0s
to 1s. The five laws of complementation are as follows:
2.
n o
1. The complement of 0 is 1, i.e. 0 = 1
The complement of 1 is 0, i.e. 1 = 0
3.
4.
w.
If A = 0 , then A = 1
If A = 1, then A = 0
w
5.
w
The double complementation does not change the function, i.e.
A=A
2.4.3 OR Laws
The four OR laws are as follows:
1. Null Law: A + 0 = A
2. Identity Law: A + 1 = 1
3. A+A = A
4. A+A = 1
A+B = B+A
A:B = B:A
i. n
2.4.6 Distributive Law
. c o
The distributive laws allow factoring or multiplying out of expressions.
There are two distributive laws
i
A _B + C i = AB + AC
a
d
A + BC = _A + B i_A + C i
o
2.4.7 Redundant Literal Rule
. n
This law states that ORing of a variable with the AND of the
w w
complement of that variable with another variable, is equal to ORing
of the two variables, i.e.
A + AB = A + B
. in
with respect to a variable A into two parts, one containing A and the
other containing A . This concept is useful in decomposing complex
system into an interconnection of smaller components.
c o
f _A, B, C, ....i = A : f _1, B, C...i + A : f _0, B, C, ...i
.
f _A, B, C, ...i = 8A + f _0, B, C, ...iB : 8A + f _1, B, C, ...iB
2.5
d ia
SIMPLIFICATION OF BOOLEAN EXPRESSIONS USING BOOLEAN
ALGEBRA
n o
w.
In Boolean algebra, we have to reduce the Boolean expression into its
simplest form such that the hardware cost reduces efficiently. The basic
w w
rules, laws and theorems of Boolean algebra discussed in this chapter,
are used to simplify Boolean expressions. The following steps are used
to simplify a Boolean expression using Boolean algebra,
Page 69
5. Look for pairs of terms which have the same variables, except in Chap 2
one term a variable is complemented and in other term is it not. Boolean Algebra and
Such terms can be combined into a single terms. For example, Logic Simplification
ABC D + ABC D = ABC _D + D i = ABC : 1 = ABC
AB _C + D i + AB _C + D i = AB 7_C + D i + _C + D iA = AB : 1 = AB
i a
1. Change all the ANDs to ORs and all the ORs to ANDs i.e.,
change all : to + and all + to :
o d
2. Complement each of the individual variables.
3. Change all 0s to 1s and 1s to 0s.
. n
2.5.2
w
Principal of Duality
w
Duality is a very important property of Boolean algebra. The dual of a
. in
2.
Figure 2.1: Positive Logic System
. c o
Negative Logic: If the higher of the two voltage levels represents a
ia
logic 0 and the lower of the two levels represents a logic 1, then
the logic system is referred to as a negative logic system. Figure
d
2.2 shows the representation of negative logic systems.
n o
w.
w w
Figure 2.2: Negative Logic System
Other logic gates that are derived from these basic gates are Page 71
1. NAND gate, Chap 2
Boolean Algebra and
2. NOR gate, Logic Simplification
3. EXCLUSIVE-OR gate,
4. EXCLUSIVE-NOR gate
AND Gate
An AND gate is a logic circuit with two or more inputs and one output
that performs ANDing operation. The output of an AND gate is HIGH
only when all of its inputs are in the HIGH state. In all other cases, the
output is LOW. For a positive logic systems, it means that the output
i. n
of the AND gate is a logic 1 only when all of its inputs are in logic 1
state. In all other cases, the output is logic 0. The logic symbol and
the truth table of a two-input AND gate are shown in Figure 2.3 and
Table 2.6 respectively.
. c o
i a
o d
n
Figure 2.3: Logic Symbol of Two-input AND gate
w.
Table 2.6: Truth table of a 2-input AND gate
w w
A
0
Input
B
0
Output
Y = AB
0
0 1 0
1 0 0
1 1 1
OR Gate
An OR gate is a logic circuit with two or more inputs and one output
that performs ORing operation. The output of an OR gate is LOW
only when all of its inputs are LOW. For all other possible input
combinations, the output is HIGH. For a positive logic system, the
output of an OR gate is a logic 0 only when all of its inputs are at
logic 0. For all other possible input combinations, the output is a logic
1. The logic symbol and the truth table of a two-input OR gate are
shown in Figure 2.4 and Table 2.7 respectively.
NOT Gate
A NOT gate, also called an inverter is a one-input, one-output logic
circuit whose output is always the complement of the input. That is,
a LOW input produces a HIGH output, and vice versa. It means that
for a positive logic system, a logic 0 at the input produces a logic 1
at the output, while a logic 1 at the input produces a logic 0 output.
. in
It is also known as a complementing circuit or an inverting circuit. The
logic symbol and the truth table of an inverter are shown in Figure 2.5
and Table 2.8 respectively.
. c o
d
Figure 2.5: Symbol for a NOT gate ia
n o
Table 2.8: Truth Table of NOT Gate
w.Input Output
w w A
0
1
Y=A
1
0
NAND Gate
The term NAND implies NOT-AND. A NAND gate is equivalent to
AND gate followed by a NOT gate. The standard logic symbol for a
2-input NAND gate is shown in Figure 2.6. This symbol is same as
AND gate symbol except for a small circle (bubble) on its output. This
circle represents the NOT function.
The truth Table 2.9 of a NAND gate is obtained from the truth
Table of an AND gate by complementing the output entries. The
output of a NAND gate is a logic 0 when all its inputs are a logic 1.
For all other input combinations, the output is a logic 1. NAND gate Page 73
operation is logically expressed as Chap 2
Boolean Algebra and
Y = A:B
Logic Simplification
Input Output
A B Y = AB
0 0 1
0 1 1
1 0 1
1 1 0
i. n
NOR Gate
. c o
The term NOR implies NOT-OR. A NOR gate is equivalent to OR
i a
gate followed by a NOT gate. The standard logic symbol for a 2-input
NOR gate is shown in Figure 2.7. This symbol is same as OR gate
o
represents the NOT function. d
symbol except for a small circle (bubble) on its output. This circle
. n
w w
Figure 2.7: Logic symbol of NOR gate
w The truth Table 2.10 of a NOR gate is obtained from the truth
Table of an OR gate by complementing the output entries. The output
of a NOR gate is a logic 1 when all its inputs are logic 0. For all other
input combinations, the output is a logic 0. The output of a two-input
NOR gate is logically expressed as
Y = A+B
Input Output
A B Y = A+B
0 0 1
0 1 0
1 0 0
1 1 0
Page 74
Chap 2
Boolean Algebra and
Logic Simplification
Figure 2.8: Symbol for 2-input Ex-OR Gate
Input Output
A B Y = A5B
0 0 0
0 1 1
1 0 1
1 1 0
in
From the truth table it can be stated that, the output of an EX-
o .
OR gate is a logic 1 when the two inputs are at different logic and a
NOTE :
1.
. c
The exclusive-OR and equivalence gates both can be extended to more than
ia
two inputs. However, multiple-input exclusive OR gates are uncommon from
the hardware standpoint.
2.
d
For a multiple output-input EX-OR logic function we can conclude that the
output of a multiple-input EX-OR logic function is a logic 1 only when an
o
odd number of input variables are 1.
. n
Exclusive-NOR (XNOR) Gate
w w
The exclusive-NOR gate, commonly known as Ex-NOR, is an Ex-OR
gate, followed by an inverter. It has two inputs and one output. The
wlogic symbol for the Ex-NOR gate is shown in Figure 2.9, and the truth
table for the two-input Ex-NOR operation is given in Table 2.12.
Input Output
A B Y = A9B
0 0 1
0 1 0
1 0 0
1 1 1
i. n
output of a multiple-input EX-NOR logic function is a logic 1 only when
an even number of input variables are 0. Note if all inputs are 0, then also
output will be 1.
o
2.7.1
. n
NAND Gate as a Universal Gate
w
The NAND gate can be used to implement the NOT function, AND
function, the OR function and other functions also as explained below.
w
The NOT Gate using NAND Gate
. in
The NOR Gate Using NAND Gate
. c
We know that Boolean expression for NOR gate iso
ia
Y = A+B = A:B (De Morgans Theorem)
d
= A:B A=A
The above equation is implemented using only NAND gates, as
o
shown in the Figure 2.13.
. n
w w
w
Page 77
= _AB i : _AB i (De Morgan Theorem)
Chap 2
So, five NAND gates are required to implement the Ex-OR gate
Boolean Algebra and
as shown in Figure 2.14. Logic Simplification
. c o
Ex-NOR gate can be constructed by taking complement of Ex-OR. That
i a
is, we need one more NAND gate to implement the Ex-NOR function.
Figure 2.15 shows Ex-NOR implementation using five NAND gates.
o d
. n
w w
w Figure 2.15: Ex-NOR Gate Using NAND Gate
in
= A:B A=A
= A+B
.
(DeMorgans Theorem)
o
The above equation is implemented using only NOR gates as
shown in the Figure 2.18.
NAND Gate using NOR Gate
. c
d
Y = A:B ia
The Boolean expression for NAND gate is
n o
= A+B (DeMorgans Theorem)
. = A+B A=A
The above equation is implemented using only NOR gates, as
w
shown in the Figure 2.19.
w w
= _A + A + B i + _B + A + B i _X = X i
The above expression can be realized using five NOR gates as
shown in Figure 2.20.
i. n
. c o
i a
o d
. n
Figure 2.20: Ex-OR Gate Using NOR Gate
w w
The Ex-NOR Gate using NOR Gate
To implement Ex-NOR gate using NOR gates, we just remove the last
w NOR gates from the circuit of Ex-OR gates shown in Figure 2.21.
We have discussed the five basic logic gates (AND, OR, INVERTER,
NAND, and NOR) and the standard symbols used to represent them
in a logic circuit diagram. Most of the logic networks use standard
symbols. But in some networks an alternative set of symbols is used in
addition to the standard symbols. Table 2.13 shows the alternate set of
symbols for the five basic gates.
NOT
AND
OR
NAND
NOR
. in
To convert any normal symbol to its corresponding alternate
symbol, the following steps are used:
. c o
ia
METHODOLOGY: TO CONVERT STANDARD SYMBOL TO ALTERNATE
SYMBOL
Step 1:
d
Add bubbles (indication of inversion) at those input or
o
output points where it is not present.
Step 2:
w w
Step 3:
gates)
If the existing normal logic symbol is AND, change it to
OR, Similarly, if it is OR, then change it to AND. There
Page 81
METHODOLOGY: TO CONVERT BOOLEAN EXPRESSION TO LOGIC
DIAGRAM Chap 2
Boolean Algebra and
Step 1: The expression Y = AB + AC + ABC contains three Logic Simplification
terms (AB , AC , ABC ) which are ORed together. So,
draw an OR gate with three inputs as shown below.
i. n
A and B and AC must be output of an AND gate whose
inputs are A and C . Similarly, ABC must be output of a
3-input AND gate with inputs A , B and C . We introduce
. c o
these three AND gates as shown below.
i a
o d
. n
w w
w Step 3: Now, C must be the output of an inverter whose input is
C and similarly, A will be the output of an inverter whose
input is A. So we put two inverters as shown below.
Page 82 diagram shown in Figure 2.22. We go through the following steps to get
Chap 2 the Boolean expression.
Boolean Algebra and
Logic Simplification
in
Step 2: The output of left-most AND gate with inputs C and D
is CD .
Step 3:
.
The outputs of the OR gate and AND gate are the inputs
o
of right-most AND gate. Therefore, the expression for
. c
this AND gate is _A + B i : CD , which is the final output
expression for the entire circuit.
d ia
2.10
o
CONVERTING LOGIC DIAGRAMS TO NAND / NOR LOGIC
n
w.
Since, NAND logic and NOR logic are universal logic system, digital
circuits which are first computed and converted to AOI logic may then
w w
be converted to either NAND logic or NOR logic depending on the
choice.
Step 1: First draw the circuit in AOI logic i.e., using AND, OR
and NOT gates.
Step 2: Add a circle (bubble) at the output of each AND gate and
at the inputs to all the OR gates.
Step 3: Add an inverter on each line that received only one circle
in steps 2, so that the polarity of signals on those lines
remains unchanged from that of the original diagram.
Step 4: Replace bubbled OR by NAND and each inverter by its
NAND equivalent.
Step 1: First draw the circuit in AOI logic i.e., using AND, OR
and NOT gates.
Step 2: Add a circle (bubble) at the output of each OR gate and
at the inputs to all the AND gates.
Step 3:
i. n
Add an inverter on each line that received only one circle
in steps 2, so that the polarity of signals on those lines
Step 4: o
remains unchanged from that of the original diagram.
c
Replace bubbled AND by NOR and each inverter by its
NOR equivalent.
.
i a
o d
***********
. n
w w
w
Page 84
Chap 2
Boolean Algebra and
EXERCISE 2.1
Logic Simplification
(A) (A + B ) (C + D ) (E + F)
(B) AB + CD + EF
. in
(C) (A + B) (C + D) (E + F)
(D) AB + CD + EF
. c o
d ia
MCQ 2.1.2
o
In the following circuit, the output X is
n
w.
w w
(A) MNQ (B) N (Q + M )
(C) M (Q + N ) (D) Q (M + N )
(A) AB + (C + D) E (B) AB (C + D) E
(C) AB + CD + E (D) AB + CDE
i. n
(A) A + B + C
. c o
(B) ABC
(C) AB + BC + AC
o d
MCQ 2.1.6
.
is equivalent to
n
Given that AB + AC + BC = AB + AC , then (A + C ) (B + C ) (A + B)
w
(A) (A + B ) (A + C )
(C) (A + B ) (A + C )
w
(B) (A + B) (A + C )
(D) (A + B ) (A + C )
MCQ 2.1.7
w In the following circuit the output X is
(A) AB (B) AB
(C) AB (D) 0
(A) AB + AB + C (B) AB + AB + C
(C) AB + AB + C (D) AB + AB + C
(A) ABC
. in
(B) AB (C + B)
(C) ABC
. c o
(D) AB (C + B)
MCQ 2.1.11
d ia
In the following circuit the output Z is
n o
w.
w
(A) ABC
(C) 0
w (B) ABC
(D) ABC
A B C X
0 0 0 1
0 0 1 0
0 1 0 1
0 1 1 1
1 0 0 1
1 0 1 0
A B C Z
0 0 0 1
0 0 1 0
0
0
1
1
0
1
1
1
i. n
1
1
0
0
0
1
1
1
. c o
i
The Boolean expression for Z is
a
(A) (A + B ) (B + C )
(C) (A + B) (B + C )
o d (B) (A + B ) (B + C )
(D) Above all
. n
MCQ 2.1.15
A
w
The Boolean expression for the truth table shown is
w B C f
w 0
0
0
0
0
1
0
0
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 0
1 1 0 1
1 1 1 0
(A) B (A + C) (A + C ) (B) B (A + C ) (A + C )
(C) B (A + C ) (A + C ) (D) B (A + C ) (A + C )
MCQ 2.1.19 The reduced form of the Boolean expression of Y = (AB ) : (AB ) is
(A) A + B
(B) A + B
. in
(C) AB + AB
(D) A B + AB
. c o
MCQ 2.1.20
d ia
If XY + XY = Z then XZ + X Z is equal to
(A) Y
n o (B) Y
(C) 0
w. (D) 1
MCQ 2.1.21
w w
If XY = 0 then X 5 Y is equal to
(A) X + Y (B) X + Y
(C) XY (D) XY
MCQ 2.1.23 From a four-input OR gate the number of input condition, that will
produce HIGH output are
(A) 1 (B) 3
(C) 15 (D) 0
MCQ 2.1.24 In the following circuit, for which of the following input combination Page 89
output will be 1 ? Chap 2
Boolean Algebra and
Logic Simplification
(A) A = 0, B = 0
(B) A = 1, B = 0
(C) A = 0, B = 1
i. n
(D) Either A = 1 or B = 1
MCQ 2.1.25
. c o
A logic circuit control the passage of a signal according to the following
requirements:
i a
1. Output X will equal A when control input B and C are the same.
2.
d
X will remain HIGH when B and C are different.
o
The logic circuit would be
. n
w w
w
MCQ 2.1.26 The output of logic circuit is HIGH whenever A and B are both HIGH
as long as C and D are either both LOW or both HIGH. The logic
circuit is
in
NOR gate. Each gate has unit cost. Only A, B , and C are available.
o .
MCQ 2.1.28
. c
If both gates are available then minimum cost is
ia
(A) 2 units (B) 3 units
(C) 4 units (D) 6 units
od
MCQ 2.1.29
. n
If only NAND gates are available, then minimum cost is
(A) 2 units (B) 3 units
w w
(C) 4 units (D) 6 units
MCQ 2.1.30
wIn the circuit shown below the LED emits light when
MCQ 2.1.31 If the input to the digital circuit shown below consisting of a cascade of Page 91
20 XOR gates is X , then the output Y is equal to Chap 2
Boolean Algebra and
Logic Simplification
(A) X (B) X
(C) 0 (D) 1
. n
(C) X0 X1 X3 X5 ...Xn + X2 X3 X5 ...Xn + ... + Xn - 1 Xn
w
(D) X0 X1 X3 X5 ...Xn - 1 + X2 X3 X5 ...Xn + ... + Xn - 1 Xn - 2 + Xn
w
w
MCQ 2.1.33 The gate G1 and G2 in figure shown below have propagation delays of
10 ns and 20 ns respectively.
Page 92 MCQ 2.1.34 Which of the following Boolean expressions correctly represents the
Chap 2 relation between P, Q, R and M1
Boolean Algebra and
Logic Simplification
MCQ 2.1.35 If the X and Y logic inputs are available and their complements X
in
and Y are not available, the minimum number of two-input NAND
required to implement X 5 Y is
(A) 4 (B) 5
o .
c
(C) 6 (D) 7
ia .
MCQ 2.1.36
d
In the negative logic system,
(A) The more negative of the two logic levels represents a logic 1
state
o
. n
(B) The more negative of the two logic levels represents a logic 0
w w
state
(C) All input and output voltage levels are negative
(D) The output is always complement of the intended logic function
w
MCQ 2.1.37 Positive logic in a logic circuit is one in which
IES EE 1992 (A) logic 0 and 1 are represented by 0 and positive voltage respectively
(B) logic 0 and 1 are represented by negative and positive voltages
respectively
(C) logic 0 voltage level is higher than logic 1 voltage level
(D) logic 0 voltage level is lower than logic 1 voltage level
MCQ 2.1.39 Match List-I with List-II and select the correct answer using the codes Page 93
given below the lists. Chap 2
Boolean Algebra and
Logic Simplification
List - I List - II
a. A5B = 0 1. A=
YB
b. A+B = 0 2. A=B
c. A:B = 0 3. A = 1 or B = 1
d. A5B = 1 4. A = 1 or B = 0
i. n
Codes :
a b c d
(A) 3 2 1 4
(B)
(C)
2
3
3
2
4
4
1
1
. c o
(D) 2 3 1 4
i a
MCQ 2.1.40
o d
Consider the following statements:
IES EE 1999
. n
(1) A NAND gate is equivalent to an OR gate with its inputs inverted.
(2) A NOR gate is equivalent to an AND gate with its inputs inverted.
w w
(3) A NAND gate is equivalent to an OR gate with its output inverted.
(4) A NOR gate is equivalent to an AND gate with its output inverted.
w
Which of these statements are correct?
(A) 1 and 2 (B) 2 and 3
(C) 3 and 4 (D) 1 and 4
MCQ 2.1.41 The output (X ) waveform for the combination circuit shown below for
the inputs at A and B (waveform shown in the figure) will be
Page 94
Chap 2
Boolean Algebra and
Logic Simplification
. in
. c o
MCQ 2.1.42
d ia
Which of the following represents the correct waveform for X in the
given circuit diagram.
n o
w.
w w
MCQ 2.1.43 A logic circuit and input waveform to it shown below. Page 95
Chap 2
Boolean Algebra and
Logic Simplification
i. n
The output waveform is represented by
. c o
i a
o d
. n
w w
w
MCQ 2.1.44 In a natural food restaurant, fruit is offered for desert but only in
certain combination. One choice is either orange or apple or both.
Another choice is either mango and apple or neither. A third choice
is orange, but if you choose orange, then you must also take banana.
If the fruits are represented by their first alphabet of the name, then
the logical expression that specifies the fruit available for desert in the
simplified form is
(A) A + B (B) M + O
(C) A + O (D) M + B
MCQ 2.1.45 The open collector wired circuit shown below functions as
MCQ 2.1.47 The elevator door should open if the elevator is stopped, it is level with
the floor, and the timer has not expired, or if the elevator is stopped,
it is level with the floor, and a button is pressed. If
D " Elevator door opens ; S " Elevator is stopped ;
F " Level with floor ; T " Timer expired ; B " Button pressed
Which of the following Boolean expression represents the above
condition ?
(A) D = SFT l + SFB (B) D = SFT l B
(C) D = SF + T l B (D) D = (S + F ) T l B
MCQ 2.1.48
. in
The logic circuit shown in the given figure can be minimized to
. c o
d ia
n o
w.
w w
MCQ 2.1.49 In the following circuit the output Z is
(A) AD (B + C ) + A D (B) AD (B 5 C ) + A D
(C) AD (B 5 C ) + A D (D) A D (B 5 C ) + AD
MCQ 2.1.51 Which one of the following logical operations is performed by the digital
circuit shown below ?
i. n
. c o
i a
(A) NOR
o d (B) NAND
.
(C) Ex-OR
n (D) OR
MCQ 2.1.52
w w
The switching circuit given in the figure an be expressed in binary logic
IES EE 1995
w notation as
(A) L = (A + B) (C + D) E
(B) L = AB + CD + E
(C) L = E + (A + B) (C + D)
(D) L = (AB + CD) E
Page 98 MCQ 2.1.54 Consider the given circuit diagram of switching of light from two
Chap 2 different switches.
Boolean Algebra and
Logic Simplification
. in
MCQ 2.1.55
IES EC 1996
c o
Which one of the following is the dual-form of the Boolean identity
given below ?
.
ia
AB + AC = (A + C) (A + B)
(A) AB + AC = AC + AB
d
(B) (A + B) + (A + C) = (A + C) (A + B)
o
. n
(C) (A + B) (A + C) = AC + AB
(D) AB + AC = AB + AC + BC
w w
MCQ 2.1.56
w
What is dual of A + [B + (AC )] + D ?
(A) A + [B (A + C)] + D
(C) A + [B _A + C i] D
(B) A 7B + AC A D
(D) A [B _A + C i] D
MCQ 2.1.57 If x and y are Boolean variables, which one of the following is the
IES EE 2004 equivalent of x 5 y 5 xy ?
(A) x + y (B) x + y
(C) 0 (D) 1
MCQ 2.1.59 Which of the following logic diagrams represents the original and Page 99
simplified expression of the function, F = (x + y) (x + y l ) ? Chap 2
Boolean Algebra and
Logic Simplification
i. n
. c o
i a
o d
. n
w w
MCQ 2.1.60
IES EC 1992
w A copy machine generate a stop sign S , to stop the machine operation
and energize and indicates light if according to either of the following
conditions exists:
(1) There is no paper in the paper feeder tray.
(2) The two micro switch in the paper path are activated, indicating
a jam in the paper path.
The presence of paper in the feeder tray is indicated by a high at logic
signal P as shown in figure.
Page 100 Which of the following represents the correct logic circuit so as to get
Chap 2 HIGH output at S ?
Boolean Algebra and
Logic Simplification
MCQ 2.1.61 In the following circuit, the motor will turn on when DRIVE = 1
. in
. c o
d ia
n o
w.
Which of the following give correct values of A0, A1, A2, A3, A4, A5, A6,
w w
A7, A8 , and A9 in order to move motor ?
(A) A0 = A1 = A2 = A3 = A4 = A5 = A6 = A7 = A8 = A9 = 1
(B) A0 = A1 = A2 = A3 = A4 = A5 = A6 = A9 = 1; A7 = A8 = 0;
(C) A0 = A1 = A2 = A3 = A4 = A5 = A6 = A7 = 1 ; A8 = A9 = 0
(D) A0 = A1 = A2 = A3 = A4 = A5 = A6 = A7 = A8 = 1 ; A9 = 0
MCQ 2.1.62 When two gates with open collector outputs are tied together as shown
in the figure, the output obtained will be
(A) A + B + C + D (B) A + B + C + D
(C) (A + B ) + (C + D ) (D) (A + B) + (C + D)
MCQ 2.1.63 The output of a two level AND-OR gate network is F . What is the Page 101
output when all the gates are replaced by NOR gates ? Chap 2
(A) F Boolean Algebra and
Logic Simplification
(B) F
(C) F D
D
(D) F
where F D is the dual function of F
Which one of the gates labelled 1,2,3, and 4 in the network shown in
the figure is redundant ?
i. n
. c o
i a
(A) 1
o d
n
(B) 2
(C) 3
(D) 4
w.
MCQ 2.1.64
w w
For the circuit shown in Figure, the Boolean expression for the output
GATE EE 2002 Y in terms of inputs P , Q , R , and S is
(A) P + Q + R + S
(B) P + Q + R + S
(C) (P + Q ) (R + S )
(D) (P + Q) (R + S)
MCQ 2.1.65 Which of the following circuit implement the Boolean expression
X = AB + CD ?
Page 102
Chap 2
Boolean Algebra and
Logic Simplification
. in
. c o
d ia
n o
w.
w w
(D) None of the above.
Page 103
Chap 2
Boolean Algebra and
Logic Simplification
i. n
. c o
i a
o d
. n
w w
w
MCQ 2.1.67 Which of the following represent the correct realization of the given
circuit using NAND gate only ?
Page 104
Chap 2
Boolean Algebra and
Logic Simplification
. in
. c o
d ia
n o
MCQ 2.1.68
.
The logic operations of two combinational circuits given in Figure - I
and Figure - II are
w
w w
(A) Entirely different (B) Identical
(C) Complementary (D) Dual
***********
QUES 2.2.1 The minimum number of NAND gates required to implement the
IES EC 2003 Boolean function A + AB + ABC is _____
QUES 2.2.2
i. n
The Boolean expression Y (A, B, C ) = A + BC is to be realized using
IES EC 2006
for the realization is _____
. c o
2-input gates of only one type. The minimum number of gates required
i a
QUES 2.2.3
d
The number of different sets of input conditions that produces a high
o
output from a five-input OR gate is _____
. n
QUES 2.2.4
w w
A Boolean function of two variables X and Y is defined as follows :
F (0, 0) = F (0, 1) = F (1, 1) = 1; F (1, 0) = 0
Assuming complements of X and Y are not available, a minimum cost
w solution for realizing F using 2-input NOR gates and 2-input OR gates
(each having unit cost) would have a total cost of _____ unit.
QUES 2.2.5 To implement Y = ABCD using only two-input NAND gates, minimum
number of requirement of NAND gates is _____
QUES 2.2.6 In circuit shown below, for what input at the terminal A the output
is X = 1 ?
Page 106 QUES 2.2.8 The minimum number of NOR gates required to implement
Chap 2 A (A + B ) (A + B + C ) is equal to ______
Boolean Algebra and
Logic Simplification
QUES 2.2.11
. in
The number of duals of distinct Boolean expressions of 4 variables is
_____
. c o
QUES 2.2.12
d ia
To implement Y = ABCD using two-input NAND gates and NOR
gates, minimum number of requirement of gates is _____
n o
***********
w.
w w
MCQ 2.3.1 The NAND gate can perform the invert function if the inputs are
K (A) Connected together (B) Left open
SHASHIDHAR
(C) Either (A) or (B) (D) None of these
i. n
214/12
MCQ 2.3.2
K switches for the input ?
. c o
Which of the following gate corresponds to the action of parallel
SHASHIDHAR
214/13
(A) AND
(C) OR
i a
(B) NAND
(D) NOR
o d
MCQ 2.3.3
. n
Which of the following gate corresponds to the action of series switches
for the input ?
w
K
SHASHIDHAR (A) AND (B) NAND
w
214/14
(C) OR (D) NOR
MCQ 2.3.4
w Which of the following gate is called universal gate ?
K (A) AND (B) OR
SHASHIDHAR
214/15
(C) XOR (D) NAND
MCQ 2.3.8 If a three-input AND gate has eight input possibilities, how many of
K those possibilities will result in a HIGH output?
SHASHIDHAR (A) 1 (B) 2
214/19
(C) 7 (D) 8
MCQ 2.3.9 If a three-input OR gate has eight input possibilities, how many of
in
K those possibilities will result in a HIGH output?
SHASHIDHAR
214/20
(A) 1
(C) 7
(B) 2
(D) 8
o .
. c
MCQ 2.3.10
K (A) the input is LOW
d ia
The output of NOT gate is HIGH when
SHASHIDHAR
214/21
(B) the input is HIGH
n o
.
(C) power is applied to the gates IC
(D) power is removed from the gates IC
w
MCQ 2.3.11
w w
The output of an AND gate with three inputs, A, B , and C , is HIGH
K when
SHASHIDHAR (A) A = 1, B = 1, C = 0
214/22
(B) A = 0 , B = 0 , C = 0
(C) A = 1, B = 1, C = 1
(D) A = 1, B = 0 , C = 1
MCQ 2.3.12 The output of an OR gate with three inputs, A, B, and C , is LOW
K when
SHASHIDHAR (A) A = 0 , B = 0 , C = 0
214/23
(B) A = 0 , B = 0 , C = 1
(C) A = 0 , B = 1, C = 1
(D) All of the above
MCQ 2.3.13 If a three-input NAND gate has eight input possibilities, how many of Page 109
K those possibilities will result in a HIGH output? Chap 2
SHASHIDHAR (A) 1 (B) 2 Boolean Algebra and
215/25 Logic Simplification
(C) 7 (D) 8
MCQ 2.3.14 If a three-input XOR gate has eight input possibilities, how many of
K those possibilities will result in a HIGH output?
SHASHIDHAR (A) 2
215/27
(B) 4
(C) 6
(D) 8 i. n
. c o
MCQ 2.3.15
i a
A two-input NOR gate is equivalent to a
K
SHASHIDHAR
215/32
(A)
(B)
negative-OR gate
o
negative-AND gate d
(C)
(D)
. n
negative-NAND gate
none of the above
w w
K
w
MCQ 2.3.16
SHASHIDHAR
215/34
The exclusive-OR gates output is HIGH if
(A) All inputs are low
(B) all inputs are HIGH
(C) the inputs are different
(D) none of the above
MCQ 2.3.18 How many two-input NOR gates does it take to produce a two-
K input NAND gate ?
SHASHIDHAR
216/38
(A) 1 (B) 2
(C) 3 (D) 4
.
(C) A + B = A.B and A B = A + B
(D) A + B = A + B and A.B = A + B
od
MCQ 2.3.22
. n
A buffer is
B.R. GUPTA
73/521
w w
(A) always non-inverting
(B) always inverting
MCQ 2.3.25 In which function is each term known as minterm Page 111
B.R. GUPTA (A) SOP (B) POS Chap 2
94/522 Boolean Algebra and
(C) Hybrid (D) both SOP and POS Logic Simplification
MCQ 2.3.26 For a certain two-input logic gate, the output is 1 for like inputs and
MAINI 0 for unlike inputs. The logic gate is
1/102 (A) Ex-OR (B) NAND
(C) NOR (D) Ex-NOR
MCQ 2.3.27
i. n
In general, logic gates whose all output entries are logic 1 except for
MAINI
4/103
one entry that is logic 0 are
(A) AND, OR
(B) NAND, NOR
. c o
(C) NAND, OR
i a
(D) NOR, AND
o d
MCQ 2.3.28
. n
A logic gate with four inputs can have
MAINI
8/103
w w
(A) 16 possible input combinations
(B) 4 possible input combinations
w
(C) 8 possible input combinations
(D) None of these
Logic Simplification
(C) 0 (D) A
MCQ 2.3.35 The AND, OR, and NOT gates are called
. in
Chakravorty
M6.1/170
(A) universal gates
(B) basic gates
. c o
ia
(C) hexadecimal gates
(D) decimal number gates
od
MCQ 2.3.36
. n
The gate shown in Fig. is an alternative symbol of
Chakravorty
M6.6/171
w w
w(A) AND gate (B) OR gate
(C) NAND gate (D) NOR gate
MCQ 2.3.38 The gate shown in below is an alternative symbol of Page 113
Chakravorty Chap 2
M6.8/171 Boolean Algebra and
Logic Simplification
i. n
Chakravorty
M6.9/171
w
(A) Logic 0 and 1 represented 0 V (ground) and positive voltage
_+ VCC i respectively
Page 114 MCQ 2.3.43 Boolean algebra is different from ordinary algebra in which way ?
Chap 2 MANDAL (A) Boolean algebra can represent more than 1 discrete level between
Boolean Algebra and 17/73 0 and 1.
Logic Simplification
(B) Boolean algebra have only 2 discrete levels : 0 and 1
(C) Boolean algebra can describe up to levels of logic levels
(D) They are actually the same
MCQ 2.3.45
. in
Knowledge of binary number system is required for the designers of
ANAND KU-
MAR
1/65
computers and other digital systems because
c
(A) it is easy to learn binary number system
.
(B) it is easy to learn Boolean algebra
o
d ia
(C) it is easy to use binary codes
(D) the devices used in these systems operate in binary
n o
MCQ 2.3.46
w.
Which of the following statements is true ?
(A) OR and NOT gates are necessary and sufficient for realization of
w
ANAND KU-
MAR any logic function.
w
51/136
(B) AND and NOT gates are necessary and sufficient for realization of
any logic function.
(C) NAND gates are not sufficient to realize any logic function.
(D) NOR gates are sufficient to realize any logic function.
MCQ 2.3.47 For the gate shown in the figure, the output will be HIGH
MCQ 2.3.49 The most suitable gate to check whether the number of 1s in a digital
ANAND KU- word is even or odd is
i. n
MAR (A) X-OR (B) NAND
63/137
(C) NOR (D) AND, OR, and NOT
. c o
a
MCQ 2.3.50 Which of the following operations is commutative but not associative ?
ANAND KU-
MAR
65/138
(A) AND
(C) OR
d i (B) NOR
(D) X-OR
n o
MCQ 2.3.51
ANAND KU- (A) 1
w.
A + AB + ABC + ABCD + ABCDE + ... =
(B) A
w
MAR
1/192
(C) A + AB (D) AB
MCQ 2.3.52
wA + AB + A BC + A B C D + .... =
ANAND KU- (A) A + B + C + ... (B) A + B + C + D + ...
MAR
2/192
(C) 1 (D) 0
MCQ 2.3.53 The number of table entries needed for a five input logic circuit is
(A) 4 (B) 8
(C) 16 (D) 32
. in
MCQ 2.3.57
o
Which of the following logic gates will have an output of 1 ?
. c
d ia
n o
w.
MCQ 2.3.58
SEDHA w w
Boolean algebra is essentially based on
(A) symbols (B) logic
1/183
(C) truth (D) numbers
MCQ 2.3.60 A carry look ahead adder is frequently used for addition, because it
KHARATE (A) is faster (B) is more accurate
7/197
(C) uses fewer gates (D) costs less
***********
i. n
So, its equivalent logic will be
. c o
i a
i.e.
o d
AND-Invert = Invert-OR
. n
By converting AND Invert logic to equivalent Invert-OR logic in the
given circuit diagram, we get
w w
w
So, the output Z is
Z = AB + CD + EF
ALTERNATIVE METHOD :
Expression of output can be directly obtained from given circuit as
Z = _AB i_CD i_EF i
Using De-Morgans theorem, we have
Z = AB + CD + EF
Page 118
Chap 2
Boolean Algebra and
Logic Simplification
So, its equivalent logic will be
. in
. c o
So, the output X is
d ia
n o
X = MNQ + MNQ + M NQ
w. = MQ _N + N i + M NQ
= MQ + M NQ
= Q _M + M N i
w w = Q _M + N i
or
Page 119
Chap 2
Boolean Algebra and
Logic Simplification
i. n
SOL 2.1.4 Correct option is (C).
expression as
. c o
By using the Boolean properties, we minimize the given Boolean
i a
_X + Y i_X + Y i_X + Y i = _X + Y i_X : X + XY + X Y + Y : Y i
= _X + Y i_XY + X Y i
o d = XY + XY
n
= XY
w.
w
SOL 2.1.5 Correct option is (D).
From the given logic diagram, expression of the output can be written
w as
Z = A + _AB + BC i + C
= A+A+B+B+C+C
= A+B+C
4
= ABC
From the above logic function, we can observe that options (A) and (B)
are matched. Now, we check the expression given in option (C).
Z = AB + BC + AC
= A+B+B+C+A+C
= A+B+C
Hence, all the options are same, and equal to the output Z of the given
logic circuit.
Page 120 AB + AC + BC
S
= AB + AC
Chap 2 redundant
term
Boolean Algebra and Its dual also exists. Taking dual of the expression, we get
Logic Simplification
_A + B i_A + C i_B + C i = _A + B i_A + C i
Hence, _A + C i_B + C i_A + B i = _A + B i_A + C i
in
SOL 2.1.8 Correct option is (B).
Y = _A 5 B i : C
o .
Expression of the output for the circuit is given by
= _AB + AB i : C
= _AB + AB i + C
. c {Using De Morgans theorem}
= _AB + A B i + C
= A B + AB + C
d ia
{A 9 B = A 5 B or A 5 B = A 9 B }
n o
SOL 2.1.9
.
Correct option is (C).
w
Expression of the output Z for the circuit is given by
w w Z = A : _A + A i : B : C
= ABC {A + A = 1}
i. n
This law states that ANDing of several variables and ORing the result
with a single variable is equivalent to ORing that single variable with
. c o
each of the several variables and then ANDing the sums. It can be
A B C A+B
i A+C
a _A + B i_A + C i A + BC
0
0
0
0
0
1
o
0
0 d 0
1
0
0
0
0
0
0
.1
1
0
1 n 1
1
0
1
0
1
0
1
1
w
1
w 0
0
0
1
1
1
1
1
1
1
1
1
w 1
1
1
1
0
1
1
1
1
1
1
1
1
1
in
The given expression is
A + AB + A BC + A B C D + A B C DE
.
On simplification of the expression using Boolean algebra, we get
A + AB + A BC + A B C D + A B C DE
o
. c
= A + A 8B + B #C + C _D + DE i-B
a
...(1)
i
Using redundant literal rule, we have
A + AB = A + B
or
o d
A + A _B + C i = A + B + C
Applying this rule in equation (1), we get
. n
A + AB + A BC + A B C D + A B C DE
= A + A 7B + B #C + C _D + E i-A
w w = A + A #B + B _C + D + E i-
= A + A _B + C + D + E i
w = A+B+C+D+E
= _A + B i_A + B i
Chap 2
Boolean Algebra and
= _AA + A B + AB + BB i Logic Simplification
= A B + AB
. c o
i a
SOL 2.1.21 Correct option is (A).
Given that
oXY = 0 d
. n
Since, we know that
X 5 Y = XY + XY
w w X5Y = X9Y
So, by using the given condition, we get
X 5 Y = XY + XY = _XY + X Y i
w
or X5Y = X Y = X+Y (XY = 0 )
od
Thus, we may conclude that
F = 1 for A = 0 and B = 1
. n
SOL 2.1.25
w w
Correct option is (A).
We check the given requirements for the circuits given in the options.
1. For B = C :
P = B5C = 0
and X = A+0 = A
i.e. Output X will equal A when control input B and C are the same.
2. For B ! C :
P = B5C = 1
and X = A+1 = 1
i.e. X will remain HIGH when B and C are different.
Hence, the circuit satisfies both the requirements.
i. n
i.e. another input of last AND gate will be High.
Thus, the circuit given in option (A) is HIGH whenever A and B are
. c o
both HIGH as long as C and D are either both LOW or both HIGH.
o
. n
w
Now, we check the correctness of the given two statements.
1. Given that output waveform _X i is same as the any one input
w
(let A). For this condition, we may have the following two state
w diagrams.
Page 126 From the above state diagram, we observe that it is not necessary
Chap 2 that any one input should be permanently high. Therefore,
Boolean Algebra and statement-2 is False.
Logic Simplification
in
the Boolean function as shown below.
o .
. c
ia
Hence, the minimum cost for the implementation is 2 units.
d
SOL 2.1.29
n
Correct option is (C). o
w.
Given Boolean function,
Z = ABC
w w
To implement the function using using only NAND gates, we draw the
logic circuit as
d
rd
o
Hence, after 2, 4, 6, 8, .......20 XOR (i.e. even number of XOR gates),
n
.
output will be 1.
w
SOL 2.1.32
w w
Correct option is (C).
For the given network, we obtain
Output of gate 1 = X0 X1
Output of gate 2 = X0 X1 + X2
Output of gate 3 = _X0 X1 + X2i X3
= X0 X1 X3 + X2 X3
Similarly, we may deduce
Output of gate 4 = X0 X1 X3 + X2 X3 + X4
Output of gate 5 = _X0 X1 X3 + X2 X3 + X4i X5
= X0 X1 X3 X5 + X2 X3 X5 + X4 X5
Hence, the output of gate n would be
F = X0 X1 X3 X5 .........Xn + X2 X3 X5 .........Xn + X4 X5 X7 ..........Xn + ........ + Xn - 1 Xn
Page 128
Chap 2
Boolean Algebra and
Logic Simplification
c
Z = X : Y = _PQ i_P + Q i
.
= _P + Q i_P + Q i
o
and
d
M1 = Z 5 R ia
= PQ + PQ = P 5 Q
Hence,
n o
M1 = _P 5 Q i 5 R
M1 = _P XOR Q i XOR R
w.
SOL 2.1.35
w w
Correct option is (A).
XOR logic using 2-input NAND gates is implemented as
Now, we may prove that the above logic circuit implements an XOR
gate
Z = $_XY i X . : $_XY i Y .
= _XY i X + _XY i Y
= _X + Y i X + _X + Y i Y
= XY + XY = X 5 Y
Thus, 4 NAND gates are required
.
i a
o d
. n
SOL 2.1.38
w w
Correct option is (C).
Ex-OR gate output is given by
w Y = A5B
= AB + AB
(A and B are inputs)
. in
SOL 2.1.41 Correct option is (B).
. c o
ia
For given logic circuit, expression for output X is
X = _A + B i : B = _A + B i + B
od
= ^A + B h + B = A + B
Output waveform for the given input waveforms is
. n
w w
w
i. n
. c o
i a
o d
. n
w w
SOL 2.1.43
w
Correct option is (D).
The expression of the output for the given logic circuit is
X = _A + B i + B
= _A + B i : B
= _A : B i : B
=0
Hence, the output for the circuit will remain zero irrespective of the
input.
c
_w + x i_w l + x + yz li_w + y li
On simplification, we obtain
. o
d ia
_w + x i_w l + x + yz li_w + y li = _w l + x + yz li_w + xy li
= ww l + w l xy l + xw + xxy l + yz l w + yz l xy l
n o= w l xy l + xy l + xw + yz l w
= _w l + 1i xy l + w _x + yz li
w. = xy l + wx + wyz l
SOL 2.1.47
w w
Correct option is (A).
The elevator door will open in the following two cases.
Case 1: If the elevator is stopped, it is level with the floor, and the
timer has not expired.
Since, we have the representations
Elevator is stopped = S ;
Level with the floor = F ;
Time has not expired = T l
So, the given condition is expressed as
X1 = SFT l
Case 2: If the elevator is stopped, it is level with the floor, and a button
is pressed.
Again, we have the representations
Elevator is stopped = S
and Level with the floor = F
and Button is pressed = B
So, the given condition is expressed as
i. n
. c o
So, the output Z is given by
i a
Z = X + X + Y = X : X + Y = X : _X + Y i
o d
= X + XY = X _1 + Y i = X = X
In option (D), the circuit provides the output X as shown below.
. n
w w
Hence, the circuit given in option (D) is minimized form of the logic
w
circuit.
Page 134 = AD ^B C + BC h + A D
Chap 2
= AD _B 9 C i + A D
Boolean Algebra and
Logic Simplification = AD _B 5 C i + A D
in
NOTE :
.
Here, it must be noted that, we got first the expression ^AD + A h , and this is also
given in option (B). At first glance it seems to be Answer but it is not. It can be
minimized further into ^A + D h .
o
. c
SOL 2.1.51 Correct option is (C).
d
We redraw the given digital circuit asia
n o
w.
w w
Output Y is given by
Y = AB + AB = A 5 B = A _XOR i B
i. n
Again, we consider the series connected switches
. c o
i a
o d
The logic expression for series connected switches is
. n L = A:B
Hence, the logic expression for given circuit is
w w L = _A + B i : _C + D i : E
SOL 2.1.53
w
Correct option is (A).
We have to check the correctness of each options.
Option (A)
On minimizing L.H.S. of the equation, we have
X + XY = _X + X i_X + Y i = X + Y ! X
or X + XY ! X
Option (B)
On minimizing L.H.S. of the equation, we have
X _X + Y i = XX + XY = XY
or X _X + Y i = XY
Option (C)
On minimizing L.H.S. of the equation, we have
X + XY = X _1 + Y i = X
or X + XY = X
Option (D)
On minimizing L.H.S. of the equation, we have
ZX + ZXY = Z _X + XY i = Z _X + Y i = ZX + ZY
or ZX + ZXY = ZX + ZY
in
From the circuit diagram, we deduce that LED will glow when
o .
Z = Low _ 0 i , and Z will be low only when X or Y or both will be
High. Now, we consider the different input conditions as
1. For A = B = 1,
. c
X = 1 and Y = 0 & Z = 0 ; LED glows
2.
3.
For A = B = 0 ,
For A = 0 , B = 1;
d ia
X = 0 and Y = 1 & Z = 0 ; LED glows
n o
X = 0 and Y = 0 & Z = 1; LED doesnt glow
4.
w.
For A = 1, B = 0 ;
X = 0 and Y = 0 ( Z = 1; LED doesnt glow
SOL 2.1.55 w w
Correct option is (C).
We have the Boolean identity
AB + AC = _A + C i_A + B i
Dual form of any identity can be found by replacing all AND function
to OR and vice-versa. Hence, dual form of the expression is given as
_A + B i : _A + C i = _A : C i + _A : B i
o d
On simplification and minimization of the Boolean expression, we get
_X + W i_Y 5 Z i + XW l = _X + W i_YZ l + Y l Z i + XW l
. n = XYZ l + XY l Z + WYZ l + WY l Z + XW l
w w
From consensus theorem, we have
AB + AC + BC = AB + AC
So, eliminating the redundant term in the expression, we get
w
i.e. the minimized expression of _X + W i_Y 5 Z i + XW l is
WY l Z + XW l + WYZ l
Page 138
Chap 2
Boolean Algebra and
Logic Simplification
S = P+Q:R
. c o
So, the logic circuit for the given condition is drawn as
d ia
n o
w.
SOL 2.1.61
w w
Correct option is (B).
We redraw the given logic circuit as
i. n
We have the wired-OR logic circuit as shown below.
. c o
i a
o d
For the logic circuit, the output is
. n Y = _A + B i + _C + D i
SOL 2.1.63
w w
Correct option is (C).
w
We have the two level AND-OR gate as shown below.
Now, all the gates are replaced by NOR gate. So, we get the modified
circuit as
. in
. c o
d ia
n o
w.
From the Boolean algebra, we have
w w
By using the above conversion, we redraw the given logic circuit as
= (A + B ) + (C + D )
i. n
. c o
i a
o d
SOL 2.1.67
. n
Correct option is (B).
In order to convert the given circuit into all NOR, we apply the bubbles
w
at the input terminals of gates as shown below.
w
w
From the Boolean algebra, we have
and
Therefore, by using the above conversion, we get the logic circuit with
NOR gates.
and
. in
c o
Therefore, by using the above conversion, we get the logic circuit with
NAND gates as
.
d ia
n o
w.
w w
SOL 2.1.69 Correct option is (A).
Figure I
We have the combinational circuit in Figure - I as
Page 143
Chap 2
Boolean Algebra and
Logic Simplification
So, the output of the circuit is
F2 = X $ Y
Hence, we have
F1 ! F2
i.e. the output of the given two circuits are entirely different.
***********
i. n
. c o
i a
o d
. n
w w
w
Page 144
Chap 2
Boolean Algebra and
SOLUTIONS 2.2
Logic Simplification
in
As the given expression is to be realized using one type of 2-input gates.
o .
So, we may use universal gates (NAND, NOR) for realization. Now, we
implement the given function using NAND and NOR gates.
given expression
. c
1. NAND Implementation: For NAND implementation, we rewrite the
ia
Y = A + BC = A + BC = _A i : _BC i
So, the logic circuit can be implemented as
d
n o
w.
w w
2. NOR Implementation: For NOR implementation, we rewrite the
given expression as
Y = A + BC = _A + B i_A + C i ; [Distributive
property]
or Y = _A + B i_A + C i
= _A + B i + _A + C i
c
f _0, 0i = f _0, 1i = f _1, 1i = 1 and f _1, 0i = 0
.
For the Boolean function, we obtain the truth table as
x y f
i a
0
0
0
1
1
1
o d
1
. 0
n0
w
1
w 1 1
From the truth table, we define the function f as
f = xy
w So, f = xy = x + y
Hence, the function _ f i can be implemented using 2 input NOR and
2-input OR gate as shown below.
Thus, the total cost for the logic circuit will be 2 units.
and
7X + Z #Y + _Z + XY i-A#X + Z _X + Y i- = 1
X =1
. in
. c o
So, by substituting X = 1 and X = 0 in the logic equation, we get
71 + Z #Y + _Z + 1Y i-A : 80 + Z _1 + Y iB = 1
ia
or 71A8Z _ 1 iB = 1
Hence, we have Z = 1 or Z = 0
od
SOL 2.2.8
. n
Correct answer is 0.
w w
Given logic expression is
A _A + B i_A + B + C i
On solving the expression, we have
Boolean expressions is
22
n-1
= 2 2 = 2 2 = 2 8 = 256
4-1 3
i. n
. c o
SOL 2.2.12 Correct answer is 3.
i a
To implement the given function using NAND and NOR gates, we
rewrite the given function as
o d
Y = ABCD = ABCD = AB + CD
. n
So, the equivalent circuit for the Boolean function is
w w
w
Therefore, two NAND gates and one NOR gate is required to implement
the function Y = ABCD .
***********
Page 148
Chap 2
Boolean Algebra and
SOLUTIONS 2.3
Logic Simplification
. in
SOL 2.3.3 Correct option is (A).
. c o
SOL 2.3.4 Correct option is (D).
d ia
n o
SOL 2.3.5
.
Correct option is (A).
w
SOL 2.3.6
w w
Correct option is (B).
i a
SOL 2.3.14
o
Correct option is (B).
d
. n
SOL 2.3.15
w w
Correct option is (B).
Output of two input _A, B i NOR gate, Y = A+B
w
Using Demorgan theorem,
AND gate
Y = A:B = negative-
d
OR : Y = A + B = B + A
o
. n
SOL 2.3.25
w
Correct option is (A).
w
SOL 2.3.26
wCorrect option is (D).
The truth table for Ex-NOR gate is,
Inputs Output
A B Y = A9B
0 0 1
0 1 0
1 0 0
1 1 1
Page 151
Inputs Outputs
Chap 2
A B X = A:B Y = A+B Boolean Algebra and
Logic Simplification
0 0 1 0
0 1 1 1
1 0 1 1
1 1 0 1
For both NAND and OR gates, all output entries are logic 1 except
for one entry.
i a
SOL 2.3.30 Correct option is (C).
o d
. n
Taking of two times complement results the original function.
Y = AB + AB
w w
Complement of Y = Y = AB + AB
Complement of Y = Y = Y = AB + AB = AB + AB
SOL 2.3.31
w
Correct option is (D).
. in
SOL 2.3.41 Correct option is (D).
. c o
SOL 2.3.42 Correct option is (D).
d ia
SOL 2.3.43
n
Correct option is (B). o
w.
SOL 2.3.44
w w
Correct option is (C).
i. n
Now check for NOR gate, (A + B ) + C is equal to or not equal to
A + (B + C ) .
or
or
. c o
(A + B ) + C ! A + (B + C )
(A + B ) + C ! A + (B + C )
i a
SOL 2.3.51 Correct option is (B).
o d
A + AB + ABC + ABCD + ABCDE + ....
. n
= A (1 + B + BC + BCD + BCDE + ...)
= A (1 + X) = A
w w
w
SOL 2.3.52 Correct option is (A).
A + AB + A BC + A B C D + ... = A + A (B + BC + BC D + ...)
= A + A (X ) = (A + A) (A + X )
= A+X
= A + B + BC + B C D + ... and so on.
= A + B + C + ...
***********
. in
. c o
d ia
n o
w.
w w