Ece Unit3complete Lpu Notes
Ece Unit3complete Lpu Notes
UNIT-3
LECTURE Prepared by Dr. Krishan Kumar
INFORMATION
•CA-2(Assignment) based on Porteous Software,
assignment after Midterm Exam, Assignment
given in 9th WEEK and submit in 10th Week
•CA-3(Project)-Form group of 4 students, submit
your project title in first week of October, submit
Project with in 15th November to 20th November
Project Report
FRONT PAGE-GROUP DETAIL
-INTRODUCTION
-CIRCUIT DIAGRAM
-WORKING
-APPLICATION
-ADVENTAGE/DISADVENTAGE
-CONCLUSION
Note-Submit report each project group during project
presentation in month of November(15th November to 20th
November)
KEYWORDS
• OR
• NOT
• AND
• EX-OR
• EX-NOR
• DECIMAL
• HEXADECIMAL
• OCTAL
Downloaded by Vibhav ([email protected])
lOMoARcPSD|31279878
Logic gate
Logic gates are used to carry out logical operations on single
or multiple binary inputs and give one binary output. In simple
terms, logic gates are the electronic circuits in a digital
system.
AND Gate
OR Gate
A circuit which performs an OR operation is shown in figure. It has
n input (n >= 2) and one output.
NOT Gate
NOT gate is also known as
Inverter. It has one input A and
one output Y.
NAND Gate
A NOT-AND operation is known as NAND operation. It has n input
(n >= 2) and one output.
NOT Gate
NOT gate is also known as
Inverter. It has one input A and
one output Y.
NOR Gate
A NOT-OR operation is known as NOR operation. It has n input (n >= 2) and one output.
The XOR gate is used in the adder, subtractor and controlled inverter circuit.
It is also used in the computers for implementing the binary addition.
A B Z
0 0 0
0 1 1
1 0 1
1 1 0
Boolean Algebra
• Boolean algebra is a branch of mathematics that deals
with operations on logical values with binary variables.
• The Boolean variables are represented as
binary numbers to represent truths: 1 = true and 0 =
false.
• Elementary algebra deals with numerical
operations whereas Boolean algebra deals with
logical operations.
• Boolean Algebra is used to analyze and simplify the
digital (logic) circuits.
• It uses only the binary numbers i.e. 0 and 1. It is also
called as Binary Algebra or logical Algebra. Boolean
algebra was invented by George Boole in 1854.
Downloaded by Vibhav ([email protected])
lOMoARcPSD|31279878
Boolean Algebra
Rule in Boolean Algebra
•Variable used can have only two values. Binary 1 for HIGH and
Binary 0 for LOW.
•Complement of a variable is represented by an overbar (-). Thus,
complement of variable B is represented as B Bar. Thus if B = 0
then B Bar = 1 and B = 1 then B Bar = 0.
•ORing of the variables is represented by a plus (+) sign between
them. For example ORing of A, B, C is represented as A + B + C.
•Logical ANDing of the two or more variable is represented by
writing a dot between them such as A.B.C. Sometime the dot may
be omitted like ABC.
AB + AB + AC + B + BC {Idempotent law; BB = B}
Sum of Product
EXAMPLE
1.A circuit for a truth table with N input columns can use AND
gates with N inputs, and each row in the truth table with a ‘1’ in
the output column requires one N-input AND gate.
2.Inputs to the AND gate are inverted if the input shows a ‘0’ on
the row, and not inverted if the input shows a ‘1’ on the row.
Sum-of-Product Example
The following Boolean Algebra expression is given as:
Q = A(BC + BC + BC) + ABC
1.Convert this logical equation into an equivalent SOP term.
2.Use a truth table to show all the possible combinations of input conditions
that will produces an output.
3.Draw a logic gate diagram for the expression.
Inputs Output
X Y F
0 0 0
0 1 1
1 0 1
1 1 0
Inputs Output
X Y F M
0 0 0 X'+Y'
0 1 1 X'+Y
1 0 1 X+Y'
1 1 1 X+Y
K-Map
In many digital circuits need to find expression with minimum variables. We can minimize
Boolean expressions of 3, 4 variables very easily using K-map without using any Boolean
algebra theorems. K-map can take two forms Sum of Product (SOP) and Product of Sum
(POS) according to the need of problem. K-map is table like representation but it gives
more information than TRUTH TABLE.
We fill grid of K-map with 0’s and 1’s then solve it by making groups.
Steps to solve expression using K-map-
1.Select K-map according to the number of variables.
2.Identify minterms or maxterms as given in problem.
3.For SOP put 1’s in blocks of K-map respective to the minterms (0’s
elsewhere).
4.For POS put 0’s in blocks of K-map respective to the maxterms(1’s
elsewhere).
5.Make rectangular groups containing total terms in power of two like
2,4,8 ..(except 1) and try to cover as many elements as you can in one
group.
From the groups made in step 5 find the product terms and sum them up
for SOP form.
Downloaded by Vibhav ([email protected])
lOMoARcPSD|31279878
Three variable K Map is drawn for a boolean expression consisting of three variables.
The number of cells present in three variable K Map = 23 = 8 cells.
So, for a boolean function consisting of three variables, we draw a 2 x 4 K Map.
Four variable K Map is drawn for a boolean expression consisting of four variables.
The number of cells present in four variable K Map = 24 = 16 cells.
So, for a boolean function consisting of four variables, we draw a 4 x 4 K Map.
Rule-07:
There should be as few groups as possible.
EXAMPLE1:
Minimize the following boolean function-
F(A, B, C, D) = Σm(0, 1, 2, 5, 7, 8, 9, 10, 13, 15)
EXAMPLE-02
Minimize the following boolean function-
F(A, B, C, D) = Σm(0, 1, 3, 5, 7, 8, 9, 11, 13, 15)
EXAMPLE 3
Minimize the following boolean function-
F(A, B, C, D) = Σm(1, 3, 4, 6, 8, 9, 11, 13, 15) + Σd(0, 2, 14)
EXAMPLE 4
Solution-
EXAMPLE6
Question
PROBLEM
QUESTION
4 variables K-map
Excess-3 CODE
Excess-3, also called XS3, is a non-weighted code used to express decimal number-s.
It is another important binary code. It is particularly significant for arithmetic operations as it
overcomes the shortcomings encountered while using the 8421 BCD code to add two decimal digits
whose sum exceeds 9. This code is used in some old computers.
The Excess-3 code for a given decimal number is determined by adding ‘3’ to each decimal digit in
the given number and then replacing each digit of the newly found decimal number by its four bit
binary equivalent. For example, XS3 code of 24 is obtained as
2 4
+3 +3
5 7
0101 0111
Any Queries