Unit 3 Complete
Unit 3 Complete
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
Binary to Decimal Convert 11012 to
decimal.
The same method can be used to convert
binary number to decimal:
= (1x23)+(1x22)+(0x21)+(1x20)
= 8 + 4 +0 +1
= 1310
Therefore 11012 = 1310.
Convert B2D16 to decimal.
Using the same method to convert
hexadecimal to decimal.
= (Bx162)+(2x161)+(Dx160)
= (11x162)+(2x161)+(13x160)
= 2816 + 32 +13
= 286110
Therefore B2D16 =
286110.
BCD to Excess-3 Steps
Step 1 -- Convert BCD to decimal.
Step 2 -- Add (3)10 to this decimal number.
Step 3 -- Convert into binary to get excess-3 code.
Example − convert (0110)BCD to Excess-3.
Step 1 − Convert to decimal (0110)BCD = (6)10
Step 2 − Add 3 to decimal (6)10 + (3)10 = (9)10
Step 3 − Convert to Excess-3 (9)10 = (1001)2
Result
(0110)BCD = (1001)XS-3
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.
A B Z
0 0 0
0 1 1
1 0 1
1 1 0
“Exclusive-NOR Gate” is a combination
of the Exclusive-OR gate and the NOT gate but has a
truth table similar to the standard NOR gate in that
it has an output that is normally at logic level “1”
and goes “LOW” to logic level “0” when ANY of its
inputs are at logic level “1”.
PROBLEM-Design combinational circuit by using gate for
given expression
PROBLEM 2 -Design circuit with logic expression by logic gate, expression
given below
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.
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.
simplify this Boolean function on the basis of rules given by
Boolean algebra.
AB + A (B+C) + B (B+C)
AB + AB + AC + BB + BC {Distributive law; A (B+C) = AB+AC, B (B+C) = BB+BC}
AB + AB + AC + B + BC {Idempotent law; BB = B}
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.
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
Product of Sums (POS):
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-
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-
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