KARMAVEER
BHAURAO PATIL
POLYTECHNIC,
SATARA
Combinational
Logic
Circuits
Department Of Electronics And
Telecommunication Engineering
Principles of Digital
Techniques
EJ3G Subject Code: 17320
Second Year Entc
Amit Nevase
Lecturer,
Department of Electronics & Telecommunication
Engineering,
Karmaveer Bhaurao Patil Polytechnic, Satara
Amit Nevase
3/12/17 2
Objectives
The student will be able to:
Understand basic digital circuits.
PAPER
TH TU PR TH PR OR TW TOTAL
HRS
Amit Nevase
3/12/17 4
Module I Number System
Introduction to digital signal, Advantages
of Digital System over analog systems
(8 Marks)
Number Systems: Different types of number
systems( Binary, Octal, Hexadecimal ), conversion of
number systems,
Binary arithmetic: Addition, Subtraction,
Multiplication, Division.
Subtraction using 1s complement and 2s
complement
Codes
(4 Marks)
Amit Nevase
Codes -BCD, Gray Code, Excess-3, ASCII code
3/12/17 5
Module II Logic Gates & Introduction to Logic Families
Logic Gates
(8 Marks)
Basic Gates and Derived Gates
NAND and NOR as Universal Gates
Boolean Algebra: Fundamentals of Boolean Laws
Duality Theorem, De-Morgans Theorem
Numericals based on above topic
Logic Families
(8 Marks)
Characteristics of Logic Families & Comparison
between different Logic Families
Logic Families such as TTL, CMOS, ECL
Amit Nevase
3/12/17 6
TTL NAND gate Totem Pole, Open Collector
Module III Combinational Logic Circuits
Introduction
(8 Marks)
Standard representation of canonical forms (SOP &
POS), Maxterm and Minterm , Conversion between
SOP and POS forms
K-map reduction techniques upto 4 variables (SOP &
POS form), Design of Half Adder, Full Adder, Half
Subtractor & Full Subtractor using k-Map
Code Converter using K-map: Gray to Binary Binary
to Gray Code Converter (upto 4 bit)
IC 7447 as BCD to 7- Segment decoder driver
IC 7483 as Adder & Subtractor, 1 Digit BCD Adder
Block SchematicAmitofNevase
ALU IC 74181 IC 74381
3/12/17 7
Module III Combinational Logic Circuits
Amit Nevase
3/12/17 8
Module IV Sequential Logic Circuit
Sequential Circuits
(12 Marks)
Comparison between Combinational & Sequential
circuits
One bit memory cell: RS Latch- using NAND & NOR
Triggering Methods: Edge & Level Triggering
Flip Flops: SR Flip Flop, Clocked SR FF with preset &
clear, Drawbacks of SR FF
Clocked JK FF with preset & clear, Race around
condition in JK FF, Master Slave JK FF
D and T Flip Flops
Excitation Tables of Flip Flops
Block schematic
3/12/17 and function table of IC 7474,9 IC
Amit Nevase
Module IV Sequential Logic Circuit
Study of Counters
(8 Marks)
Counter: Modulus of Counter, Types of Counters:
Asynchronous & Synchronous Counters
Asynchronous Counter/Ripple Counter: 4 Bit Up/Down
Counter
Synchronous Counter: Excitation Tables of FFs, 3 Bit
Synchronous Counter, its truth table & waveforms
Block schematic and waveform of IC 7490 as MOD-N
Counter
Shift Registers
(4 Marks)
Logic diagram, AmitTruth
Nevase
Table and waveforms of 4 bit
3/12/17 10
shift registers: SISO, SIPO, PIPO, PISO
Module V Data Converters
Amit Nevase
3/12/17 11
Module VI Memories
Amit Nevase
3/12/17 13
Specific Objectives
Amit Nevase
3/12/17 14
Module III Combinational Logic Circuits
Introduction
(8 Marks)
Standard representation of canonical
forms (SOP & POS), Maxterm and
Minterm , Conversion between SOP and
POS forms
K-map reduction techniques upto 4 variables (SOP &
POS form), Design of Half Adder, Full Adder, Half
Subtractor & Full Subtractor using k-Map
Code Converter using K-map: Gray to Binary Binary
to Gray Code Converter (upto 4 bit)
IC 7447 as BCD to 7- Segment decoder driver
IC 7483 as Adder
3/12/17 & Subtractor, 1 Digit BCD Adder15
Amit Nevase
Standard Representation
Amit Nevase
3/12/17 16
SOP Form
Amit Nevase
3/12/17 17
POS Form
Y ( A B ).( B C ).( A C )
Sum
Amit Nevase
3/12/17 18
Standard or Canonical SOP & POS
Forms
Amit Nevase
3/12/17 19
Standard SOP
Amit Nevase
3/12/17 20
Standard POS
Y ( A B C ).( A B C ).( A B C )
Each sum term
consists all the
literals
Amit Nevase
3/12/17 21
Examples
Sr.
Expression Type
No.
2 Y AB AB AB Standard SOP
Amit Nevase
3/12/17 22
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
Amit Nevase
3/12/17 23
Example 1
Y AB AC BC
onvert given expression into its standard SOP form
Y AB AC BC
Missing literal is A
Missing literal is B
Missing literal is C
Y AB.(C C ) AC .( B B ) BC .( A A)
Y AB.(C C ) AC .( B B ) BC .( A A)
Amit Nevase
3/12/17 25
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
Amit Nevase
3/12/17 26
Example 2
Y ( A B).( A C ) ( B C )
onvert given expression into its standard SOP form
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 B B ).( B C A A)
Y ( A B CC ).( A C B B ).( B C A A)
Y ( A B C )( A B C ).( A B C )( A B C ).( A B C )( A B C )
Y ( A B C )( A B C )( A B C )( A B C )
Y ( A B C )( A B C )( A B C )( A B C )
Amit Nevase
3/12/17 28
Concept of Minterm and Maxterm
Amit Nevase
3/12/17 29
The concept of minterm and max
term allows us to introduce a very
convenient shorthand notation to
express logic functions
Amit Nevase
3/12/17 30
Minterms & Maxterms for 3
variable/literal logic function
Variables Minterms Maxterms
A B C mi Mi
0 0 0 ABC m 0 A B C M 0
0 0 1 ABC m1 A B C M1
0 1 0 ABC m 2 A B C M 2
0 1 1 ABC m3 A B C M3
1 0 0 ABC m 4 A BC M 4
1 0 1 ABC m5 A B C M5
1 1 0 ABC m 6 A B C M 6
Amit Nevase
1 3/12/17 1 1 ABC m 7 A B C M 7 31
Minterms and maxterms
A B mi Mi
0 0 AB m 0 A B M0
0 1 AB m1 A B M1
1 0 AB m 2 A B M 2
1 1 AB m3 A B M3
Amit Nevase
3/12/17 33
Representation of Logical expression
using minterm
m7 m3 m4 m5 Corresponding
minterms
Y m7 m3 m 4 m5
Y m(3, 4,5, 7) OR
Y f ( A, B, C ) m(3, 4,5, 7)
M0 Corresponding
M2 M6
maxterms
Y M 2.M 0.M 6
Y M (0, 2, 6) OR
Y f ( A, B, C ) M (0, 2, 6)
Y A BC ABC
Y ( A B ).( A C )
Amit Nevase
3/12/17 38
Module III Combinational Logic Circuits
Introduction
(8 Marks)
Standard representation of canonical forms (SOP &
POS), Maxterm and Minterm , Conversion between
SOP and POS forms
K-map reduction techniques upto 4
variables (SOP & POS form), Design of Half
Adder, Full Adder, Half Subtractor & Full Subtractor
using k-Map
Code Converter using K-map: Gray to Binary, Binary
to Gray Code Converter (upto 4 bit)
IC 7447 as BCD to 7- Segment decoder driver
IC 7483 as Adder
3/12/17
Amit& Subtractor, 1 Digit BCD Adder39
Nevase
Karnaugh Map (K-map)
Amit Nevase
3/12/17 41
Karnaugh Map (K-map)
A
B 0 1
Amit Nevase
3/12/17 42
Karnaugh Map (K-map)
A A
A A
B 0 1 B 0 1
0 AB AB 0 m0 m1
B
B 1 AB AB 1 m2 m3
K-map & its associated minterms
Amit Nevase
3/12/17 43
Karnaugh Map (K-map)
Relationship between Truth Table & K-map
A A
A
B 0 1
A B Y 0 0 0
B
0 0 0 B 1 1 1
0 1 1
1 0 0 B B
B
A 0 1
1 1 1
A 0 0 1
A 1 0 1
Amit Nevase
3/12/17 44
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
0
1 0
0
1
BC
0 0 1 1 1
A
0 1 1 0 1
1
0 0
1
Amit Nevase
3/12/17 45
Karnaugh Map (K-map)
3 Variable K-map & its associated
product terms
AB
C 0 0 1 1 A
0 1 1 0 BC 0 1
0 ABC ABC ABC ABC
0 ABC ABC
1 ABC ABC ABC ABC 0
0 ABC ABC
1
BC
1 ABC ABC
A 0 0 1 1
0 1 1 0 1
ABC ABC ABC 1 ABC ABC
0 ABC
0
1 ABC ABC ABC ABC
Amit Nevase
3/12/17 46
Karnaugh Map (K-map)
3 Variable K-map & its associated
minterms
AB
0 0 1 1
C A
0 1 1 0
BC 0 1
0 m0 m 2 m6 m 4
0 m0 m4
1 m1 m3 m 7 m5 0
0 m1 m5
1
A
BC
0 0 1 1 1 m3 m 7
0 1 1 0 1
0 m0 m1 m3 m 2 1 m2 m6
0
1 m 4 m5 m 7 m6
Amit Nevase
3/12/17 47
Karnaugh Map (K-map)
K-map Structure - 4 Variable
A, B, C & D are variables or inputs
4 variable k-map consists of 16 boxes i.e. 2 4=16
AB C
C 0 0 1 1 A D 0 0 1 1
D 0 1 1 0 B 0 1 1 0
0 0
0 0
0 0
1 1
1 1
1 1
1 1
0 0
Amit Nevase
3/12/17 48
Karnaugh Map (K-map)
4 Variable K-map and its associated
product terms
AB C
C 0 0 1 1 A D 0 0 1 1
D 0 1 1 0 B 0 1 1 0
0 ABCD ABCD ABCD ABCD 0 ABCD ABCD ABCD ABCD
0 0
0 ABCD ABCD ABCD ABCD 0 ABCD ABCD ABCD ABCD
1 1
1 ABCD ABCD ABCD ABCD 1 ABCD ABCD ABCD ABCD
1 1
1 ABCD ABCD ABCD ABCD 1 ABCD ABCD ABCD ABCD
0 0
Amit Nevase
3/12/17 49
Karnaugh Map (K-map)
4 Variable K-map and its associated
minterms
AB C
C 0 0 1 1 A D 0 0 1 1
D 0 1 1 0 B 0 1 1 0
0 m0 m4 m12 m8 0 m0 m1 m3 m2
0 0
0 m1 m5 m13 m9 0 m4 m5 m7 m6
1 1
1 m3 m7 m15 m11 1 m12 m13 m15 m14
1 1
1 m2 m6 m11 m10 1 m8 m9 m11 m10
0 0
Amit Nevase
3/12/17 50
Representation of Standard SOP
form expression on K-map
For example, SOP equation is given as
Y ABC ABC ABC ABC ABC
The given expression is in the standard SOP form.
Each term represents a minterm.
We have to enter 1 in the boxes corresponding to each minterm
as below
ABC ABC
BC BC BC BC BC
A 0 0 1 1
0 1 1 0
A 0 1 1 0 0
A 1 1 0 1 1 ABC
Amit Nevase
3/12/17 53
Grouping
BC BC BC BC BC
A 0 0 1 1
0 1 1 0
A 0 0 0 1 1 Y ABC ABC
A 1 0 0 0 0 Y AB (C C )
Y AB (Q C C 1)
Amit Nevase
3/12/17 55
Grouping of Two Adjacent 1s :
Pair
BC BC BC BC BC BC BC BC BC BC
0 0 1 1 A 0 0 1 1
A
0 1 1 0 0 1 1 0
0 0 0 0 A 0 0 1 1 1
A 0
A 1 1 0 0 1 A 1 0 0 1 0
BC BC BC BC BC B B B
A 0 0 1 1 A 0 1
0 1 1 0
A 0 0 1 0 0 A 0 1 1
A 1 0 1 0 0 A 1 1 0
Amit Nevase
3/12/17 56
Grouping of Two Adjacent 1s :
Pair
CD CD CD CD CD
A 0 0 1 1
B 0 1 1 0
AB 0 0 1 0 0
0
AB 0 0 0 0 0
1
AB 1 0 0 0 0
1
AB 1 0 1 0 0
0
Amit Nevase
3/12/17 57
Possible Grouping of Four
Adjacent 1s : Quad
A Quad eliminates 2 variable
CD CD CD CD CD CD CD CD CD CD
A 0 0 1 1 A 0 0 1 1
B 0 1 1 0 B 0 1 1 0
AB 0 0 0 0 0 AB 0 0 1 0 0
0 0
AB 0 0 0 0 0 AB 0 0 1 0 0
1 1
AB 1 0 0 0 0 AB 1 0 1 0 0
1 1
AB 1 1 1 1 1 AB 1 0 1 0 0
0 0
Amit Nevase
3/12/17 58
Possible Grouping of Four
Adjacent 1s : Quad
A Quad eliminates 2 variable
CD CD CD CD CD CD CD CD CD CD
A 0 0 1 1 A 0 0 1 1
B 0 1 1 0 B 0 1 1 0
AB 0 0 0 0 0 AB 0 0 1 1 0
0 0
AB 0 1 1 0 0 AB 0 0 0 0 0
1 1
AB 1 1 1 0 0 AB 1 0 0 0 0
1 1
AB 1 0 0 0 0 AB 1 0 1 1 0
0 0
Amit Nevase
3/12/17 59
Possible Grouping of Four
Adjacent 1s : Quad
A Quad eliminates 2 variable
CD CD CD CD CD CD CD CD CD CD
A 0 0 1 1 A 0 0 1 1
B 0 1 1 0 B 0 1 1 0
AB 0 1 0 0 1 AB 0 0 0 0 0
0 0
AB 0 0 0 0 0 AB 0 1 0 0 1
1 1
AB 1 0 0 0 0 AB 1 1 0 0 1
1 1
AB 1 1 0 0 1 AB 1 0 0 0 0
0 0
Amit Nevase
3/12/17 60
Possible Grouping of Four
Adjacent 1s : Quad
A Quad eliminates 2 variable
CD CD CD CD CD CD CD CD CD CD
A 0 0 1 1 A 0 0 1 1
B 0 1 1 0 B 0 1 1 0
AB 0 0 0 0 0 AB 0 0 0 0 0
0 0
AB 0 0 1 1 1 AB 0 0 1 1 0
1 1
AB 1 0 1 1 1 AB 1 0 1 1 0
1 1
AB 1 0 0 0 0 AB 1 0 1 1 0
0 0
Amit Nevase
3/12/17 61
Possible Grouping of Eight
Adjacent 1s : Octet
A Octet eliminates 3 variable
CD CD CD CD CD CD CD CD CD CD
A 0 0 1 1 A 0 0 1 1
B 0 1 1 0 B 0 1 1 0
AB 0 0 0 0 0 AB 0 0 1 1 0
0 0
AB 0 0 0 0 0 AB 0 0 1 1 0
1 1
AB 1 1 1 1 1 AB 1 0 1 1 0
1 1
AB 1 1 1 1 1 AB 1 0 1 1 0
0 0
Amit Nevase
3/12/17 62
Possible Grouping of Eight
Adjacent 1s : Octet
A Octet eliminates 3 variable
CD CD CD CD CD CD CD CD CD CD
A 0 0 1 1 A 0 0 1 1
B 0 1 1 0 B 0 1 1 0
AB 0 1 1 1 1 AB 0 1 0 0 1
0 0
AB 0 0 0 0 0 AB 0 1 0 0 1
1 1
AB 1 0 0 0 0 AB 1 1 0 0 1
1 1
AB 1 1 1 1 1 AB 1 1 0 0 1
0 0
Amit Nevase
3/12/17 63
Rules for K-map simplification
1. Groups may not include any cell
containing a zero.
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
Amit Nevase
3/12/17 64
Rules for K-map simplification
2. Groups may be horizontal or vertical, but may
not be diagonal
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
Amit Nevase
3/12/17 65
Rules for K-map simplification
3. Groups must contain 1,2,4,8 or in general 2 n cells
BC BC BC BC BC BC BC BC BC BC
A 0 0 1 1 A 0 0 1 1
0 1 1 0 0 1 1 0
0 1 1 1 A 0 0 1 1 1
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
Amit Nevase
3/12/17
Not Accepted Accepted 66
Rules for K-map simplification
4. Each group should be as large as possible
BC BC BC BC BC BC BC BC BC BC
A 0 0 1 1 A 0 0 1 1
0 1 1 0 0 1 1 0
1 1 1 1 A 0 1 1 1 1
A 0
A 1 0 0 1 1 A 1 0 0 1 1
Amit Nevase
3/12/17 67
Rules for K-map simplification
BC BC BC BC BC
A 0 0 1 1
0 1 1 0
A 0 0 0 0 1
A 1 0 0 1 0
Amit Nevase
3/12/17 68
Rules for K-map simplification
BC BC BC BC BC
A 0 0 1 1
0 1 1 0
A 0 1 1 1 1
A 1 0 0 1 1
Amit Nevase
3/12/17 69
Rules for K-map simplification
CD CD CD CD CD
A 0 0 1 1
B 0 1 1 0 BC BC BC BC BC
AB 0 1 1 1 1 0 0 1 1
A
0 0 1 1 0
AB 0 0 0 0 0 A 0 1 0 0 1
1
AB 1 0 0 0 0 A 1 1 0 0 1
1
AB 1 1 1 1 1
0
Amit Nevase
3/12/17 70
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.
BC BC BC BC BC BC BC BC BC BC
A 0 0 1 1 A 0 0 1 1
0 1 1 0 0 1 1 0
1 1 1 1 A 0 1 1 1 1
A 0
A 1 0 0 1 1 A 1 0 0 1 1
Amit Nevase
3/12/17 71
Rules for K-map simplification
Amit Nevase
3/12/17 72
Example 1
AB AB AB AB AB
C 0 0 1 1
0 1 1 0
C 0 0 1 1 1
C 1 0 0 1 0
Amit Nevase
3/12/17 73
Example 1
continue..
AB AB AB AB AB
C 0 0 1 1
0 1 1 0
C 0 0 1 1 1 AC
C 1 0 0 1 0
BC AB
Y BC AB AC
Amit Nevase
3/12/17 74
Example 2
AB AB AB AB AB
C 0 0 1 1
0 1 1 0
C 0 1 1 0 1
C 1 1 0 0 1
Amit Nevase
3/12/17 75
Example 2
continue..
AB AB AB AB AB
C 0 0 1 1
0 1 1 0
C 0 1 1 0 1
C 1 1 0 0 1
AC B
Y B AC
Amit Nevase
3/12/17 76
Example 3
Amit Nevase
3/12/17 77
Example 3
continue
Y ABC ABC ABC ABC
BC BC BC BC BC AB
A 0 0 1 1
0 1 1 0
A 0 1 0 1 1
A 1 0 1 0 0
AC
ABC
Y AC AB ABC
Amit Nevase
3/12/17 78
Example 4
Amit Nevase
3/12/17 79
Example 4
continue..
Y m(0,1, 2, 5,13,15)
CD CD CD
CD CD
A 0 0 1 1 ABD
B 0 0 1 1 1 3 0 2
AB 0 1 1 0 1
0 4 7
5 6
AB 0 0 1 0 0
1 Simplified Boolean expression
AB 1 1 1 1
1 02 13 15 04
1 Y ABD ACD ABD
8 9 1 10
AB 1 0 0 01 0
0
ACD ABD
Amit Nevase
3/12/17 80
Example 5
f ( A, B, C , D ) m(1,3, 5, 9,11,13)
Amit Nevase
3/12/17 81
Example 5
continue..
f ( A, B , C , D ) m(1, 3, 5, 9,11,13)
CD CD CD
CD CD
A 0 0 1 1
B 0 0 1 1 1 3 0 2
AB 0 0 1 1 0
0 4 7
5 6
AB 0 0 1 0 0
1 Simplified Boolean expression
AB 1 1 1 1
1 02 13 05 04
1 f BD CD
8 9 1 10
AB 1 0 1 11 0 f D( B C )
0
BD CD
Amit Nevase
3/12/17 82
Example 6
Amit Nevase
3/12/17 83
Example 6
continue..
f ( A, B, C , D ) m(4,5,8,9,11,12,13,15)
CD CD CD
CD CD
A 0 0 1 1
B 0 0 1 1 1 3 0 2 BC
AB 0 0 0 0 0
0 4 7
5 6
AB 0 1 1 0 0
1 Simplified Boolean expression
AB 1 1 1 1
1 12 13 15 04
1 f BC AC AD
8 9 1 10
AB 1 1 1 11 0
0
AC AD
Amit Nevase
3/12/17 84
Example 7
Amit Nevase
3/12/17 85
Example 7
continue..
f 2( A, B, C , D) m(0,1, 2,3,11,12,14,15)
CD CD CD
CD CD
A 0 0 1 1
B 0 0 1 1 1 3 0 2 AB
AB 0 1 1 1 1
0 4 7
5 6
AB 0 0 0 0 0
1 Simplified Boolean expression
AB 1 1 1 1
1 12 03 15 14
1 f 2 AB ABD ACD
8 9 1 10
AB 1 0 0 11 0
0
ABD ACD
Amit Nevase
3/12/17 86
Example 8
Amit Nevase
3/12/17 87
Example 8
continue
f 1( A, B, C ) m(0,1, 3, 4, 5) f 2( A, B , C ) m(0,1, 2, 3, 6, 7)
AC
BC BC BC
BC BC BC BC BC
BC BC
A 0 0 1 1 A 0 0 1 1
0 0 1 1 1 3 0 2 0 0 1 1 1 3 0 2
1 1 1 0 A 0 1 1 1 1
A 0
4 5 7 6 4 5 7 6
A 1 1 1 0 0 A 1 0 0 1 1
A B
B
Simplified Boolean expression
Simplified Boolean expression
f 2 A B
f 1 AC B
Amit Nevase
3/12/17 88
Example 9
Simplify ;
Amit Nevase
3/12/17 89
Example 9
continue..
C BD
Amit Nevase
3/12/17 90
Example 10
Amit Nevase
3/12/17 91
Example 10
continue
AC AD f 2 BC
Simplified Boolean expression
f 1 AC AD
Amit Nevase
3/12/17 92
K-map and dont care conditions
Simplify ;
Amit Nevase
3/12/17 96
K-map and dont care conditions -
Example
f ( A, B, C , D ) m(1, 3, 7,11,15) d (0, 2, 5)
CD CD CD
CD CD
A 0 0 1 1
B 0 0 1 1 1 3 0 2
AB 0 X 1 1 X
0 4 7
5 6
AB 0 0 X 1 0
1 Simplified Boolean expression
AB 1 1 1 1
1 02 03 15 04
1 f CD AB AD
8 9 1 10
AB 1 0 0 11 0
0
AB AD CD
Amit Nevase
3/12/17 97
Module III Combinational Logic Circuits
Introduction
(8 Marks)
Standard representation of canonical forms (SOP &
POS), Maxterm and Minterm , Conversion between
SOP and POS forms
K-map reduction techniques upto 4 variables (SOP &
POS form), Design of Half Adder, Full
Adder, Half Subtractor & Full Subtractor
using k-Map
Code Converter using K-map: Gray to Binary, Binary
to Gray Code Converter (upto 4 bit)
IC 7447 as BCD to 7- Segment decoder driver
IC 7483 as Adder
3/12/17
Amit& Subtractor, 1 Digit BCD Adder98
Nevase
Half Adder
Amit Nevase
3/12/17 99
Half Adder
Truth Table
Input Output
Sum
A B Carry (C)
(S)
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
Amit Nevase
3/12/17 100
Half Adder
K-map for Sum Output:
A
A A
B 0 1
S AB AB
0 1
B 0
S A B
B 1 1 0
B 0 0 0 C AB
B 1 0 1
Amit Nevase
3/12/17 101
Half Adder
Logic Diagram:
A
S A B
B
C AB
Amit Nevase
3/12/17 102
Half Adder
gic Diagram using Basic Gates:
A B
S A B
C AB
Amit Nevase
3/12/17 103
Full Adder
A Sum
Cin
Amit Nevase
3/12/17 104
Full Adder
Truth Table
Inputs Outputs
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
Amit Nevase
3/12/17 105
Full Adder
BC BC BC BC BC
A 0 0 1 1
S ABC ABC ABC ABC
0 1 1 0
A 0 0 1 0 1
S ABC ABC ABC ABC
A 1 1 0 1 0 S C ( AB AB ) C ( AB AB )
Let AB AB X
ABC
ABC ABC S C( X ) C( X )
ABC
S CX
Let X A B
Q S C A B
Amit Nevase
3/12/17 106
Full Adder
BC BC BC BC BC
A 0 0 1 1
0 1 1 0
A 0 0 0 1 0
C AB BC AC
A 1 0 1 1 1
BC
AB
AC
Amit Nevase
3/12/17 107
Full Adder
Logic Diagram:
A B C
S A B C
C AB BC AC
Amit Nevase
3/12/17 108
Full Adder using Half Adders
A S0 S1 Sum
HA1 HA2
B C0 C1
C
Carry
Amit Nevase
3/12/17 109
Half Subtractor
Amit Nevase
3/12/17 110
Half Subtractor
Truth Table
Input Output
Differe
A B nce Borrow (B)
(D)
0 0 0 0
0 1 1 1
1 0 1 0
1 1 0 0
Amit Nevase
3/12/17 111
Half Subtractor
-map for Difference Output:
A
A A
B 0 1
D AB AB
0 1
B 0
D A B
B 1 1 0
0 1
B 0 B AB
B 1 0 0
Amit Nevase
3/12/17 112
Half Subtractor
Logic Diagram:
A
D A B
B
B AB
Amit Nevase
3/12/17 113
Half Subtractor
gic Diagram using Basic Gates:
A B
D A B
B AB
Amit Nevase
3/12/17 114
Full Subtractor
A Difference
Bin
Amit Nevase
3/12/17 115
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
Amit Nevase
3/12/17 116
Full Subtractor
BC BC BC BC BC
A 0 0 1 1
D ABC ABC ABC ABC
0 1 1 0
A 0 0 1 0 1
D ABC ABC ABC ABC
A 1 1 0 1 0 D C ( AB AB ) C ( AB AB )
Let AB AB X
ABC
ABC ABC D C( X ) C( X )
ABC
DCX
Let X A B
Q D C A B
Amit Nevase
3/12/17 117
Full Subtractor
BC BC BC BC BC
A 0 0 1 1
0 1 1 0
A 0 0 1 1 1
B 0 AB BC AC
A 1 0 0 1 0
BC
AB
AC
Amit Nevase
3/12/17 118
Full Subtractor
Logic Diagram:
A B C
D A B C
B 0 AB BC AC
Amit Nevase
3/12/17 119
Full Subtractor using Half
Subtractor
A D0 D1
Differenc
HS1 HS2 e
B B0 B1
C
Borrow
Amit Nevase
3/12/17 120
Module III Combinational Logic Circuits
Introduction
(8 Marks)
Standard representation of canonical forms (SOP &
POS), Maxterm and Minterm , Conversion between
SOP and POS forms
K-map reduction techniques upto 4 variables (SOP &
POS form), Design of Half Adder, Full Adder, Half
Subtractor & Full Subtractor using k-Map
Code Converter using K-map: Gray to
Binary, Binary to Gray Code Converter
(upto 4 bit)
IC 7447 as BCD to 7- Segment decoder driver
IC 7483 as Adder
3/12/17 & Subtractor, 1 Digit BCD Adder121
Amit Nevase
Design of Binary to Gray Code
Converter
Block Diagram:
B3 G3
B2 Binary to Gray G2
Binary Code Gray
Inputs B1 G1 Outputs
converter
B0 G0
Amit Nevase
3/12/17 122
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
3/12/17 1 1 0 1 Amit0Nevase0 1 1 1 1 1 0 0123 0
Design of Binary to Gray Code
Converter
K-map for G0:
B1B 0 B1B 0
Amit Nevase
3/12/17 124
Design of Binary to Gray Code
Converter
K-map for G1:
B 2 B1 B 2B1
Amit Nevase
3/12/17 125
Design of Binary to Gray Code
Converter
K-map for G2:
B3 B 2 B 3B 2
Amit Nevase
3/12/17 126
Design of Binary to Gray Code
Converter
K-map for G3:
B3
Amit Nevase
3/12/17 127
Design of Binary to Gray Code
Converter
Logic Diagram:
B3 B2 B1 B0
G3
G 2 B3 B 2
G1 B2 B1
G 0 B1 B 0
Amit Nevase
3/12/17 128
Design of Gray to Binary Code
Converter
Block Diagram:
G3 B3
G2 Gray to Binary B2 Binary
Gray
Inputs G Code B1
Outputs
1
converter
G0 B0
Amit Nevase
3/12/17 129
Design of Gray to Binary Code
Converter
Truth Table :
Binary Binary
Gray Inputs Gray Inputs
Outputs 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 Amit0Nevase0
3/12/17 1 1 1 1 1 0 0130 0
Design of Gray to Binary Code
Converter
K-map for B0: G1G0 G1G 0 G1G 0 G1G 0 G1G 0
G3G2 0 0 1 1
0 0 1 1 1 3 0 2
G 3G 2 0 0 1 0 1
0 4 7
5 6
G 3G 2 0 1 0 1 0
1
1 1 1 1
G 3G 2 1 02 13 05 14
1
8 9 1 10
G 3G 2 1 1 0 11 0
0
Amit Nevase
3/12/17 131
Design of Gray to Binary Code
Converter
K-map for B1: G1G0 G1G 0 G1G 0 G1G 0 G1G 0
G3G2 0 0 1 1
0 0 1 1 1 3 0 2
G 3G 2 0 0 0 1 1
0 4 7
5 6
G 3G 2 0 1 1 0 0
1
1 1 1 1
G 3G 2 1 02 03 15 14
1
8 9 1 10
G 3G 2 1 1 1 01 0
0
B1 G 3 G 2 G1
Amit Nevase
3/12/17 132
Design of Gray to Binary Code
Converter
K-map for B2: G1G0 G1G 0 G1G 0 G1G 0 G1G 0
G3G2 0 0 1 1
0 0 1 1 1 3 0 2
G 3G 2 0 0 0 0 0
0 4 7
5 6
G 3G 2 0 1 1 1 1
1
1 1 1 1
G 3G 2 1 02 03 05 04
1
8 9 1 10
G 3G 2 1 1 1 11 1
0
B 2 G 3G 2 G 3G 2
B1 G 3 G 2
Amit Nevase
3/12/17 133
Design of Gray to Binary Code
Converter
K-map for B3: G1G0 G1G 0 G1G 0 G1G 0 G1G 0
G3G2 0 0 1 1
0 0 1 1 1 3 0 2
G 3G 2 0 0 0 0 0
0 4 7
5 6
G 3G 2 0 0 0 0 0
1
1 1 1 1
G 3G 2 1 12 13 15 14
1
8 9 1 10
G 3G 2 1 1 1 11 1
0
B3 G 3
Amit Nevase
3/12/17 134
Design of Gray to Binary Code
Converter
Logic Diagram:
G3 G2 G1 G0
B3
B2 G 3 G2
B1 G1 G 2 G 3
B 0 G 0 G1 G 2 G 3
Amit Nevase
3/12/17 135
Module III Combinational Logic Circuits
Introduction
(8 Marks)
Standard representation of canonical forms (SOP &
POS), Maxterm and Minterm , Conversion between
SOP and POS forms
K-map reduction techniques upto 4 variables (SOP &
POS form), Design of Half Adder, Full Adder, Half
Subtractor & Full Subtractor using k-Map
Code Converter using K-map: Gray to Binary, Binary
to Gray Code Converter (upto 4 bit)
IC 7447 as BCD to 7- Segment decoder
driver
IC 7483 as Adder
3/12/17 & Subtractor, 1 Digit BCD Adder136
Amit Nevase
Seven Segment Display
f b
g
e c
d d
p
Amit Nevase
3/12/17 137
Seven Segment Display
Segments
Displa
Seven
y
Segment
a b c d e f g Numb
Display
er
ON ON ON ON ON ON OFF 0
OFF ON ON OFF OFF OFF OFF 1
ON ON OFF ON ON OFF ON 2
ON ON ON ON OFF OFF ON 3
OFF ON ON OFF OFF ON ON 4
ON OFF ON ON OFF ON ON 5
ON OFF ON ON ON ON ON 6
ON ON ON OFF OFF OFF OFF 7
ON ON ON ON ON ON ON 8
Amit Nevase
3/12/17 138
ON ON ON ON OFF ON ON 9
Types of Seven Segment Display
Amit Nevase
3/12/17 139
Common Anode Display
+Vcc
R R R R R R R R
a b c d e f g dp
Amit Nevase
3/12/17 140
Common Anode Display
+Vcc
R
b
R
R
c
d
R
BCD to
BCD e
R
7 Segment
Input Decoder
f
R
g
R
R
dp
Amit Nevase
3/12/17 141
Common Cathode Display
a b c d e f g dp
R R R R R R R R
Amit Nevase
3/12/17 142
Common Cathode Display
R
b
R
c
R
BCD to d
7 Segment
R
BCD e
Decoder
Input
R
f
R
g
R
dp
R
Amit Nevase
3/12/17 143
BCD to 7 Segment Decoder Driver
ICs
Sr. No. IC Number Specifications
Amit Nevase
3/12/17 144
IC 7447
Pins Description
LT Lamp Test
BI Blanking Input
Amit Nevase
3/12/17 145
RBI - Ripple Blanking Input
Amit Nevase
3/12/17 148
LT - Lamp Test
Amit Nevase
3/12/17 149
Circuit Diagram
5V
16
3 13 R Common
LT Vcc
a a
5 RBI
12
R a
4 BI / RBO b b
11 R f b
IC 7447
c c g
10 R
LSB 1 A0
d d
9 R e c
2 A1 e e dp
BCD R
6 15
Inputs A2 f f d dp
7 14 R
A3
MSB Gnd g g
8
Amit Nevase
3/12/17 150
Display Configuration LTS 542
Common
g f a b
a
f b
g
e c
d dp
e d c dp
Common
Amit Nevase
3/12/17 151
Display Configuration
Amit Nevase
3/12/17 152
Module III Combinational Logic Circuits
Introduction
(8 Marks)
Standard representation of canonical forms (SOP &
POS), Maxterm and Minterm , Conversion between
SOP and POS forms
K-map reduction techniques upto 4 variables (SOP &
POS form), Design of Half Adder, Full Adder, Half
Subtractor & Full Subtractor using k-Map
Code Converter using K-map: Gray to Binary, Binary
to Gray Code Converter (upto 4 bit)
IC 7447 as BCD to 7- Segment decoder driver
IC 7483 as Adder & Subtractor, 1 Digit
BCD Adder Amit Nevase
3/12/17 153
N Bit Parallel Adder
Amit Nevase
3/12/17 154
N Bit Parallel Adder
An 1 Bn 1 A2 B2 A1 B1 A0 B0
Sn 1 S2 S1 S0
Amit Nevase
3/12/17 155
4 Bit Parallel Adder using full
adder
A3 B3 A2 B2 A1 B1 A0 B0
S3 S2 S1 S0
Amit Nevase
3/12/17 156
IC 7483 4 Bit Binary
Parallel Adder
A3 B3 A2 B2 A1 B1 A0 B0
S3 S2 S1 S0
Amit Nevase
3/12/17 157
IC 7483 4 Bit Binary
Parallel Adder
A Binary number B Binary number
A3 A2 A1 A0 B 3 B 2 B1 B 0
IC 7483 Cin
C0
Carry
Carry
Input
Output
S3 S 2 S1 S 0
Sum Output
Amit Nevase
3/12/17 158
Cascading of IC 7483
want to add two 8 bit binary numbers using 4 bit binary parallel adder IC
e have to cascade the two ICs in following way
Cin C0
C0 IC 7483-II IC 7483-I Cin
Carry Carry
Output Input
S7 S6 S5 S4 S3 S 2 S1 S0
Sum Output
Amit Nevase
3/12/17 159
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 Cin
Logic
Circuit
Add 0110
Command
IC 7483-II
C0 Cin
Amit Nevase S3 S 2 S1 S0
3/12/17 160
Design of 1 Digit BCD Adder
Amit Nevase
3/12/17 161
Design of 1 Digit BCD Adder
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
BCD
0 1 0 1 0 1 1 0 1 1
Number
1 1 1 0 1 Y=1
0 1 1 0 0
0 1
3/12/17 1 1 0Amit Nevase 1 1 1 1 1 162
Design of 1 Digit BCD Adder
S1S0 S 1S 0 S 1S 0 S 1S 0 S 1S 0
S3s2 0 0 1 1
0 0 1 1 1 3 0 2
S 3S 2 0 0 0 0 0
0 4 7
5 6
S 3S 2 0 0 0 0 0
1
1 1 1 1 Y S 3S 2 S 3S 1
S 3S 2 1 12 13 15 14
1
8 9 1 10
S 3S 2 1 0 0 11 1
0
S 3S 2 S 1S 3
Amit Nevase
3/12/17 163
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 Cin
Y' Y
C0
IC 7483-II
Not used S3 S 2 S1 S0 Cin
Carry output Amit Nevase
3/12/17 164
BCD Output Sum
4 Bit Binary Parallel Subtractor
using IC 7483
Vcc 5V
C0
Carry IC 7483 Cin 1
Output S3 S 2 S1 S 0 It adds 1 to 1s
complement of B
Difference Output
Amit Nevase
3/12/17 165
IC 7483 as Parallel
Adder/Subtractor
B Binary number
B3 B2 B1 B0
A Binary number
M
A3 A2 A1 A0 Mode
Select
C0
Carry IC 7483
Cin
Output S3 S 2 S1 S 0
Introduction
(8 Marks)
Standard representation of canonical forms (SOP &
POS), Maxterm and Minterm , Conversion between
SOP and POS forms
K-map reduction techniques upto 4 variables (SOP &
POS form), Design of Half Adder, Full Adder, Half
Subtractor & Full Subtractor using k-Map
Code Converter using K-map: Gray to Binary, Binary
to Gray Code Converter (upto 4 bit)
IC 7447 as BCD to 7- Segment decoder driver
IC 7483 as Adder & Subtractor, 1 Digit BCD Adder
Block Schematic
3/12/17
Amit Nevase of ALU IC 74181,167 IC
IC 74181 Arithmetic Logic Unit
Amit Nevase
3/12/17 168
IC 74181
Amit Nevase
3/12/17 169
IC 74181 Pin Diagram
Amit Nevase
3/12/17 170
IC 74181 Function Table
Amit Nevase
3/12/17 171
IC 74381 4 Bit Arithmetic Logic
Unit
Features:
Low input loading minimizes drive
requirements
Performs six arithmetic and logic
functions
Selectable LOW (clear) and HIGH
(preset) functions
Carry generate and propagate outputs
for use with carry look ahead generator
Amit Nevase
3/12/17 172
IC 74381 Pin Configuration
Amit Nevase
3/12/17 173
IC 74381 Function Table
Amit Nevase
3/12/17 174
Module III Combinational Logic Circuits
Amit Nevase
3/12/17 175
Multiplexers
Amit Nevase
3/12/17 176
Necessity of Multiplexers
Amit Nevase
3/12/17 177
Advantages of Multiplexers
Amit Nevase
3/12/17 179
Block Diagram of Multiplexer
D0 D0
D1 D1
Data D2 D2
Inputs D3 Y
D3
. n:1 .
. .
. Mux Output .
. . Output
. .
Dn-1 Dn-1
E
Enable Input
.... ....
Sm-1 S2 S1 s0 Sm-1 S2 S1 s0
Select Lines
Amit Nevase
3/12/17 181
Types of Multiplexers
2:1 Multiplexer
4:1 Multiplexer
8:1 Multiplexer
16:1 Multiplexer
32:1 Multiplexer
64:1 Multiplexer
and so on
Amit Nevase
3/12/17 182
2:1 Multiplexer
Data D0
Inputs 2:1 Y
D1 Block Diagram
Mux
Output
E
Enable Input
s
Select Lines
Enable i/p Select Output
(E) i/p (S) (Y)
0 X 0
Truth Table 1 0 D0
1 1 D1
Amit Nevase
3/12/17 183
Realization of 2:1 Mux using gates
S D1 D0
S
SD 0
Y
Output
SD1
E
Enable Input
Amit Nevase
3/12/17 184
4:1 Multiplexer
Truth Table
Outp
Enable
D0 Select i/p ut
i/p
D1
Data E S1 S0 Y
Y
Inputs D 4:1
2
Mux 0 X X 0
D3 Output
D0
1 0 0
E
Enable Input 1 0 1 D1
S1 S0
1 1 0 D2
Select Lines
D3
1 1 1
Block Diagram
Amit Nevase
3/12/17 185
Realization of 4:1 Mux using gates
S1 S0
S 1S 0D 0
D0
S 1S 0 D1
D1 Y
Output
D2 S 1S 0D 2
E
D3 S 1S 0 D 3 Enable Input
Amit Nevase
3/12/17 186
8:1 Multiplexer
Truth Table
D0
Out
D1 Enabl
Select i/p put
e i/p
D2
D3 E S2 S1 S0 Y
Data
Y
Inputs D4 8:1 0 X X X 0
Mux 1 0 0 0 D0
Output
D5
1 0 0 1 D1
D6
1 0 1 0 D2
D7
1 0 1 1 D3
E 1 1 0 0 D4
Enable Input 1 1 0 1 D5
1 1 1 0 D6
S2 S1 S0
Amit Nevase 1 1 1 1 D7
3/12/17 Select Lines 187
Block Diagram
16:1 Multiplexer
D0
D1
D2
D3
D4
D5
Data D6 Y
Inputs D7 16:
D8 1
D9 Output
D10
Mux
D11
D12
D13
D14
D15
E
Block Diagram
Enable Input
S3 S2 S1 S0
Amit Nevase
3/12/17 Select Lines 188
16:1 Enabl Select Lines Outpu
Multiplexer e t
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
Truth
1 0 1 0 1 D5
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
3/12/17
1Amit Nevase1 1 0 0 D189
12
Mux Tree
Amit Nevase
3/12/17 190
8:1 Multiplexer using 4:1
Multiplexer
D0
D1
Y1
D2 4:1
Mux
D3
S2 ES S0 Y
Select 1
Lines S1
S0 Output
S1 S0
D4
D5
4:1
D6 Mux
Y2
D7
E
Amit Nevase
3/12/17 191
8:1 Multiplexer using 4:1
Multiplexer
D0
D1
Y1
D2 4:1
Mux
D3
D0
ES S0 2:1 Y
1 D1
S1 Mux
S0 Output
E
S1 S0
D4
D5 S2
4:1
D6 Mux
Y2
D7
E
Amit Nevase
3/12/17 192
D0
16:1 Mux using
D1
D2
4:1
Mux
Y1 4:1 Mux
D3
S1 S0
S1
S0
D4 S1 S0
D5 4:1 Y2
D6 Mux
D7
D0
4:1 Y
D1
D2 Mux
D3 S S0 Output
D8 1
D9 4:1 Y3
D10 Mux
D11
S1 S0 S3 S2
D12 S1 S0
D13 4:1 Y4
D14 Mux
Amit Nevase
3/12/17 D15 193
Realization of Boolean expression
using Mux
Amit Nevase
3/12/17 194
Example 1
f ( A, B, C ) m(0, 3, 5, 6)
D0
D1
D2
D3
Y
D4 8:1
Mux
Output
D5
D6
D7
E S2 S1 S0
A B C
Amit Nevase
3/12/17 196
Example 2
f ( A, B, C , D ) m(0, 2, 3, 6, 8, 9,12,14)
D0
D1
D2
D3
D4
D5
D6 Y
D7 16:
D8 1
D9 Output
D10
Mux
D11
D12
D13
D14
D15
S3 S2 S1 S0
E
A B C D
Amit Nevase
3/12/17 198
Module III Combinational Logic Circuits
Amit Nevase
3/12/17 199
De-multiplexer
Y0 Y0
Y1 Y1
Y2 Y2
Data Y3 Y3
Input 1:n . Data .
. .
De-mux . Outputs Input . Output
. .
. .
Yn-1 Yn-1
E
Enable
Input .... ....
Sm-1 S2 S1 s0 Sm-1 S2 S1 s0
Select Lines
Amit Nevase
3/12/17 202
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
Amit Nevase
3/12/17 203
1: 2 De-multiplexer
Din Y0
Data 1:2
Block Diagram
Input De-
mux Y1
E
Enable
Input S
Select Lines
Enable Select
Outputs
i/p i/p
E S Y0 Y1
0 X 0 0
Truth Table Din
1 0 0
Amit Nevase
3/12/17 1 1 0 D204
in
1:2 De-mux using basic gates
E Din S
S
Y0
Y1
Amit Nevase
3/12/17 205
1: 4 De-multiplexer
Y0
Din 1:4 Y1
Data Block Diagram
Input De- Y2
mux Y3
E
Enable
Input Enab
S1 S0 Select i/p Outputs
le i/p
Select Lines
E S1 S0 Y0 Y1 Y2 Y3
0 X X 0 0 0 0
Din
1 0 0 0 0 0
Truth Table
1 0 1 0 Din 0 0
1 1 0 0 0 Din 0
Amit Nevase
3/12/17 1 1 1 0 0 0 Din
206
1:4 De-mux using basic gates
E Din S 1 S0
S1 S0
Y0
Y1
Y2
Y3
Amit Nevase
3/12/17 207
1: 8 De-multiplexer
Y0
Y1
Din Y2
Data
1:8 Y3
Input Y4
De-
mux Y5
Y6
E Y7
Enable
Input
S2 S1 S0
Select Lines
Block Diagram
Amit Nevase
3/12/17 208
1: 8 De-multiplexer
Truth Table
Ena
ble Select i/p Outputs
i/p
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
Amit Nevase
1 3/12/171 1 1 Din 0 0 0 0 0 0 209
1: 16 De-multiplexer
Y0
Y1
Y2
Y3
Y4
Y5
Y6
Din
Data Y7
Input 1:16 Y8
De- Y9
mux Y10
Y11
Block Diagram Y12
Y13
Y14
E Y15
Enable
Input Amit Nevase
3/12/17 S3 S2 S1 S0 210
De-mux Tree
Amit Nevase
3/12/17 211
1:4 De-mux using 1:2 De-mux
Data Y0 Y0
1:2
Input Din
De-
mux Y1 Y1
S1 E S0
Select
Lines
S0
S0
Y0 Y2
1:2
Din
De-
mux Y1 Y3
E
Amit Nevase
3/12/17 212
1:16 De-mux Y0
1:4 Y1
using 1:4 De-mux Din De- Y2
Y3
S muxS
1 0
S1 S0 Y4
1:4 Y5
Din Y6
Data Y0 De-
D Y7
Input in 1:4 Y1 mux
De- Y2
Y3
Smux
1 S0
Y8
1:4 Y9
Din De-
Y10
S3 S2 S mux S
1 0
Y11
S1 S0 Y12
Din 1:4 Y13
De- Y14 S1 S0
Amit Nevase
3/12/17 Y15 213
mux
Decoder
Amit Nevase
3/12/17 214
2:4 Decoder
Y0
A
2:4 Y1
Inputs Block Diagram
Decod Y2
B
er Y3
E A B Y0 Y1 Y2 Y3
0 X X 0 0 0 0
1
1 0 0 0 0 0
1 0 1 0 1 0 0
Truth Table 1 1 0 0 0 1 0
Amit Nevase
3/12/17 1 1 1 0 0 0 215 1
De-multiplexer as Decoder
Amit Nevase
3/12/17 216
1:4 De-multiplexer as 2:4 Decoder
Vcc
Y0 Din Y0
Din A S1
Data 1:4 Y1 1:4 Y1
Inputs
Input De- Y2 S0 De- Y2
B
mux Y3 mux Y3
E
Enable E Enable
Input
S1 S0 Input
Select Lines
Amit Nevase
3/12/17 217
Realization of Boolean expression
using De-mux
Amit Nevase
3/12/17 218
Example 1
f ( A, B, C ) m(0, 3, 5, 6)
+Vcc Y0
Y1
Data Y2
Din 1:8 Y3 Y
Input
De- Y4
mux Y5
Y6
E S2 S1 S0Y7
Enable
Input
A B C
Amit Nevase
3/12/17 220
Example 2
f ( A, B, C , D ) m(0, 2, 3, 6, 8, 9,12,14)
Amit Nevase
3/12/17 223
Multiplexer ICs
Amit Nevase
3/12/17 224
IC 74151 General Description
D0
D1
D2 Y
Data D3
Inputs D4 8:1
Mux
D5 Y
D6
D7
E
Enable Input
Pin Diagram
S2 S1 S0
Select Lines
Amit Nevase
3/12/17 227
Equivalent Diagram
De-multiplexer ICs
IC Number Description
Amit Nevase
3/12/17 228
IC 74155 General Description
Amit Nevase
3/12/17 229
IC 74155 - Features
Amit Nevase
3/12/17 231
Module III Combinational Logic Circuits
n m
. Encoder .
inputs . .
outputs
. .
Amit Nevase
3/12/17 234
Types of Encoders
Priority Encoder
Amit Nevase
3/12/17 235
Priority Encoder
Amit Nevase
3/12/17 236
Priority Encoder 8:3
Highest Priority
D0
D1 Y2
D2 Priority 3
8 D3 Y1 outputs
Encoder
inputs
D4 8:3 Y0
D5
D6
D7
Lowest Priority
Amit Nevase
3/12/17 237
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
Amit Nevase
13/12/17 X X X X X X X 1 1 238 1
Decimal to BCD Encoder
D1
D2 A
D3
D4 Decimal to B BCD
9 D5 BCD C outputs
inputs D6 Encoder
D7 D
D8
D9
Amit Nevase
3/12/17 239
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
Amit Nevase
3/12/17 240
Module III Combinational Logic Circuits
Amit Nevase
3/12/17 242
Digital Buffer
A Q
0 0
Amit Nevase
3/12/17 244
Digital Buffer
Unlike the single input, single output inverter or NOT
gate such as the TTL 7404 which inverts or
complements its input signal on the output, the
Buffer performs no inversion or decision making
capabilities (like logic gates with two or more inputs)
but instead produces an output which exactly
matches that of its input. In other words, a digital
buffer does nothing as its output state equals its
input state.
Then digital buffers can be regarded as Idempotent
gates applying Booles Idempotent Law because
when an input passes through this device its value is
not changed. So the digital buffer is a non-inverting
device and will therefore give us the Boolean
expression of:Q=A.
Amit Nevase
3/12/17 245
Tri-state Buffer
As well as the standard Digital Buffer seen above,
there is another type of digital buffer circuit whose
output can be electronically disconnected from its
output circuitry when required. This type of Buffer is
known as a 3-State Buffer or more commonly a Tri-
state Buffer.
A Tri-state Buffer can be thought of as an input
controlled switch with an output that can be
electronically turned ON or OFF by means of an
external Control or Enable (EN) signal input.
This control signal can be either a logic 0 or a logic
1 type signal resulting in the Tri-state Buffer being
in one state allowing its output to operate normally
producing the required output or in another state
were its output is blocked or disconnected.
Amit Nevase
3/12/17 246
Tri-state Buffer - Equivalent
Amit Nevase
3/12/17 247
Active High Tri-state Buffer
Enable IN OUT
0 0 Hi-Z
0 1 Hi-Z
1 0 0
Tri-state Buffer
1 1 1
Amit Nevase
3/12/17 248
Active Low Tri-state Buffer
Enable IN OUT
0 0 0
0 1 1
1 0 Hi-Z
Amit Nevase
3/12/17 249
Tri-state Buffer Control
Amit Nevase
3/12/17 250
Buffer ICs
Sr. IC
Description
No. Number
Amit Nevase
3/12/17 251
IC 74244 - Features
Amit Nevase
3/12/17 252
IC 74244 Internal Diagram
Amit Nevase
3/12/17 253
Bi-directional Buffer
Amit Nevase
3/12/17 255
IC 74245 - Features
Amit Nevase
3/12/17 256
IC 74245 Internal Diagram
Amit Nevase
3/12/17 257
References
Digital Principles by
Malvino Leach
Modern Digital
Electronics by R.P. Jain
Digital Electronics,
Principles and
Integrated Circuits by
Anil K. Maini
Digital Techniques by A.
Anand Kumar
Amit Nevase
3/12/17 258
Online Tutorials
http://
nptel.ac.in/video.
php?subjectId=1171
06086
http://
www.electronics-tut
orials.ws/combinati
on/comb_1.html
http://
www.electronics-tut
Amit Nevase
3/12/17
orials.ws/combinati
259
Thank
You
Amit Nevase
Amit Nevase
3/12/17 260