Unit-III Combinational Logic Circuits
Unit-III Combinational Logic Circuits
Unit-III Combinational Logic Circuits
Combinational Logic
Circuits
1
Unit III – Combinational Logic Circuits
Standard Boolean representation: Sum of Product (SOP) &
Product of Sum (POS), Maxterm and Minterm , Conversion
between SOP and POS forms, realization using NAND/NOR
gates.
K-map reduction technique for the Boolean expression:
Minimization of Boolean functions up to 4 variables (SOP & POS
form)
Design of Airthmetic circuits and code converter using K-map:
Half and Full Adder, Half and Full Subtractor, Gray to Binary and
Binary to Gray Code Converter (up to 4 bit).
2
Standard Representation
3
SOP Form
Sum
Y A . B B .C A.C
Product
4
POS Form
Y ( A B).(B C).( A C )
Sum
5
Standard or Canonical SOP & POS Forms
6
Standard SOP
7
Standard POS
Y ( A B C).( A B C).( A B C )
Each sum term
consists all
the literals
8
Examples
Sr.
No. Expression Type
2 Y AB AB AB Standard SOP
9
Conversion of SOP form to Standard SOP
Procedure:
1. Write down all the terms.
2. If one or more variables are missing in any
product term, expand the term by multiplying
it with the sum of each one of the missing
variable and its complement .
3. Drop out the redundant terms
10
Example 1
Y AB AC BC
Missing literal is A
Missing literal is B
Missing literal is C
11
Example 1 Continue….
12
Conversion of POS form to Standard POS
Procedure:
1. Write down all the terms.
2. If one or more variables are missing in any sum
term, expand the term by adding the products
of each one of the missing variable and its
complement .
3. Drop out the redundant terms
13
Example 2
Convert given expression into its standard SOP form Y ( A B).( A C).(B
C)
Y ( A B).( A C).(B C)
Missing literal is A
Missing literal is B
Missing literal is C
Y ( A B CC).( A C BB).(B C
AA)
14
Example 2 Continue….
15
Concept of Minterm and Maxterm
16
The concept of minterm and max term
allows
17
Minterms & Maxterms for 3 variable/literal logic function
A B C mi Mi
0 0 0 ABC m0 ABC M 0
0 0 1
ABC m1 ABC M 1
0 1 0 ABC m2 ABC M 2
0 1 1
ABC m3 ABC M 3
1 0 0 ABC m4 ABC M 4
1 0 1
ABC m5 ABC M 5
1 1 0
ABC m6 ABC M 6
1 1 1 ABC m7 ABC M 7
18
Minterms and maxterms
A B mi Mi
0 0
AB m0 AB M 0
0 1 AB m 1 AB M 1
1 0 AB m2 AB M 2
1 1 AB m3
AB M 3
20
Representation of Logical expression using minterm
Corresponding
m7 m3 m4 minterms
m5
Y m7 m3 m 4 m5
Y m(3, 4, 5, OR
7)
Y f ( A, B, C) m(3, 4, 5,
7)
Y M 2.M 0.M 6
Y M (0, 2, OR
6)
Y f ( A, B, C) M (0, 2,
6)
24
Examples
Y A BC ABC
2. Convert the given expression into standard form
Y ( A B).( A C)
25
Unit III – Combinational Logic Circuits
Standard Boolean representation: Sum of Product (SOP) &
Product of Sum (POS), Maxterm and Minterm , Conversion
between SOP and POS forms, realization using NAND/NOR gates.
K-map reduction technique for the Boolean expression:
Minimization of Boolean functions up to 4 variables (SOP & POS
form)
Design of Airthmetic circuits and code converter using K-map:
Half and Full Adder, Half and Full Subtractor, Gray to Binary and
Binary to Gray Code Converter (up to 4 bit).
26
Karnaugh Map (K-map)
simplification techniques.
on K-map.
28
Karnaugh Map (K-map)
29
Karnaugh Map (K-map)
A A A A
A A
B 0 1 B 0 1
AB AB m0 m1
B 0 B 0
B 1 AB AB m2 m3
B 1
30
Karnaugh Map (K-map)
A B Y 0 0
B 0
1 1
0 0 0 B 1
0 1 1
1 0 0
B B
B
A 0 1
1 1 1
0 1
A 0
A 1 0 1
31
Karnaugh Map (K-map)
K-map Structure - 3 Variable
A, B & C are variables or inputs
3 variable k-map consists of 8 boxes i.e. 23=8
AB
C A
BC 0 1
0
00
1
01
BC
00 01 11 10 11
A
10
0
32
Karnaugh Map (K-map)
33
Karnaugh Map (K-map)
00 m0 m 4
1 m1 m 3 m 7 m 5
01 m1 m 5
A
BC
00 01 11 10 11 m3 m 7
0
m 0 m1 m 3 m 2 10 m2 m 6
1 m4 m5 m7 m6
34
Karnaugh Map (K-map)
AB CD
CD AB 00 01 11 10
00 01 11 10
00 00
01 01
11 11
10 10
35
Karnaugh Map (K-map)
AB CD
CD 00 01 11 10 AB 00 01 11 10
36
Karnaugh Map (K-map)
AB CD
CD 00 01 11 10 AB 00 01 11 10
00
m0 m4 m12 m8 00
m0 m1 m3 m2
m4 m5 m7 m6
01 m1 m5 m13 m9 01
11 11
m12 m13 m15 m14
m3 m7 m15 m11
m8 m9 m11 m10
10 10
m2 m6 m11 m10
37
Representation of Standard SOP form expression on K-map
ABC ABC 56
Simplification of K-map
40
Grouping
41
Grouping of Two Adjacent 1’s : Pair
AB AB
C C
BC B B B B
A C C C C
00 01 11 10
A 0 0 0 1 1 Y ABC ABC
A 1 0 0 0 0 Y AB(C C)
Y AB ( CC
1)
42
Grouping of Two Adjacent 1’s : Pair
BC B B B B BC BC BC BC BC
C C C C A 00 01 11 10
A
00 01 11 10
0 0 0 0 0 1 1 1
A 0 A 0
A 1 1 0 0 1 A 1 0 0 1 0
BC B B B B B B B
A C C C C A 0 1
00 01 11 10
0 1 0 0 1 1
A 0 A 0
A 1 0 1 0 0 A 1 1 0
43
Grouping of Two Adjacent 1’s : Pair
CD C CD CD CD
AB D
00 01 11 10
0 1 0 0
AB 00
A 01 0 0 0 0
B
A 11 0 0 0 0
B
A 10 0 1 0 0
B
44
Possible Grouping of Four Adjacent 1’s : Quad
A Quad eliminates 2 variable
CD CD C C CD CD CD C C CD
AB 00 D D 10 AB 00 D D 10
01 11 01 11
0 0 0 0 0 1 0 0
AB 00 AB 00
0 0 0 0
A 01 A 01 0 1 0 0
B 0 0 0 0 B
A 11 A 11 0 1 0 0
B B
1 1 1 1
A 10 A 10 0 1 0 0
B B
45
Possible Grouping of Four Adjacent 1’s : Quad
A Quad eliminates 2 variable
CD CD C C CD CD CD C C CD
AB 00 D D 10 AB 00 D D 10
01 11 01 11
AB 00 0 0 0 0 AB 00 0 1 1 0
A 01 1 1 0 0 A 01 0 0 0 0
B B
A 11 1 1 0 0 A 11 0 0 0 0
B B
A 10 0 0 0 0 A 10 0 1 1 0
B B
46
Possible Grouping of Four Adjacent 1’s : Quad
A Quad eliminates 2 variable
CD CD C C CD CD CD C C CD
AB 00 D D 10 AB 00 D D 10
01 11 01 11
1 0 0 1 0 0 0 0
AB 00 AB 00
A 01 A 01 1 0 0 1
B 0 0 0 0 B
A 11 A 11 1 0 0 1
0 0 0 0
B B
A 10 1 0 0 1 A 10 0 0 0 0
B B
47
Possible Grouping of Four Adjacent 1’s : Quad
A Quad eliminates 2 variable
CD CD C C CD CD CD C C CD
AB 00 D D 10 AB 00 D D 10
01 11 01 11
AB 00 0 0 0 0 AB 00 0 0 0 0
A 01 0 1 1 1 A 01 0 1 1 0
B B
A 11 0 1 1 1 A 11 0 1 1 0
B B
A 10 0 0 0 0 A 10 0 1 1 0
B B
48
Possible Grouping of Eight Adjacent 1’s : Octet
A Octet eliminates 3 variable
CD CD C C CD CD CD C C CD
AB 00 D D 10 AB 00 D D 10
01 11 01 11
AB 00 0 0 0 0 AB 00 0 1 1 0
A 01 0 0 0 0 A 01 0 1 1 0
B B
A 11 1 1 1 1 A 11 0 1 1 0
B B
A 10 1 1 1 1 A 10 0 1 1 0
B B
49
Possible Grouping of Eight Adjacent 1’s : Octet
CD CD C C CD CD CD C C CD
AB 00 D D 10 AB 00 D
01 D
11 10
01 11
1 1 1 1
AB 00 AB 00 1 0 0 1
A 01 0 0 0 0 A 01 1 0 0 1
B B
A 11 0 0 0 0 A 11 1 0 0 1
B B
A 10 1 1 1 1 A 10 1 0 0 1
B B
50
Rules for K-map simplification
A
A A A
A A
B 0 1 B 0 1
0 0
B 0 B 0
B 1 1 B 1 1 1
51
Rules for K-map simplification
A
A A A
A A
B 0 1 B 0 1
0 1 0 1
B 0 B 0
B 1 1 0 B 1 1 1
52
Rules for K-map simplification
BC B B B B BC B B B B
A C C C C A C C C C
00 01 11 10 00 01 11 10
0 1 1 1 0 1 1 1
A 0 A 0
A 1 0 0 0 0 A 1 0 0 0 0
A
A A A
A A
B 0 1 B 0 1
1 1 1 1
B 0 B 0
B 1 0 1 B 1 0 1
B B BC B B
BC
BC BC BC BC
A C C A C C
00 01 11 10 00 01 11 10
1 1
A 0 1 1 1 1 A 0 1 1
A 1 0 0 1 1 A 1 0 0 1 1
54
Rules for K-map simplification
BC B B
BC BC
A C C
00 01 11 10
0 0 0 1
A 0
A 1 0 0 1 0
55
Rules for K-map simplification
6. Groups may be overlap
BC B B
BC BC
A C C
00 01 11 10
A 0 1 1 1 1
A 1 0 0 1 1
56
Rules for K-map simplification
7. Groups may wrap around the table. The leftmost cell
in a row may be grouped with rightmost cell and the
top cell in a column may be grouped with bottom cell
CD CD C C CD
AB 00 D D 10
01 11 BC B B B B
1 1 1 1
AB 00 A C C C C
00 01 11 10
A 01 1 0 0 1
0 0 0 0 A 0
B
A 11 0 0 0 0 A 1 1 0 0 1
B
A 10 1 1 1 1
B
57
Rules for K-map simplification
8. There should be as few groups as possible, as long
as this does not contradict any of the previous
rules.
B B BC B B
BC
BC BC BC BC
A C C A C C
00 01 11 10 00 01 11 10
1 1
A 0 1 1 1 1 A 0 1 1
A 1 0 0 1 1 A 1 0 0 1 1
58
Rules for K-map simplification
9. A pair eliminates one variable.
59
Example 1
AB A A A
C AB B B B
00 01 11 10
0 1 1 1
C
0 0 0 1 0
1
C
60
Example 1 continue…..
AB AB AB AB AB
C 00 01 11 10
C
0 1 1 1 AC
0 0 0 1 0
1
C
B A
C B
Simplified Boolean expression
Y
BC AB AC
61
Example 2
For the given K-map write simplified Boolean expression
AB A A A
C AB B B B
00 01 11 10
1 1 0 1
C
0 1 0 0 1
1
C
62
Example 2 continue…..
AB A A A
C AB B B B
00 01 11 10
1 1 0 1
C
0 1 0 0 1
1
C
AC B
Simplified Boolean
expression
Y B
AC
63
Example 3
64
Example 3 continue……
BC BC BC BC BC AB
A 00 01 11 10
1 0 1 1
A 0
A 1 0 1 0 0
A
C ABC
Simplified Boolean expression
Y AC AB ABC
65
Example 4
66
Example 4 continue…..
Y m(0,1, 2, 5,13,15)
CD CD C C CD
AB 00 D D 10 ABD
0 01 1 11 3
1 1 0 2
AB 00 1
A 01
B 4 5 7 6 Simplified Boolean expression
0 1 0 0
A 11 12 13 15 14
B 0 1 1 0 Y A B D ACD ABD
8 9 11 10
A 10 0 0 0 0
B
AC AB
D D
67
Example 5
f ( A, B, C, D) m(1, 3, 5,
9,11,13)
68
Example 5 continue…..
f ( A, B , C , D ) m(1, 3, 5,
9,11,13)
CD CD C C CD
AB 00 D D 10
0 01 1 11 3
0 1 1 02
AB 00
4 5 7 6
A 01 0 1 0 0
B Simplified Boolean expression
A 12 13 15 14
11 0 1 0 0
B f BD CD
8 9 11 10
A 10 0 1 1 0 f D(B C)
B
B C
D D
69
Example 6
f ( A, B, C, D) m(4, 5,8,
9,11,12,13,15)
70
Example 6 continue…..
f (A, B,C, D)
m(4,5,8,9,11,12,13,15)
CD C CD CD CD
AB D
00 0 01 1 11 3 10 2 B
AB 00 0 0 0 0 C
4 5 7 6
A 01 1 1 0 0
B Simplified Boolean expression
12 13 15 14
A 11 1 1 1 0
B f BC AC AD
8 9 11 10
A 10 1 1 1 0
B
A A
C D
71
Example 7
f 2( A, B, C, D) m(0,1, 2,
3,11,12,14,15)
72
Example 7 continue…..
A 01
B Simplified Boolean expression
4 5 7 6
A 11 0 0 0 0
B 12 13 15 14 f 2 AB ABD ACD
1 0 1 1
A 10
B 8 9 11 10
0 0 1 0
AB AC
D D
73
Example 8
1. f 1( A, B, C) m(0,1, 3, 4, 5)
2. f 2( A, B, C) m(0,1, 2, 3, 6,
7)
74
Example 8 continue……
A B
B
f 1 AC B f 2 A B
75
Example 9
Simplify ;
f ( A, B, C, D) m(0,1, 4, 5, 7,8,
9,12,13,15)
76
Example 9 continue…..
C B
D
77
Example 10
1. f 1( A, B, C, D) m(0,1, 3, 4, 5,
2. 7)
f 2( A, B, C) m(0,1, 3, 4, 5, 7)
78
Example 10 continue……
(POS).
Boolean expression
81
Example 11
Simplify ;
f ( A, B, C, D) M (0,1, 3, 5, 6,
7,10,14,15)
82
Example 11 continue…..
A B A C
C D
Simplified Boolean expression
f ( A D)(B C)( A C
D)( A B C )
83
Example 12
Simplify ;
f ( A, B, C, D) M (4,
6,10,12,13,15)
84
Example 12 continue…..
A B A B C
C D
A B D
Simplified Boolean expression
f ( A B C D)( A B D)( A B
D)( A B C ) 85
K-map and don’t care conditions
Simplify ;
89
K-map and don’t care conditions - Example
91
Half Adder
A Sum
92
Half Adder
Input Output
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
93
Half Adder
K-map for Sum Output:
A
A A
B 0 1
0 1 S AB AB
B 0
SAB
B 1 1 0
0 0
B 0 C AB
B 1 0 1
94
Half Adder
Logic Diagram:
A
SA
B
B
C AB
95
Half Adder
Logic Diagram using Basic Gates:
A B
SA
B
C AB
96
Unit III – Combinational Logic Circuits
Standard Boolean representation: Sum of Product (SOP) &
Product of Sum (POS), Maxterm and Minterm , Conversion
between SOP and POS forms, realization using NAND/NOR gates.
K-map reduction technique for the Boolean expression:
Minimization of Boolean functions up to 4 variables (SOP & POS
form)
Design of Airthmetic circuits and code converter using K-map:
Half and Full Adder, Half and Full Subtractor, Gray to Binary and
Binary to Gray Code Converter (up to 4 bit).
97
Full Adder
A Sum
Cin
98
Full Adder
Truth Table
Inputs Outputs
A B Cin Sum (S) Carry (C)
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
99
Full Adder
K-map for Sum Output:
BC B B B B
C C C C
A S ABC ABC ABC ABC
00 01 11 10
A 0 0 1 0 1
S ABC ABC ABC ABC
A 1 1 0 1 0 S C( AB AB) C( AB
AB)
AB Let AB AB X
AB AB
AB C S C( X )
C C
C C( X )
SC X
Let X AB
S CAB 100
Full Adder
BC B B B B
A C C C C
00 01 11 10
A 0 0 0 1 0
C AB BC AC
A 1 0 1 1 1
B
A
A C
B
C
101
Full Adder
Logic Diagram:
A B
C
SAB
C
C AB BC AC
102
Full Adder using Half Adders
A S0 S1 Sum
HA1 HA2
B C0 C1
C
Carry
103
Unit III – Combinational Logic Circuits
Standard Boolean representation: Sum of Product (SOP) &
Product of Sum (POS), Maxterm and Minterm , Conversion
between SOP and POS forms, realization using NAND/NOR gates.
K-map reduction technique for the Boolean expression:
Minimization of Boolean functions up to 4 variables (SOP & POS
form)
Design of Airthmetic circuits and code converter using K-map:
Half and Full Adder, Half Subtractor and Full Subtractor, Gray to
Binary and Binary to Gray Code Converter (up to 4 bit).
104
Half Subtractor
105
Half Subtractor
Truth Table
Input Output
0 0 0 0
0 1 1 1
1 0 1 0
1 1 0 0
106
Half Subtractor
K-map for Difference Output:
A
A A
B 0 1
0 1 D AB AB
B 0
D AB
B 1 1 0
0 1
B 0 B AB
B 1 0 0
107
Half Subtractor
Logic Diagram:
A
DA
B B
B AB
108
Half Subtractor
Logic Diagram using Basic Gates:
A B
DA
B
B AB
109
Unit III – Combinational Logic Circuits
Standard Boolean representation: Sum of Product (SOP) &
Product of Sum (POS), Maxterm and Minterm , Conversion
between SOP and POS forms, realization using NAND/NOR gates.
K-map reduction technique for the Boolean expression:
Minimization of Boolean functions up to 4 variables (SOP & POS
form)
Design of Airthmetic circuits and code converter using K-map:
Half and Full Adder, Half and Full Subtractor, Gray to Binary and
Binary to Gray Code Converter (up to 4 bit).
110
Full Subtractor
A Difference
Bin
111
Full Subtractor
Truth Table
Inputs Outputs
0 0 0 0 0
0 0 1 1 1
0 1 0 1 1
0 1 1 0 1
1 0 0 1 0
1 0 1 0 0
1 1 0 0 0
1 1 1 1 1
112
Full Subtractor
K-map for Difference Output:
BC B B B B
C C C C
A D ABC ABC ABC ABC
00 01 11 10
A 0 0 1 0 1
D ABC ABC ABC ABC
A 1 1 0 1 0 D C( AB AB) C ( AB
AB)
AB Let AB AB X
AB AB
AB C D C( X )
C C
C C( X )
DCX
Let X A B
DCAB 113
Full Subtractor
BC B B B B
A C C C C
00 01 11 10
A 0 0 1 1 1
B 0 AB BC
A 1 0 0 1 0 AC
B
C A
A
B
C
114
Full Subtractor
Logic Diagram:
A B
C
DAB
C
B 0 AB B C AC
115
Full Subtractor using Half Subtractor
A D0 D1
Difference
HS1 HS2
B B0 B1
C
Borrow
116
Unit III – Combinational Logic Circuits
Standard Boolean representation: Sum of Product (SOP) &
Product of Sum (POS), Maxterm and Minterm , Conversion
between SOP and POS forms, realization using NAND/NOR gates.
K-map reduction technique for the Boolean expression:
Minimization of Boolean functions up to 4 variables (SOP & POS
form)
Design of Airthmetic circuits and code converter using K-map:
Half and Full Adder, Half and Full Subtractor, Gray to Binary Code
Converter and Binary to Gray Code Converter (up to 4 bit).
117
Design of Gray to Binary Code Converter
Block Diagram:
G3 B3
G2 Gray to Binary B2 Binary
Gray
Code Outputs
Inputs G1 B1
converter
G0
B0
118
Design of Gray to Binary Code Converter
Truth Table :
Gray Inputs Binary Outputs Gray Inputs Binary Outputs
G3 G2 G1 G0 B3 B2 B1 B0 G3 G2 G1 G0 B3 B2 B1 B0
0 0 0 0 0 0 0 0
1 0 0 0 1 1 0 0
0 0 0 1 0 0 0 1
1 0 0 1 1 1 0 1
0 0 1 0 0 0 1 1 1 0 1 0 1 1 1 1
0 0 1 1 0 0 1 0 1 0 1 1 1 1 1 0
0 1 0 0 0 1 1 0 1 1 0 0 1 0 1 0
0 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1
0 1 1 0 0 1 0 1 1 1 1 0 1 0 0 1
0 1 1 1 0 1 0 0 1 1 1 1 1 0 0 0
9 / Amit
10/2018 Nevase 137
Design of Gray to Binary Code Converter
K-map for B0: G1 G 0 G1 G0 G 1G G 1G
0 0
G3G2 G1 G0
11 10
0 1 3 2
000 01
1 0 1
G3G2 00
4 5 7 6
GG 01 1 0 1 0
23
12 13 15 14
G3G 11 0 1 0 1
2
8 9 11 10
G3G 10 1 0 1 0
2
B1 G3G2G1 G3G2G1 G 3 G 2 G 1 G 3 G 2 G 1
B1 G 3 G 2 G1
Design of Gray to Binary Code Converter
K-map for B2: G1 G 0 G1 G0 G 1G G 1G
0 0
G3G2 G1 G0
11 10
0 1 3 2
000 01
0 0 0
G3G2 00
4 5 7 6
GG 01 1 1 1 1
23
12 13 15 14
G3G 11 0 0 0 0
2
8 9 11 10
G3G 10 1 1 1 1
2
B2 G3G2 G3G2
B1 G 3 G 2
Design of Gray to Binary Code Converter
B3 G3
Design of Gray to Binary Code Converter
Logic Diagram:
G3 G2 G1
G0
B3
B2 G 3 G 2
B1 G1 G2 G3
B0 G0 G1 G2
G3
Unit III – Combinational Logic Circuits
Standard Boolean representation: Sum of Product (SOP) &
Product of Sum (POS), Maxterm and Minterm , Conversion
between SOP and POS forms, realization using NAND/NOR gates.
K-map reduction technique for the Boolean expression:
Minimization of Boolean functions up to 4 variables (SOP & POS
form)
Design of Airthmetic circuits and code converter using K-map:
Half and Full Adder, Half and Full Subtractor, Gray to Binary and
Binary to Gray Code Converter (up to 4 bit).
Design of Binary to Gray Code Converter
Block Diagram:
B3 G3
B2 Binary to Gray G2
Binary Code Gray
Inputs 1 G1 Outputs
converter
B0 G0
Design of Binary to Gray Code Converter
Truth Table :
Binary Inputs Gray Outputs Binary Inputs Gray Outputs
B3 B2 B1 B0 G3 G2 G1 G0 B3 B2 B1 B0 G3 G2 G1 G0
0 0 0 0 0 0 0 0
1 0 0 0 1 1 0 0
0 0 0 1 0 0 0 1
1 0 0 1 1 1 0 1
0 0 1 0 0 0 1 1
1 0 1 0 1 1 1 1
0 0 1 1 0 0 1 0
1 0 1 1 1 1 1 0
0 1 0 0 0 1 1 0
1 1 0 0 1 0 1 0
0 1 0 1 0 1 1 1
1 1 0 1 1 0 1 1
0 1 1 0 0 1 0 1
1 1 1 0 1 0 0 1
0 / 1 1 0 1 0 0Ami
10/1201 t 1
1 1 1 1 0 0 145
0
9 8 Nevas e
Design of Binary to Gray Code Converter
B 1B B1B
0 0
Design of Binary to Gray Code Converter
B2 B2B
1
B1
Design of Binary to Gray Code Converter
B 3B B 3B
2 2
Design of Binary to Gray Code Converter
B
3
Design of Binary to Gray Code Converter
Logic Diagram:
B3 B2 B1 B0
G3
G 2 B3 B 2
G1 B2 B1
G0 B1
B0
Unit III – Combinational Logic Circuits
Airthmetic Circuits: (IC 7483) Adder & Subtractor, BCD Adder
A2 B2 A1 B1 A0 B0
A n 1 Bn 1
Sn 1 S S1 S
2 0
4 – Bit Parallel Adder using full adder
A3 B3 A2 B2 A1 B1 A0 B0
S S S1 S
3 2 0
IC 7483 4 – Bit Binary Parallel Adder
A3 B3 A2 B2 A1 B1 A0 B0
S S S1 S
3 2 0
IC 7483 4 – Bit Binary Parallel Adder
A 3 A 2 A1 A 0 B 3 B 2 B1 B 0
Cin
C0 IC 7483
Carry
Carry
Input
Output
S 3 S S1 S
2 0
Sum Output
Cascading of IC 7483
If we want to add two 8 bit binary numbers using 4 bit binary parallel adder IC 7483,
then we have to cascade the two ICs in following way
C in C 0
IC 7483-II IC 7483-I C in
C 0
Carry Carry
Output
Input
S 7 S S 5 S S 3 S S1 S
6 4 2 0
Sum Output
Design of 1 Digit BCD Adder
Block Diagram: A BCD no. B BCD no.
C0 IC 7483-I
S 3 S 2 S1 S 0
C in
Logic
Circuit
IC 7483-II
C0 C in
S3 S2 S1 S0 S3 S2 S1 S0
0 0 0 0 0 1 0 0 0 0
0 0 0 1 0 1 0 0 1 0
0 0 1 0 0 1 0 1 0 1
0 0 1 1 0 1 0 1 1 1
Sum is
0 1 0 0 0 1 1 0 0 1
invalid
0 1 0 1 0 1 1 0 1 1 BCD
Numb
0 1 1 0 0 1 1 1 0 1
er
Y=1
0 1 1 1 0 1 1 1 1 1
Design of 1 Digit BCD Adder
S3S S1S
2 3
Design of 1 Digit BCD Adder
A BCD no. B BCD no.
Combinational
Logic Circuit
C0 IC 7483-I
S 3 S 2 S1 S 0
C in
Y' Y
C0
IC 7483-II
Not used C in
S 3 S 2 S1 S 0
Carry output
162
BCD Output Sum
4 Bit Binary Parallel Subtractor using IC 7483
A 3 A 2 A1 A 0 B 3 B 2 B1 B 0
NOT gates for 1’s
complement of B
Vcc 5V
C0
Carry IC 7483
C in 1
Output S 3 S 2 S1 S
0 It adds 1 to 1’s
complement of B
Difference Output
IC 7483 as Parallel Adder/Subtractor
B Binary number
B3 B2 B1 B0
A Binary number
M
A 3 A 2 A1 A 0 Mode
Select
C0
Carry IC 7483
C in
Output S 3 S 2 S1 S
0
‘n’ ‘m’
. Encoder .
inputs . .
outputs
. .
Types of Encoders
Priority Encoder
will be considered.
Priority Encoder 8:3
Highest Priority
D0
Y2
D1 Priority ‘3’
‘8’ Y1 outputs
Encoder
inputs
8:3 Y0
D42
D5
D6
D3
DD7
Lowest Priority
Priority Encoder 8:3
Truth Table:
Inputs Outputs
D7 D6 D5 D4 D3 D2 D1 D0 Y2 Y1 Y0
0 0 0 0 0 0 0 0 X X X
0 0 0 0 0 0 0 1 0 0 0
0 0 0 0 0 0 1 X 0 0 1
0 0 0 0 0 1 X X 0 1 0
0 0 0 0 1 X X X 0 1 1
0 0 0 1 X X X X 1 0 0
0 0 1 X X X X X 1 0 1
0 1 X X X X X X 1 1 0
1 X X X X X X X 1 1 1
Decimal to BCD Encoder
D1
A
D2
Decimal to B. ‘BCD’
BCD C. outputs
D3
Encoder
D
D4
‘9’ D5
inputs D6
D7
D8
D9
Decimal to BCD Encoder
Truth Table:
Inputs Outputs
D9 D8 D7 D6 D5 D4 D3 D2 D1 D C B A
0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 1 0 0 0 1
0 0 0 0 0 0 0 1 X 0 0 1 0
0 0 0 0 0 0 1 X X 0 0 1 1
0 0 0 0 0 1 X X X 0 1 0 0
0 0 0 0 1 X X X X 0 1 0 1
0 0 0 1 X X X X X 0 1 1 0
0 0 1 X X X X X X 0 1 1 1
0 1 X X X X X X X 1 0 0 0
1 X X X X X X X X 1 0 0 1
Decoder
‘n’ ‘2n’
. decoder .
inputs . .
outputs
. .
Typical applications of Decoders
Code Converters
Relay actuators
Types of Decoders
2 to 4 line Decoder
3 to 8 line Decoder
E Enable
Input Y3
Enable
i/p Data Inputs Outputs
E A B Y0 Y1 Y2 Y3
0 X X 0 0 0 0
1 0 0 1 0 0 0
Truth Table
1 0 1 0 1 0 0
1 1 0 0 0 1 0
1 1 1 0 0 0 1
2 to 4 Line Decoder
E A
B
A
B
Y0
Y1
Y2
Y3
3 to 8 Line Decoder
Block Diagram
Y0
A
Input B Y1
3:8 Y2
Decoder
C
Y3
Y4
Y5
Y6
E Y7
Enable
Input
3 to 8 Line Decoder
Truth Table
Enabl
e i/p Inputs Outputs
E A B C Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0
0 X X X 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 1
1 0 0 1 0 0 0 0 0 0 1 0
1 0 1 0 0 0 0 0 0 1 0 0
1 0 1 1 0 0 0 0 1 0 0 0
1 1 0 0 0 0 0 1 0 0 0 0
1 1 0 1 0 0 1 0 0 0 0 0
1 1 1 0 0 1 0 0 0 0 0 0
0
1 18 1 1 1 0 0 0 0 0 0
Comparison between Encoder & Decoder
Sr.
No. Parameter Encoder Decoder
3 Input lines 2n n
4 Output lines N 2n
f b
g
e c
d dp
Seven Segment Display
ON ON ON ON ON ON OFF 0
ON ON OFF ON ON OFF ON 2
ON ON ON ON OFF OFF ON 3
ON OFF ON ON OFF ON ON 5
ON OFF ON ON ON ON ON 6
ON ON ON ON ON ON ON 8
ON ON ON 9 184
ON9/10/ 2018 ON OFFAmit NevaOse
N
Types of Seven Segment Display
+Vcc
R R R R R R R R
a b c d e f g dp
Common Anode Display
+Vcc
R
b
R
c
R
d
R
BCD to
BCD
7 Segment e
R
Decoder
Input f
R
g
R
R
dp
Common Cathode Display
a b c d e f g dp
R R R R R R R R
Common Cathode Display
R
b
R
c
R
BCD to d
7 Segment
e
R
BCD Decoder
Input f
R
g
R
R
dp
R
BCD to 7 Segment Decoder Driver ICs
a to g
Active Low Outputs
Lamp Test
LT
Blanking Input
BI
RBO
Ripple Blanking
output
R B I - Ripple Blanking Input
For the normal decoding operation, this
input should be connected to logic 1.
If RBI is connected to ground, then it switches off
the display when BCD inputs corresponding to 0.
For non-zero BCD inputs, the decoder output
will be normal and the BCD number will be
displayed.
RBI=0 is connected for blanking out the
leading zeros in multidigit displays.
BI – Blanking Input
not.
16
R Common
3 LT V cc
a 13 a
5 RBI
12
R a
4 BI / RBO b
11 R b
bc f g
IC 7447 R c
10
LSB 1 d d
A0 9 R e c
2 e e dp
BCD A1 R
6 15
Inputs f f d dp
7 R
A2 G nd 14 g
MSB
8
g
A3
Display Configuration – LTS 542
Common
g f a b
a
f b
g
e c
d dp
c dp
e d
Common
Display Configuration
Unit III – Combinational Logic Circuits
Airthmetic Circuits: (IC 7483) Adder & Subtractor, BCD Adder
In D to A converters.
D0 D0
D1
Data D2 D2
Inputs Y D1
D3 D3
. n:1 .
. .
. Mux Output .
. . Output
. .
Dn-1 Dn-1
E
Enable Input
.... ....
S2 S1 s0 S2 S1 s 0
Sm-1 Sm-1
Select Lines
2:1 Multiplexer
4:1 Multiplexer
8:1 Multiplexer
16:1 Multiplexer
32:1 Multiplexer
64:1 Multiplexer
and so on…………
2:1 Multiplexer
Data D0
Inputs 2:1 Y
D1 Block Diagram
Mux
Output
E
Enable Input
s
Select Lines
Enable i/p Select i/p Output
(E) (S) (Y)
0 X 0
1 0 D0
Truth Table
1 1 D1
Realization of 2:1 Mux using gates
S D 1 D0
S
SD0
Y
Outpu
t
SD 1
E
Enabl
e
Input
4:1 Multiplexer
D1 E S1 S0 Y
Data
Y
Inputs D2 4:1
0 X X 0
Mux Output
D3
D0
1 0 0
E
1 0 1 D1
Enable
Input S1 1 1 0 D2
S0
D3
Select Lines 1 1 1
Realization of 4:1 Mux using gates
S1 S0
S1S 0D0
D0
S1S 0 D 1
D1 Y
Output
D2 S1S
0D2
E
D3 S1S 0 Enable Input
D3
8:1 Multiplexer
Block Diagram
Truth Table
D0
Outp
D1 Enable ut
i/p Select i/p
D2
E S2 S1 S0 Y
Data D3
Y 0 X X X 0
Inputs D4 8:1
Mux Output 1 0 0 0 D0
D5
1 0 0 1 D1
D6 1 0 1 0 D2
D7 1 0 1 1 D3
1 1 0 0 D4
E
1 1 0 1 D5
Enable
1 1 1 0 D6
Input
S2 S1 1 1 1 1 D7
S0 211
16:1 Multiplexer
Block Diagram
D0
D1
D2
Data
D3 Y
Inputs 16:1
Mux
D4 Output
D5
D6
D7
D8
D9 Input
Enable
D1
0
S3
D11
D12 212
S2 S1
Enable Select Lines Output
16:1 Multiplexer E S3 S2 S1 S0 Y
0 X X X X 0
1 0 0 0 0 D0
1 0 0 0 1 D1
1 0 0 1 0 D2
1 0 0 1 1 D3
1 0 1 0 0 D4
1 0 1 0 1 D5
Truth Table 1 0 1 1 0 D6
1 0 1 1 1 D7
1 1 0 0 0 D8
1 1 0 0 1 D9
1 1 0 1 0 D10
1 1 0 1 1 D11
1 1 1 0 0 D12
1 1 1 0 1 D13
1 1 1 1 0 D14
213
1 1 1 1 1 D
Mux Tree
D0
D1
Y1
D2 4:1
Mux
D3
S2 S0 Y
Select E S1
Lines S1
Output
S0 S1 S0
D4
D5
4:1
D Mux
Y2
6
D7 E
8:1 Multiplexer using 4:1 Multiplexer
D0
D1
Y1
D2 4:1
Mux
D3
D0
S0 2:1 Y
E S1 D1
S1 Mux
S0 Output
S1 S0 E
D4
D5 S2
4:1
D Mux
Y2
6
D7 E
D0
4:1 Y1
16:1 Mux using 4:1 Mux
D1
Mux
D2 S1 S0
S1
S0 D3
D4 S1 S0
D5 4:1 Y2
Mux
D6
D0
4:1 Y
D7
Mux
D1 Output
D8 D2 S0
D9 4:1 Y3 D3
D10 Mux S1
D11 S1 S0 S3 S2
S1 S0
D12
4:1 Y4
D13 Mux
217
D14
Realization of Boolean expression using Mux
f ( A, B , C ) m ( 0 , 3, 5, 6 )
+Vcc f ( A, B , C ) m ( 0 , 3, 5,
6)
D0
D1
D2
Y
8:1
D3 Mux
Output
D4
D5
D6 S S1 S0
E 2
D7 B C
A
Example 2
f ( A, B , C , D ) m ( 0 , 2, 3, 6 , 8 , 9 , 1 2 , 1 4 )
+Vcc
f ( A, B , C , D ) m ( 0 , 2, 3, 6 , 8 ,
9,12,14)
D0
D1
D2
D3 Y
16:1
Mux
D4 Output
D5
D6
D7
D8
S2 S0
E
D9
D1
0 A B C D
D11
Unit III – Combinational Logic Circuits
Airthmetic Circuits: (IC 7483) Adder & Subtractor, BCD Adder
Y0 Y0
Y1 Y1
Y2 Y2
Data
. Y3 Data . Y3
Input 1:n . .
De-mux . Input .
O O
. .
. u . u
t t
Yn-1 Yn-1
E p p
u u
Enable ts t
Input .... ....
S2 S1 s0 S2 S1 s 0
Sm-1 Sm-1
Select Lines
that n=2m.
Types of De-multiplexers
1:2 De-multiplexer
1:4 De-multiplexer
1:8 De-multiplexer
1:16 De-multiplexer
1:32 De-multiplexer
1:64 De-multiplexer
and so on…………
1: 2 De-multiplexer
Y0
Data Din 1:2
Block Diagram
Input De-mux
Y1
E
Enabl
e S
Input Select Lines
E S Y0 Y1
Truth Table 0 X 0 0
1 0 Din 0
1 1 0 Din
1:2 De-mux using basic gates
E
Din S
S
Y0
Y1
1: 4 De-multiplexer
Y0
Data Din 1:4 Y1 Block Diagram
Input De-mux Y2
E
Y3
Enable
Input Enable
S1 S0 i/p Select i/p Outputs
Select Lines
E S1 S0 Y0 Y1 Y2 Y3
0 X X 0 0 0 0
1 0 0 Din 0 0 0
1 0 1 0 Din 0 0
Truth Table
1 1 0 0 0 Din 0
1 1 1 0 0 0 Din
1:4 De-mux using basic gates
E D S1 S 0
in
S1 S 0
Y0
Y1
Y2
Y3
1: 8 De-multiplexer
Block Diagram
Y0
Data Din Y1
1:8
Input Y2
De-mux
Y3
E Y4
Enable Y5
Input Y6
S2 S1 Y7
S0
Select Lines
1: 8 De-multiplexer
Truth Table
Enabl
e i/p Select i/p Outputs
E S2 S1 S0 Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0
0 X X X 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 Din
1 0 0 1 0 0 0 0 0 0 Din 0
1 0 1 0 0 0 0 0 0 Din 0 0
1 0 1 1 0 0 0 0 Din 0 0 0
1 1 0 0 0 0 0 Din 0 0 0 0
1 1 0 1 0 0 Din 0 0 0 0 0
1 1 1 0 0 Din 0 0 0 0 0 0
1 18 1 1 D 0 0 0 0 0 0 233
1: 16 De-multiplexer
Y0
Block Diagram
Y1
Y2
Din YY3
Data 7
Input Y8
1:16
De-mux Y4
Y9
Y15
Y0 6
Y1
1
E
Y12
Enable
Input
Y13
S3 S2 S1 S0
Y14
De-mux Tree
Data Y0 Y0
1:2
Input Din De-mux
Y1 Y1
S1 E S0
Select
Lines
S0
S0
Y0 Y2
Din 1:2
De-mux
Y1 Y3
E
1:16 De-mux using 1:4 De- Y0
1:4
mux
Din De-mux Y1
Y2
S1 Y3
S0
S1 S0 Y4
1:4 Y5
Din
Data Y0 De-mux
Din 1:4 Y1 Y6
Input
De-mux Y2
Y3 Y7
S1 S0
Y8
1:4
Y9
Din De-mux
S3 S2 Y10
S1 Y11
S0
S1 S0
Y12
1:4
Din
De-mux S1 S0
Y13 237
Y14
Decoder
decoder
2:4 Decoder
Y0
A
Inputs 2:4 Y1 Block Diagram
B Decoder
Y2
E Enable
Input Y3
Enable
i/p Data Inputs Outputs
E A B Y0 Y1 Y2 Y3
0 X X 0 0 0 0
1 0 0 1 0 0 0
Truth Table
1 0 1 0 1 0 0
1 1 0 0 0 1 0
1 1 1 0 0 0 1
De-multiplexer as Decoder
as a decoder.
Vcc
Y0 Din Y0
A S1
1:4 Y 1:4 Y1
Data Din De-mux 1 Inputs
Input Y2 B S0 De-mux
Y2
E Y3
Y3
Input
Enable
Input E Enable
S1
S0
Select Lines
1: 4 De-multiplexer 1: 4 De-multiplexer as 2:4 Decoder
Realization of Boolean expression using De-mux
using de-multiplexers.
f ( A, B , C ) m ( 0 , 3, 5, 6 )
f ( A, B , C ) m ( 0 , 3, 5,
6)
+Vcc Y0
Y1
Data Y2
1:8 Y
Input Din
De-mux Y3
YY46
E S2 S1 S0 YY7
5
Enabl
e
Input A B C
Example 2
f ( A, B , C , D ) m ( 0 , 2, 3, 6 , 8 , 9 , 1 2 , 1 4 )
Y0
Y1
+Vcc
Y2
Data 1:16 Y3 Y
Input De-mux
Din
Y4
Y5
Y6
Y7
E S 3 S2 S1 SY0 815
Enabl
e Y9 f ( A, B , C , D ) m ( 0 , 2, 3, 6 , 8 ,
Input A B C D 9,12,14)
Y10
Multiplexer ICs
D0
D1
D2 Y
Data D3
Inputs 8:1
D4
Mux
D5 Y
D6
D7
E
Enable Input
Pin Diagram
S2
S1
250
S0
De-multiplexer ICs
IC Number Description
A Q
0 0
Enable IN OUT
0 0 Hi-Z
0 1 Hi-Z
Tri-state Buffer 1 0 0
1 1 1
Enable IN OUT
0 0 0
0 1 1
1 0 Hi-Z
Tri-state Buffer
1 1 Hi-Z