Unit 3
Unit 3
Polytechnic , Chandwad
Digital Techniques
Prashant G. Aher (M.Tech CSE)
Lecturer,
Department of Computer Technology,
SHRI H.H.J.B. Polytechnic Chandwad
Specification table for Question Paper
Total 64 18 22 30 70
5
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.
7
SOP Form
Y A . B B .C A.C
Produc
t
8
POS Form
Y ( A B).(B C).( A C )
Sum
9
Standard or Canonical SOP & POS Forms
uncomplemented form.
10
Standard SOP
11
Standard POS
Y ( A B C).( A B C).( A B C )
Each sum
term
consists all
the literals
12
Examples
Sr.
Expression Type
No.
2 Y AB AB AB Standard SOP
13
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 .
14
Example 1
Missing literal is
A Missing literal is B
Missing literal is C
16
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 .
17
Example 2
Convert given expression into its standard SOP Y ( A B).( A C).(B C)
form
Y ( A B).( A C).(B C)
Missing literal is
A Missing literal is B
Missing literal is C
19
Concept of Minterm and Maxterm
20
Minterms & Maxterms for 3 variable/literal logic function
A B C mi Mi
0 0 0 ABC m0 ABC M 0
0 0 1 A B C 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
21
Minterms and maxterms
Each minterm is represented by mi where
i=0,1,2,3,…….,2n-1
A B mi Mi
0 0 AB m0 AB M 0
0 1 AB m1 AB M 1
1 0 AB m2 AB M 2
1 1 AB m3
AB M 3
23
Representation of Logical expression using minterm
Y m(3, 4, 5, 7) O
R
Y f ( A, B, C) m(3, 4, 5, 7)
Y M (0, 2, 6) O
R
Y f ( A, B, C) M (0, 2, 6)
25
Conversion from SOP to POS & Vice versa
27
Examples
Y A BC ABC
2. Convert the given expression into standard
form
Y ( A B).( A C)
28
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.
30
Karnaugh Map (K-map)
represented on K-map.
31
Karnaugh Map (K-map)
32
Karnaugh Map (K-map)
AB AB m0 m1
B 0 B 0
B 1 AB AB B m2 m3
33
Karnaugh Map (K-map)
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
34
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
A 0 1
C
BC
0
00
1
01
BC
00 01 11 10 11
A
10
0
35
Karnaugh Map (K-map)
36
Karnaugh Map (K-map)
37
Karnaugh Map (K-map)
Karnaugh Map (K-map)
39
Karnaugh Map (K-map)
4 Variable K-map and its associated minterms
40
Representation of Standard SOP form expression on K-map
43
Grouping
44
Grouping of Two Adjacent 1’s : Pair
45
Grouping of Two Adjacent 1’s : Pair
Grouping of Two Adjacent 1’s : Pair
Possible Grouping of Four Adjacent 1’s : Quad
A Quad eliminates 2 variable
48
Possible Grouping of Four Adjacent 1’s : Quad
A Quad eliminates 2 variable
49
Possible Grouping of Four Adjacent 1’s : Quad
A Quad eliminates 2 variable
50
Possible Grouping of Four Adjacent 1’s : Quad
A Quad eliminates 2 variable
Possible Grouping of Eight Adjacent 1’s : Octet
A Octet eliminates 3 variable
52
Possible Grouping of Eight Adjacent 1’s : Octet
53
Rules for K-map simplification
54
Rules for K-map simplification
55
Rules for K-map simplification
57
Rules for K-map simplification
59
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
60
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.
61
Rules for K-map simplification
9. A pair eliminates one variable.
62
Example 1
63
Example 1 continue…..
64
Example 2
For the given K-map write simplified Boolean expression
65
Example 2 continue…..
66
Example 3
67
Example 3 continue……
68
Example 4
69
Example 4 continue…..
70
Example 5
f ( A, B, C, D) m(1, 3, 5, 9,11,13)
71
Example 5 continue…..
72
Example 6
73
Example 6 continue…..
74
Example 7
f 2( A, B, C, D) m(0,1, 2, 3,11,12,14,15)
75
Example 7 continue…..
76
Example 8
77
Example 8 continue……
78
Example 9
Simplify ;
79
Example 9 continue…..
80
Example 10
81
Example 10 continue……
82
K-map for Product of Sum Form (POS
Expressions)
84
Example 11
Simplify ;
f ( A, B, C, D) M (0,1, 3, 5, 6, 7,10,14,15)
85
Example 11 continue…..
Simplify
;
f ( A, B, C, D) M (4, 6,10,12,13,15)
87
Example 12 continue…..
90
K-map and don’t care conditions
Simplify ;
92
K-map and don’t care conditions - Example
93
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.
A Sum
95
Half Adder
Input Output
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
96
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
97
Half Adder
Logic
Diagram:
A
S A B
B
C AB
98
Half Adder
Logic Diagram using Basic
Gates:
A B
S A B
C AB
99
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.
A Sum
Inputs
B Full Outputs
Adde
r Carry
Cin
101
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
102
Full Adder
K-map for Sum Output:
BC BC BC BC BC
A 00 0 11 10
1
S ABC ABC ABC ABC
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
ABC S C( X ) C( X )
S C X
Let X A B
S C A B
103
Full Adder
BC BC BC BC BC
A 00 0 11 10
1
A 0 0 0 1 0
C AB BC AC
A 1 0 1 1 1
BC
AB
AC
104
Full Adder
Logic
Diagram:
A B C
S A B C
C AB BC AC
105
Full Adder using Half Adders
A S0 S1 Sum
HA1 HA2
B C0 C1
C
Carry
106
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.
A Difference
108
Half Subtractor
Truth Table
Input Output
0 0 0 0
0 1 1 1
1 0 1 0
1 1 0 0
109
Half Subtractor
K-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
110
Half Subtractor
Logic
Diagram:
A
D A B
B
B AB
111
Half Subtractor
Logic Diagram using Basic
Gates:
A B
D A B
B AB
112
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.
A Differenc
e
Input B Full Output
s Subtract s
or Borro
w
Bi
n
114
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
115
Full Subtractor
K-map for Difference Output:
BC BC BC BC BC
A 00 0 11 10
1
D ABC ABC ABC ABC
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
ABC D C( X ) C( X )
DCX
Let X A B
D C A B
116
Full Subtractor
BC BC BC BC BC
A 00 0 11 10
1
A 0 0 1 1 1
B 0 AB BC AC
A 1 0 0 1 0
BC
AB
AC
117
Full Subtractor
Logic
Diagram:
A B C
D A B C
B 0 AB B C AC
118
Full Subtractor using Half Subtractor
A D0 D1
Difference
HS1 HS2
B B0 B1
C
Borrow
119
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.
121
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
Design of Gray to Binary Code Converter
K-map for B0: G1G0 G1G0 G1G0 G1G0 G1G0
00 01 11 10
G3G2
0 1 3 2
G3G2 00 0 1 0 1
4 5 7 6
GG23 01 1 0 1 0
12 13 15 14
G3G2 11 0 1 0 1
8 9 11 10
G3G2 10 1 0 1 0
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: G1G0 G1G0 G1G0 G1G0 G1G0
00 01 11 10
G3G2
0 1 3 2
G3G2 00 0 0 0 0
4 5 7 6
GG23 01 1 1 1 1
12 13 15 14
G3G2 11 0 0 0 0
8 9 11 10
G3G2 10 1 1 1 1
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.
Block
Diagram:
B3 G3
B2 Binary to G2
Binary Gray Code Gray
B1 G1
Inputs 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 1 1 1 1 0 0
1 0 1 0
Design of Binary to Gray Code Converter
B1B0 B1B0
Design of Binary to Gray Code Converter
B2B1 B2B1
Design of Binary to Gray Code Converter
B3B2 B3B2
Design of Binary to Gray Code Converter
B3
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
An 1 Bn 1 A2 B2 A1 B1 A0 B0
Sn 1 S2 S1 S0
4 – Bit Parallel Adder using full adder
A3 B3 A2 B2 A1 B1 A0 B0
S3 S2 S1 S0
IC 7483 4 – Bit Binary Parallel Adder
A3 B3 A2 B2 A1 B1 A0 B0
S3 S2 S1 S0
IC 7483 4 – Bit Binary Parallel Adder
A Binary B Binary
number number
A 3 A 2 A1 A 0
B 3 B 2 B1 B 0
IC 7483 Cin
C0
Carr
Carry
y
Outpu
Input
t
S3 S 2 S1 S0
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
Design of 1 Digit BCD Adder
Block A BCD no. B BCD no.
Diagram:
C0 IC
7483-I S 3 S 2 S1 S 0 C in
Logic
Circuit
Add 0110
Command
IC 7483-II
C0 C in
S3 S 2 S1 S0
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
0 1 0 0 0 1 1 0 0 1 is
invalid
0 1 0 1 0 1 1 0 1 1 BCD
Number
0 1 1 0 0 1 1 1 0 1 Y=1
0 1 1 1 0 1 1 1 1 1
Design of 1 Digit BCD Adder
S3S2 S1S3
Design of 1 Digit BCD Adder A BCD B BCD
no. no.
Combinational
Logic
Circuit
C0 IC
7483-I S 3 S 2 S1 S 0 C in
Y' Y
C0
IC 7483-II
Not S3 S 2 S1 C in
S0
used
Carry output
BCD Output Sum
4 Bit Binary Parallel Subtractor using IC 7483
Vcc 5V
C0
Carry IC 7483 Cin 1
Output S3 S 2 S1 S0 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 S3 S 2 S1 S0
‘n’ ‘m’
. Encoder .
inputs . .
outputs
. .
Types of Encoders
Priority Encoder
will be considered.
Priority Encoder 8:3
Highest
Priority
D0
D1 Y2
D2 Priority ‘3’
‘8’ D3 Y1 outputs
Encoder
inputs D4 8:3
Y
0
D5
D6
D7
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
D2 A
D3
D4 Decimal to B. ‘BCD’
‘9’ D5 BCD C. outputs
inputs D6 Encoder
D7 D
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’
. decod .
inputs . .
outputs
er
. .
Typical applications of Decoders
Code Converters
Relay actuators
Types of Decoders
2 to 4 line Decoder
3 to 8 line Decoder
BCD to 7 Segment
Decoder
2 to 4 Line Decoder
Y0
A
Inputs 2:4 Y1 Block
B Decoder Y2 Diagram
Y3
E Enable
Input Enabl
Data Inputs Outputs
e
i/p
E A B Y0 Y1 Y2 Y3
0 X X 0 0 0 0
Truth 1 0 0 1 0 0 0
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
Y1
Input B Y2
3:8 Y3
Decoder Y4
C Y5
Y6
Y7
Enable
Input
3 to 8 Line Decoder
Truth Table
Enabl
Inputs Outputs
e i/p
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
1 1 1 1 0 0 0 0 0 0
1 0
Comparison between Encoder & Decoder
Sr.
Parameter Encoder Decoder
No.
1 Input applied Active input signal Coded binary input
(original message
signal)
2 Output Coded binary output Active output signal (original
generated message)
3 Input lines 2n n
4 Output lines N 2n
f b
g
e c
d dp
Seven Segment Display
Segments
Display Seven Segment
a b c d e f g Number 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 ON OFF ON ON 9
Types of Seven Segment Display
+Vc
c
R R R R R R R R
a b c d e f g dp
Common Anode Display
+Vc
c
a
R
b
R
c
R
d
R
BCD to
BCD e
R
7 Segment
Input
Decoder f
R
g
R
R
dp
Common Cathode Display
a b c d e f g d
p
R R R R R R R R
Common Cathode Display
R
b
R
c
R
d
BCD to
7 Segment
R
BCD e
Input Decoder
R
f
R
g
R
d
R
p
BCD to 7 Segment Decoder Driver ICs
LT
Lamp Test
RBO Ripple
Blanking
output
RBI - 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 or responding to 0.
For non-zero BCD inputs, the decoder
output will be normal and the BCD number will be
displayed.
RBI=0is connected for blanking out the leading
zeros in multidigit displays.
BI – Blanking Input
1
3 6
a 1 R Common
LT V cc
a
5 3
RBI R a
4 BI / RBO
b 1
b
2
11 R f b
c c g
IC R
1
LS 1 A0
7447 d 0 d
B 9 R e c
2 A1 e e dp
BC 6 R
1
Input
D A2 f f d dp
7 5
s A3 R
MS Gnd 14 g
B 8 g
Display Configuration – LTS 542
Common
g f a b
a
f b
g
e c
d d
p
e d c dp
Common
Display Configuration
Unit III – Combinational Logic Circuits
In D to A converters.
D0 D0
D1 D1
Data D2 D2
Inputs D3 Y
D3
. .
.
n:1 .
. Mux Output .
. .
Output
. .
Dn-1 Dn-1
E
Enable
... ...
Input . .
Sm- S2 s0 Sm- S2 s0
SelectS1 S1
1 1
Lines
Fig. General Block Fig. Equivalent
Diagram Circuit
Relation between Data Input Lines & 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
Mux
Output Diagram
E
Enable
Input
s
Select
Lines Enable Select Outpu
i/p i/p t
(E) (S) (Y)
0 X 0
Truth
1 0 D0
Table
1 1 D1
Realization of 2:1 Mux using gates
S D1 D0
S
SD0
Y
Output
SD 1
E
Enable
Input
4:1 Multiplexer
Block Truth
Diagram Table
Output
Enable i/p Select i/p
D0
D1 E S1 S0 Y
Data
Y
Inputs D2 4:1
Mux 0 X X 0
Output
D3 D0
1 0 0
E
1 0 1 D1
Enable
Input S1 S0
1 1 0 D2
Select
Lines D3
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 D3 Enable
Input
8:1 Multiplexer
Block
Truth
Diagram
Table
D0
Out
D1 Enable
Select i/p p
i/p
D2 ut
D3 E S2 S1 S0 Y
Data
Y
Inputs D4 8:1 0 X X X 0
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
Input 1 1 1 0 D6
S2 S1 S0 1 1 1 1 D7
Select Lines
16:1 Multiplexer
Block
D0
Diagram D1
D2
D3
D4
D5
Data D6 Y
Inputs D7 16:
D8 1
D9 Outpu
Mu
D10 t
x
D11
D12
D13
D14
D15
E
Enable Input
S3 S2 S1 S0
Select Lines
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 1 0 1 1 0 D6
Table 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
1 1 1 1 1 D
Mux Tree
D0
D1
Y
D2 4:1 1
Mux
D3
S2 E S Y
Select
S1 0
Lines S1
S0 Output
S S
D4 1 0
D5
4:1
D6 Mux
Y2
D7
E
8:1 Multiplexer using 4:1 Multiplexer
D0
D1
Y
D2 4:1 1
Mux
D3
D0
E S 2:1 Y
D1
S1 S1 0 Mux
S0 Output
E
S S
D4 1 0
D5 S2
4:1
D6 Mux
Y2
D7
E
D0
4:1 Y1
16:1 Mux using
D1
D2
D3
Mux 4:1 Mux
S1 S0
S1
S0
D4 S1 S0
D5 4:1 Y2
D6 Mux
D7
D0
D1 4:1 Y
D2 Mux
D3 S S Output
D8 1
D9 4:1 Y3 0
D10 Mux
D11
S1 S0 S3 S2
D12 S1 S0
D13 4:1 Y4
D14 Mux
D15
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
D3
Y
D4 8:1
Mux
Output
D5
D6
D7
E S2 S1
S
0
A B C
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 , 1 2, 1 4)
D0
D1
D2
D3
D4
D5
D6 Y
D7 16:1
D8 Mux
D9 Output
D10
D11
D12
D13
D14
D15
S3 S2 S1 S0
E
A B C D
Unit III – Combinational Logic Circuits
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 S1s0 Sm-1 S2 S1s0
Select
Lines
Fig. General Block Fig. Equivalent
Diagram Circuit
Relation between Data Output Lines & Select
Lines
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
Input De-mux
Y1 Diagram
E
Enable
Input S
Select
Lines
Enable i/p Select i/p Outputs
E S Y0 Y1
Truth 0 X 0 0
Table
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
Input De-mux Y2 Diagram
Y3
E
Enable
Input Enabl
S1 S0 Select i/p Outputs
Select e
Lines i/p
E S1 S0 Y0 Y1 Y2 Y3
0 X X 0 0 0 0
1 0 0 Din 0 0 0
Truth
Table 1 0 1 0 Din 0 0
1 1 0 0 0 Din 0
1 1 1 0 0 0 Din
1:4 De-mux using basic gates
E Din S 1 S0
S1 S0
Y0
Y1
Y2
Y3
1: 8 De-multiplexer
Block
Diagram
Y0
Y1
Data Din Y2
1:8 Y3
Input Y4
De-mux
Y5
Y6
E Y7
Enable
Input
S2 S1 S0
Select
Lines
1: 8 De-multiplexer
Truth Table
Enabl
Select i/p Outputs
e 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
1 1 Din 0 0 0 0 0 0
1 1 0
1: 16 De-multiplexer
Y0
Block
Y1
Diagram
Y2
Y3
Y4
Y5
Y6
Din
Data Y7
Input Y8
1:16
Y9
De-mux
Y10
Y11
Y12
Y13
Y14
E Y15
Enable
Input
S3 S2 S1 S0
De-mux Tree
Data Y Y0
1:2 0
Input Din
De-mux
Y1 Y1
S1 E S0
Select
Lines
S0
S0
Y0 Y2
Din 1:2
De-mux
Y1 Y
E 3
Y0
1:16 De-mux using 1:4 1:4 Y1
De-mux Din De-mux Y2
Y3
S1 S0
S1 S0 Y4
1:4 Y5
Din Y6
Data Y0 De-
D mux Y7
Input in 1:4 Y1
De-mux Y2
Y3
S1 S0
Y8
1:4 Y9
Din De-mux
Y10
S3 S2 S1 S0 Y11
S1 S0 Y12
Din 1:4 Y13
De- Y14 S1 S0
mux Y15
Decoder
2:4 decoder
2:4 Decoder
Y0
A
2:4 Y1
Inputs
Decoder Y2
B
Y3
Truth Table
E Enable
Input Enabl
Data Inputs Outputs
Block Diagram e
i/p
E A B Y0 Y1 Y2 Y3
0 X X 0 0 0 0
1 0 0 1 0 0 0
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
a decoder.
Vcc
Y0 Din Y0
A S1
Data 1:4 Y1 1:4 Y1
Inputs
Din De-mux Y2 De-mux Y2
B S0
Input Y3 Y3
E
Enabl Input
E Enable
e S1 S0
Input Select Lines
1: 4 De- 1: 4 De-multiplexer as 2:4
multiplexer Decoder
Realization of Boolean expression using De-
mux
We can implement any Boolean
expression
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
Din 1:8 Y3 Y
Input Y4
De-
mux Y5
Y6
E S2 S1 S0 Y7
Enable
Input
A B
C
Example 2
f ( A, B , C , D ) m ( 0 , 2, 3, 6 , 8 , 9 , 12 , 1 4)
Y0
Y1
Y2
+Vcc Y3
Y4
Y5
Y6
Data 1:16 Y7 Y
Input De-mux Y8
Din
Y9
Y10
Y11
Y12
Y13
Y14
E S3 S2 S S Y15
1 0
Enable
Input f ( A, B , C , D ) m ( 0 , 2, 3, 6 , 8, 9 , 1 2, 1 4)
A B C D
Multiplexer
ICs
IC Number Description Output
D0
D1
D2 Y
Data D3
Input D4 8:1
s Mu
D5 x Y
D6
D7
E
Enable
Pin
Input
Diagram S2 S1 S0
Select Lines
Equivalent Diagram
De-multiplexer ICs
IC Number Description
A Q
0 0
Enable IN OUT
0 0 Hi-Z
0 1 Hi-Z
1 0 0
Tri-state Buffer
1 1 1
Enable IN OUT
0 0 0
0 1 1
1 0 Hi-Z