Deld Unit 1
Deld Unit 1
Deld Unit 1
210245
DIGITAL ELECTRONICS AND LOGIC DESIGN
UNIT –I
MINIMIZATION TECHNIQUE
Prof.P.C.Patil
Department of Computer Engg
Guru Gobind Singh College of Engineering , Nasik
pcpatil.webs.com
Analog Versus Digital
• Analog = Continuous waves
• Digital = Discrete waves
• Example:
– An analog clock, whose hands move smoothly and
continuously.
– A digital clock, whose digits jump from one value to the
next.
2
‘Analog to Digital’ or ‘Digital to Analog’
3
What is DigitalElectronics?
• Digital electronics is a field of electronics
involving the study of digital signals and the
engineeringof devicesthatuseor produce them.
4
• Digital stand for digit, digital electronics basically
has two conditions which are possible, 0 (low
logic) and 1 (high logic).
• "1" as true and "0" as false are called bit and the
group of bits are namedbyte.
• The next stage in the 1940's was the use ofElectronic Diodes, and
while these were better but they were unreliable.
• The next stage was the result of the development in 1947 of the
Transistor which was much smaller, faster and cooler. Simple
transistors were replaced by Integrated Circuits (IC’s) and that got
smaller and smaller and finally deposited on silicon to be put into a
"chip". Chips are further converted to Microprocessors and etc.
6
Advantages of Digital Electronics
• Computer-controlled digital systems can be
controlled by software, allowing new
functions to be added without changing
hardware.
• Number Representation
• Data Types
• Arithmetic Operations
Number System
• Many number systems are used
– Decimal 53710
– Binary 1010012
– Octal 1488
– Hexadecimal 4BAF16
• Octal, Decimal, hexadecimal
– Uses 2 symbols/digits: 0, 1
B B
Decimal Hexadecimal
• BINARY CODED DECIMAL (BCD)
– Representation Technique
– On the BCD (Binary Coded Decimal) system the
digits are grouped in 4/8 bits nibbles, each nibble
representing a decimal digit;
• No minus sign.
• 16 bit 2scompliment
– +32767 = 011111111 11111111 = 215 - 1
– -32768 = 100000000 00000000 = -215
Floating Point Representations:
IEEE Standards
Two Types
– Addition
– Subtraction
– Multiplication Booth’s Algorithm, Add & Shift
Algorithm
– Division Restoring DivisionAlgorithm
Rules: Addition and Subtraction
Solve
• 19 + 7
General concept: Addition
5) Commutative Law
A.B = B.A
A+B = B+A
Commutative law states that changing the sequence of the
variables does not have any effect on the output of a logic
circuit.
6) Associative Law
(A.B).C = A.(B.C)
(A+B)+C =A+(B+C)
This law states that the order in which the logic operations
are performed is irrelevaR.nV.tBidawse,PtIChT,ePuinre.effectis the same. 75
7) De Morgan Law (ComplementLaw)
(A.B)' =A'+B'
(A+B)' =A'.B'
Other Laws
• Double Negation (Inversion)
Identity Law
Law
•B.1 = B
• ((A)')' =A •B+0 = B
Annulment Law
• B.0 = 0
• B+1 = 1
Priorities
• When you are solving problems then solve
1. NOT
2. AND
3. OR
Y= (A + B). C’
Problems
1. AB+AB’
2. AB+ AB’C+AB’C’
Problems
Solve
X’Y’+XYZ+X’Y
Few more problems
Examples
Sum of Product (SOP),
Product of Sum (POS),
Minterm and Maxterm
Overview
• Sum of Product (SOP)
• Product of Sum(POS)
[0 A’ (Complement), 1 A (Normal)]
Example
1) Let's assume that we have three Boolean variables A, B, and C havingvalues
A=1
B=0
C=0
Now, we will take the complement of the variables Band Cbecause thesevalues
are 0 and will take A without complement. So, the minterm will be:
2) Let's take another example in which we have two variables Band Chaving the
value
B= 0
C= 1
Minterm from values
Example
1) Let's assume that we have three Boolean variables A, B, and Chaving
values
A=1
B=0
C=0
2) Let's take another example in which we have two variables B and Chaving
the value
B= 0
C= 1
Minterm= B'C
Sum of Product (SOP)example
A canonical sum of products is a boolean expression that entirely consists ofmin
terms.
Term X Y F
Index
0 0 0 0
1 0 1 1
2 1 0 1
3 1 1 1
Sum of Product (SOP)example
A canonical sum of products is a boolean expression that entirely consists ofmin
terms.
F = X’Y + XY’ + XY
F= ∑(1,2,3)
m0
m1 Canonical FormSOP:
m2
m3
m4
m5
m6 Minimal FormSOP:
m7
99
m0
m1 Canonical FormSOP:
m2
m3
m4
m5
m6 Minimal FormSOP:
m7
F= A+BC’
100
NOTE: SOP
• In Canonical/ Standard SOP form: Each minterm is
having all the variables in normal or complimented
form.
F= A+BC’
101
Examples
1. Y(A,B)= ∑(1,3)
2. Y(A,B)= ∑(0,2,3)
3. Y(A,B,C)= ∑(0,2,3,6,7)
102
Solution
1. Y=B
2. Y=A+B’
3. Y=B+A’C’
103
Maxterm
• Maxterms are OR terms with every variable in
true or complementedform.
Term X Y F
Index
0 0 0 0
1 0 1 1
2 1 0 1
3 1 1 0
Product of Sum (POS)
A canonical product of sum is a boolean expression thatentirely
consists of maxterms.
Here we will observe the Maxtermsfor which output is0.
2 1 0 1 X’+Y
F in POS Form (Maxterms)
3 1 1 0 X’+Y’
F = (X+Y).(X’+Y’)
F=∏(0,3)
m0
m1 Canonical FormPOS:
m2
m3
m4
m5
m6 Minimal FormPOS:
m7
109
m0
m1 Canonical FormPOS:
m2
m3
m4
m5
m6 Minimal FormPOS:
m7
F= (A + B). (A + C’)
F (A,B,C)= M0 + M1 +M3
F=∏ ( 0, 1,3)
110
NOTE: POS
• In Canonical/ Standard SOP form: Each minterm is
having all the variables in normal or complimented
form.
F= (A + B). (A + C’)
111
Examples
1. Y(A,B)=∏(1,3)
2. Y(A,B,C)=∏(1,4,5)
112
Solution
1. Y=B’
2. Y=B+A’C’
113
Where to use SOP ndPOS?
• If you wish to use more AND gates: UseSOP
114
Minimization with Karnaugh
Maps
Overview
• K-maps: an alternate approach to representing Boolean
functions.
117
Karnaugh maps
• Alternate way of representing Booleanfunction
– All rows of truth table represented with a square
– Each square represents a minterm
x y F y
0 0 1 y y
x 0 1 x 0 1
0 1 1 0 0
1 0 0
x 1 1
1 1 0
118
Karnaugh maps
• Alternate way of representing Booleanfunction
– All rows of truth table represented with a square
– Each square represents a minterm
x y F y
0 0 1 y y
x 0 1 x 0 1
0 1 1 0 x’y’ x’y 0 1 1
1 0 0
x 1 xy’ xy 1 0 0
1 1 0
119
Karnaugh maps
• Alternate way of representing Booleanfunction
– All rows of truth table represented with a square
– Each square represents a minterm
120
Karnaugh Maps
• A Karnaugh map is a graphical tool for assisting in the
general simplification procedure.
• Two variable maps.
B B
0 1 0 1
A A
0 0 1 0 0 1
1 1 0 1 1 1
A B C F
° Three variablemaps. 0 0 0 0
0 0 1 1
BC 0 1 0 1
A
00 01 11 10 0 1 1 0
0 0 1 0 0 1
1 0 1 1 0 1 1
1 1 1 1 1 1 1 0 1
1 1 1 1
121
Karnaugh Maps
• A Karnaugh map is a graphical tool for assisting in the
general simplification procedure.
• Two variable maps.
B B
0 1 0 1
A A
0 0 1 0 0 1 F=AB +AB+AB
F=AB +A’B
1 1 0 1 1 1
A B C F
° Three variablemaps. 0 0 0 0
0 0 1 1
BC 0 1 0 1
00 01 11 10 0 1 1 0
A
0 0 1 0 0 1
1 0 1 1 0 1 1
1 1 1 1 1 1 1 0 1
1 1 1 1
F=AB’C’ +AB C+ABC +ABC + A’B’C +A’BC’
122
Rules for K-Maps
We can reduce functions by circling 1’s in the K-map
Each circle represents minterm reduction
Following circling, we can deduce minimized AND-ORform.
Rules to consider
1. Every cell containing a ‘1’ must be included at least once.
2. The largest possible “Power of 2 rectangle” must be
enclosed
[Pairing of two 1’s, four 1’s, eight 1’s or sixteen 1’s (Highest
Priority)].
3. The 1’s must be enclosed in the smallest possible number of
rectangles.
4. Diagonal pairing is notallowed, adjacent pairing is allowed.
123
Karnaugh maps
• Alternate way of representing Booleanfunction
– All rows of truth table represented with a square
– Each square represents a minterm
124
Karnaugh maps
• Alternate way of representing Booleanfunction
– All rows of truth table represented with a square
– Each square represents a minterm
125
Karnaugh Maps
• A Karnaugh map is a graphical tool for assisting in thegeneral
simplification procedure.
• Two variable maps.
B B
0 1 0 1
A A F=AB +AB+AB
00 1 Optimized 00 1
11 0 form: 11 1
F=AB +A’B
° Three variablemaps.
BC
00 01 11 10
A
00 1 0 1
11 1 1 1
ab ab
c 00 01 11 10 c 00 01 11 10
0 0 0 1 0 0 0 0 1 1
1 0 1 1 1 1 0 0 1 1
• f2(x, y, z) = ∑m (0,1,2,3,6)
• f3(x1,x2) = ∑m (0,1,2)
• y=A’B’C’+A’BC’+AB’C+ABC
PJF- 131
Solution
yz
X 00 01 11 10
• f1(x, y, z) = ∑m(2,3,5,7) 0 1 1
1 1 1
f1(x, y, z) = x’y + xz
• f2(x, y, z) = ∑m (0,1,2,3,6)
1 1 1 1
f2(x, y, z) = x’+yz’
1
PJF- 132
• f3(x1,x2) = ∑m (0,1,2) x2
f3(x1,x2)= x1’ +x2’ x1 0 1
0 1
0 1 1
2 3
1 1 0
133
Y=AC+A’C’
134
Example
• Simplify the followingBoolean function
• f(A,B,C,D) = ∑m(0,1,2,4,5,7,8,9,10,12,13).
PJF- 135
Solution
• Simplify the following Boolean function(A,B,C,D) =
∑m(0,1,2,4,5,7,8,9,10,12,13).
• First put the function g( ) into the map, and then
group as many 1s as possible.
cd
ab 00 01 11 10
1 1 1 1 1 1
00
01 1 1 1 1 1 1
11 1 1 1 1
10 1 1 1 1 1 1
g(A,B,C,D) = c’+b’d’+a’bd
PJF- 136
Example
137
138
f =y f = x’y +xy’ f = x’ +y’
139
140
141
Answers
142
Example
• f(A,B,C,D) = ∑m(6,8,9,10,11,12,13,14).
143
144
145
Summary
• Application: One bit adder.
• Karnaugh map allows us to represent
functions with new notation.
• Representation allows for logic reduction.
– Implement same function with less logic
• Each square represents one minterm
• Each circle leads to one product term
• Not all functions can be reduced
• Each circle represents an application of:
– Distributive rule -- x (y + z) = xy + xz
– Complement rule – x + x’ = 1
146
147
148
149
150
151
KMap using Don’t care
Don’t Care Conditions
• Adon’t care condition, marked by (X) in the truth table,
indicates a condition where the design doesn’t care if
the output is a (0) ora (1).
159
Steps
1. Make a groups according to number of ‘1’s’
present.
160
161
162
163
164
Prime
Implicants
165
166
Example 1
• f(W,X,Y,Z)=∑m(2,6,8,9,10,11,14,15)
167
Solution
168
169
F=YZ’ + WX’ + WY.
170
Example 2
• f(A, B, C, D) = (0,1,2,3,5,7,8,10,12,13,15)
171
Solution
172
173
Example 3
174
Solution