Professional Documents
Culture Documents
By
Prof. Anand N. Gharu
(Assistant Professor)
PVGCOE Computer Dept.
1. Combination Circuits :
- The output of combinational circuit at any instant, depends only on the levels
present at input terminals.
- It does not use any memory
- it can have number inputs and outputs.
Example:
1. Adder, Substractor
2. Comparator
3. Code Converters
4. Encoders, Decoders 5. Multiplexers and Demutiplexers
Code Converters
Code converters take an input code, translate to its
equivalent output code.
4
Binary Codes
An n-bit binary code is a group of n bits that assume up to 2n
distinct combinations of 1s and 0s, with each combination
representing one element of the set being coded
For the 10 digits need a 4 bit code. One code is called Binary
Coded Decimal (BCD)
5
Binary Coded Decimal
Decimal
0 1 2 3 4 5 6 7 8 9
Digit
BCD 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001
Note: 1010, 1011, 1100, 1101, 1110, and 1111 are INVALID CODE!
Lets crack these
ex1: dec-to-BCD ex2: BCD-to-dec
(a) 35 (a) 10000110
(b) 98 (b) 001101010001
(c) 170 (c) 1001010001110000
(d) 2469
Excess-3 BCD Code
Decimal digits Excess-3 BCD code
0 0011
1 0100
2 0101
3 0110
4 0111
5 1000
6 1001
7 1010
8 1011
9 1100
Excess-3 Code (XS-3)
Decimal No. BCD Code Excess-3 Code=
BCD + Excess-3
0 0000 0011
1 0001 0100
2 0010 0101
3 0011 0110
4 0100 0111
5 0101 1000
6 0110 1001
7 0111 1010
8 1000 1011
9 1001 1100
8/29/2017 Amit Nevase 8
Excess-3 Code (XS-3)
4 2 8
1. (40)10
2. (88) 10
3. (64) 10
4. (23) 10
12
W = Sm(5,6,7,8,9)+ x =Sm(1,2,3,4,9)+
Sd(10,11,12,13,14,15) Sd(10,11,12,13,14,15)
= a+bc+bd = a+b(c+d) bcd+bd+bc=bcd+b(c+d)
AB AB
00 01 11 10 00 01 11 10 Underlined
CD CD
00 x 18 00 0
1 4 x 12 0 8 terms are
0 4 12
01 15 x 19 01 1 x 13 1 9
1 13 1 5 common
11 1 x15 x 11 11 1 x x
3 7 3 7 15 11
10 1 x 14 x10 10 12 6
x 14 x10
2 6
z = Sm(0,2,4,6,8)+
y = Sm(0,3,4,7,8)+ Sd(10,11,12,13,14,15)
Sd(10,11,12,13,14,15)
= d
AB = cd+cd AB
00 01 11 10
00 01 11 10 CD
CD
00 1 0 1 4 x 1 8
00 1 0 1 4 x 1 8 12
12
01 x
01 x 1 5 13 9
1 5 13 9
11 x x
11 1 1 x15 x 11 3 7 15 11
3 7
10 1 1 x 14 x10 13
10 2 6
x 14 x10 2 6
The Excess-3 BCD system is formed by adding 0011 to each
BCD value as in Table 2. For example, the decimal number 7,
which is coded as 0111 in BCD, is coded as 0111+0011=1010
in Excess-3 BCD.
0 0011
1 0100
2 0101
3 0110
4 0111
5 1000
6 1001
7 1010
8 1011
9 1100
THE BCD TO EXCESS 3 CODE CONVERTER
BCD Excess-3 circuit will convert numbers from their binary
representation to their excess-3 representation. Hence our truth
table is as below:
B3 B2 B1 B0 E3 E2 E1 E0
0 0 0 0 0 0 1 1
0 0 0 1 0 1 0 0
0 0 1 0 0 1 0 1
0 0 1 1 0 1 1 0
0 1 0 0 0 1 1 1
0 1 0 1 1 0 0 0
0 1 1 0 1 0 0 1
0 1 1 1 1 0 1 0
1 0 0 0 1 0 1 1
1 0 0 1 1 1 0 0
E2=B2^(B1+B0)
E1=(B1^B0)
E0=B0
Block diagram
Applications
Excess-3 was used on some older computers
Cash registers
22
BCD to XS 3 code converter- Design (3)...
23
BCD to XS 3 code converter- Design (4)
24
The Gray Code
The Gray code is unweighted and is not an arithmetic code.
o There are no specific weights assigned to the bit positions.
1 + 0 + 1 + 1 + 0 binary
1 1 1 0 1 Gray
The Gray Code
Gray-to-Binary Conversion
o The MSB in the binary code is the same as the corresponding bit in the
Gray code.
o Add each binary code bit generated to the Gray code bit in the next
adjacent position. Discard carries.
ex: convert the Gray code word 11011 to binary
1 1 0 1 1 Gray
+ + + +
1 0 0 1 0 Binary
Gray Code
Binary Number 1 0 1 1
Binary Number 1 0 1 1
Gray Code 1
Binary Number 1 0 1 1
Gray Code 1 1
Binary Number 1 0 1 1
Gray Code 1 1 1
Binary Number 1 0 1 1
Gray Code 1 1 1 0
Binary Number 1 0 1 1
Gray Code 1 1 1 0
Binary Number 1 0 0 1
Gray Code 1 1 0 1
Binary Number 1 1 1 1
Gray Code 1 0 0 0
Binary Number 1 0 1 0
Gray Code 1 1 1 1
1. (1011)2
2. (110110010)2
3. (101010110101)2
4. (100001)2
Bn Gn Bn 1 Bn Gn 1 Bn 2 Bn 1 Gn 2 B1 B2 G1
Gray Code 1 1 1 0
Gray Code 1 1 1 0
Binary Number 1
Gray Code 1 1 1 0
Binary Number 1 0
Gray Code 1 1 1 0
Binary Number 1 0 1
Gray Code 1 1 1 0
Binary Number 1 0 1 1
Gray Code 1 1 1 0
Binary Number 1 0 1 1
Gray Code 1 1 0 1
Binary Number 1 0 0 1
Gray Code 1 1 0 0
Binary Number 1 0 0 0
1. (1111)GRAY
2. (101110) GRAY
3. (100010110) GRAY
4. (11100111) GRAY
TRUTH TABLE: 0 1 1 0 1
Gray code
0 1 0 1 1
INPUT ( BINARY) OUTPUTS (GRAY CODE)
B3 B2 B1 B0 G3 G2 G1 G0
0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 1
0 0 1 0 0 0 1 1
0 0 1 1 0 0 1 0
0 1 0 0 0 1 1 0
0 1 0 1 0 1 1 1
0 1 1 0 0 1 0 1
0 1 1 1 0 1 0 0
1 0 0 0 1 1 0 0
1 0 0 1 1 1 0 1
1 0 1 0 1 1 1 1
1 0 1 1 1 1 1 0
1 1 0 0 1 0 1 0
1 1 0 1 1 0 1 1
1 1 1 0 1 0 0 1
59
1 1 1 1 1 0 0 0
Combinational Logic Circuits
Introduction
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 of ALU IC 74181 IC 74381
8/29/2017 60
Design of Binary to Gray Code Converter
Block Diagram:
B3 G3
B2 Binary to Gray G2
Binary Gray
B1 Code G1
Inputs Outputs
B0 converter G0
8/29/2017 61
BINARY TO GRAY CONVERSION
Design of Binary to Gray Code Converter
K-map for G0:
B1B 0 B1B 0
8/29/2017 63
Design of Binary to Gray Code Converter
K-map for G1:
B3B 2 01 1 4 1 5 0 7 0 6 G1 B 2B1 B 2 B1
1 12 1 13 0 15 0 14
B3 B 2 11 G1 B 2 B1
0 8 0 9 1 11 1 10
B3 B 2 10
B 2 B1 B 2B1
8/29/2017 64
Design of Binary to Gray Code Converter
K-map for G2:
B3B 2 01 1 4 1 5 1 7 1 6 G 2 B3B 2 B3 B 2
0 12 0 13 0 15 0 14
B3 B 2 11 G 2 B3 B 2
1 8 1 9 1 11 1 10
B3 B 2 10
B3 B 2 B3B 2
8/29/2017 65
Design of Binary to Gray Code Converter
K-map for G3:
B3B 2 01 0 4 0 5 0 7 0 6 G 3 B3
B3 B 2 11 1 12 1 13 1 15 1 14
1 8 1 9 1 11 1 10
B3 B 2 10
B3
8/29/2017 66
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
8/29/2017 67
Design of Gray to Binary Code Converter
Block Diagram:
G3 B3
G2
Gray to Binary B2 Binary
Gray
Inputs G1 Code B1 Outputs
G0 converter B0
8/29/2017 68
GRAY TO BINARY CONVERSION
Design of Gray to Binary Code Converter
K-map for B0: G1G0 G1G 0 G1G 0 G1G 0 G1G 0
G3G2 00 01 11 10
0 0 1 1 0 3 1 2
G 3G 2 00
G 3G 2 01 1 4 0 5 1 7 0 6
G 3G 2 11 0 12 1 13 0 15 1 14
1 8 0 9 1 11 0 10
G 3G 2 10
8/29/2017 70
Design of Gray to Binary Code Converter
K-map for B1: G1G0 G1G 0 G1G 0 G1G 0 G1G 0
G3G2 00 01 11 10
0 0 0 1 1 3 1 2
G 3G 2 00
G 3G 2 01 1 4 1 5 0 7 0 6
G 3G 2 11 0 12 0 13 1 15 1 14
1 8 1 9 0 11 0 10
G 3G 2 10
B1 G 3 G 2 G1
8/29/2017 71
Design of Gray to Binary Code Converter
K-map for B2: G1G0 G1G 0 G1G 0 G1G 0 G1G 0
G3G2 00 01 11 10
0 0 0 1 0 3 0 2
G 3G 2 00
G 3G 2 01 1 4 1 5 1 7 1 6
G 3G 2 11 0 12 0 13 0 15 0 14
1 8 1 9 1 11 1 10
G 3G 2 10
B 2 G 3G 2 G 3G 2
B1 G 3 G 2
8/29/2017 72
Design of Gray to Binary Code Converter
K-map for B3: G1G0 G1G 0 G1G 0 G1G 0 G1G 0
G3G2 00 01 11 10
0 0 0 1 0 3 0 2
G 3G 2 00
G 3G 2 01 0 4 0 5 0 7 0 6
G 3G 2 11 1 12 1 13 1 15 1 14
1 8 1 9 1 11 1 10
G 3G 2 10
B3 G 3
8/29/2017 73
Design of Gray to Binary Code Converter
Logic Diagram:
G3 G2 G 1 G0
B3
B2 G 3 G2
B1 G1 G 2 G 3
B 0 G 0 G1 G 2 G 3
8/29/2017 74
Half Adder
A Sum
8/29/2017 75
Half Adder
K-map for Sum Output:
A
A A
B 0 1
0 1 S AB AB
B 0
1 0
S A B
B 1
8/29/2017 77
Half Adder
Logic Diagram:
A
S A B
B
C AB
8/29/2017 78
Half Adder
Logic Diagram using Basic Gates:
A B
S A B
C AB
8/29/2017 79
Full Adder
A Sum
Cin
8/29/2017 80
TRUTH TABLE
Full Adder
BC BC BC BC BC
00 01 11 10
A S ABC ABC ABC ABC
0 1 0 1
A 0 S ABC ABC ABC ABC
1 0 1 0
A 1 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
S C A B
8/29/2017 82
Full Adder
BC BC BC BC BC
A 00 01 11 10
0 0 1 0
A 0
C AB BC AC
A 1 0 1 1 1
BC
AB
AC
8/29/2017 83
Full Adder
Logic Diagram:
A B C
S A B C
C AB BC AC
8/29/2017 84
Full Adder using Half Adders
A S0 S1 Sum
HA1 HA2
B C0 C1
C
Carry
8/29/2017 85
Half Subtractor
A Difference
8/29/2017 86
HALF SUBSTRACTOR
Half Subtractor
K-map for Difference Output:
A
A A
B 0 1
0 1 D AB AB
B 0
1 0
D A B
B 1
8/29/2017 88
Half Subtractor
Logic Diagram:
A
D A B
B
B AB
8/29/2017 89
Half Subtractor
Logic Diagram using Basic Gates:
A B
D A B
B AB
8/29/2017 90
Full Subtractor
A Difference
Bin
8/29/2017 91
FULL SUBSTRATOR
Full Subtractor
BC BC BC BC BC
00 01 11 10
A D ABC ABC ABC ABC
0 1 0 1
A 0 D ABC ABC ABC ABC
1 0 1 0
A 1 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
D C A B
8/29/2017 93
Full Subtractor
BC BC BC BC BC
A 00 01 11 10
0 1 1 1
A 0
B 0 AB BC AC
A 1 0 0 1 0
BC
AB
AC
8/29/2017 94
Full Subtractor
Logic Diagram:
A B C
D A B C
B 0 AB BC AC
8/29/2017 95
Full Subtractor using Half Subtractor
A D0 D1
Difference
HS1 HS2
B B0 B1
C
Borrow
8/29/2017 96
Combinational Logic Circuits
Introduction
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 of ALU IC 74181 IC 74381
8/29/2017 97
Seven Segment Display
f b
g
e c
d dp
8/29/2017 98
Seven Segment Display
Segments Display Seven Segment
Number Display
a b c d e f g
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
8/29/2017 100
Common Anode Display
+Vcc
R R R R R R R R
a b c d e f g dp
8/29/2017 101
Common Anode Display
+Vcc
R
R
b
R
c
R
d
BCD to
R
BCD e
7 Segment
Input
f
R
Decoder
g
R
R
dp
8/29/2017 102
Common Cathode Display
a b c d e f g dp
R R R R R R R R
8/29/2017 103
Common Cathode Display
R
b
R
c
R
BCD to d
R
BCD 7 Segment e
Input Decoder
R
f
R
g
R
dp
R
8/29/2017 104
BCD to 7 Segment Decoder Driver ICs
8/29/2017 105
IC 7447
Pins Description
LT Lamp Test
8/29/2017 106
RBI - Ripple Blanking Input
8/29/2017 108
RBO Ripple Blanking Output
8/29/2017 109
LT - Lamp Test
8/29/2017 110
Circuit Diagram
5V
16
3 Vcc 13 R Common
LT 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 d d
A0 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
8/29/2017 111
Display Configuration LTS 542
Common
g f a b
a
f b
g
e c
d dp
e d c dp
Common
8/29/2017 112
Display Configuration
8/29/2017 113
Combinational Logic Circuits
Introduction
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 of ALU IC 74181 IC 74381
8/29/2017 114
N Bit Parallel Adder
An 1 Bn 1 A2 B2 A1 B1 A0 B0
Sn 1 S2 S1 S0
8/29/2017 116
4 Bit Parallel Adder using full adder
A3 B3 A2 B2 A1 B1 A0 B0
S3 S2 S1 S0
8/29/2017 117
IC 7483 4 Bit Binary Parallel Adder
A3 B3 A2 B2 A1 B1 A0 B0
S3 S2 S1 S0
8/29/2017 118
IC 7483 4 Bit Binary Parallel Adder
IC 7483 Cin
C0
Carry
Carry
Input
Output
S3 S 2 S1 S 0
Sum Output
8/29/2017 119
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
Cin C0
C0 IC 7483-II IC 7483-I Cin
Carry Carry
Output Input
S7 S6 S5 S4 S3 S 2 S1 S 0
Sum Output
8/29/2017 120
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
IC 7483-II
C0 Cin
8/29/2017 S3 S 2 S1 S 0 121
Design of 1 Digit BCD Adder
8/29/2017 122
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
0 1 0 1 0 1 1 0 1 1
BCD
0 1 1 0 0 1 1 1 0 1 Number
Y=1
0 1
8/29/2017 1 1 0 1 Nevase
Amit 1 1 1 1 123
Design of 1 Digit BCD Adder
S1S0 S 1S 0 S 1S 0 S 1S 0 S 1S 0
S3 s 2 00 01 11 10
0 0 0 1 0 3 0 2
S 3S 2 00
S 3S 2 01 0 4 0 5 0 7 0 6
1 12 1 13 1 15 1 14
Y S 3S 2 S 3S 1
S 3S 2 11
0 8 0 9 1 11 1 10
S 3S 2 10
S 3S 2 S 1S 3
8/29/2017 124
4-BIT BCD ADDER
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
8/29/2017 127
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
Cascading Outputs
Inputs
130
Comparators
can be expanded A0
0
COMP A4
0
COMP
A1 A5
using the A2 A A6 A
cascading inputs A3 A7
3 3
as shown. The +5.0 V
A>B A>B
A=B A=B
A>B A>B
A=B A=B Outputs
lowest order A<B A<B A<B A<B
B0 0 B4 0
comparator has B1 A B5 A
a HIGH on the B2 B6
B3 3 B7 3
A = B input.
Combinational Logic Circuits
Introduction
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 of ALU IC 74181, IC 74381
8/29/2017 132
IC 74181 Arithmetic Logic Unit
8/29/2017 134
IC 74181 Pin Diagram
8/29/2017 135
IC 74181 Function Table
8/29/2017 136
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
8/29/2017 137
IC 74381 Pin Configuration
8/29/2017 138
IC 74381 Function Table
8/29/2017 139
Combinational Logic Circuits
Necessity, Applications and Realization of following
Multiplexers (MUX): MUX Tree
Demultiplexers (DEMUX): DEMUX Tree, DEMUX as Decoder
Study of IC 74151, IC 74155
Priority Encoder 8:3, Decimal to BCD Encoder
Tristate Logic, Unidirectional & Bidirectional buffer ICs: IC 74244
and IC 74245
8/29/2017 140
Multiplexers
8/29/2017 141
Necessity of Multiplexers
8/29/2017 143
Applications of Multiplexers
8/29/2017 144
Block Diagram of Multiplexer
D0 D0
D1 D1
Data D2 D2
D3 Y
Inputs D3
. n:1 .
. Output .
Mux Output
. .
Dn-1 . .
Dn-1
. .
E
Enable Input
.... ....
Sm-1 S2 S1 s0 Sm-1 S2 S1 s0
Select Lines
8/29/2017 145
Relation between Data Input Lines & Select Lines
8/29/2017 146
Types of Multiplexers
2:1 Multiplexer
4:1 Multiplexer
8:1 Multiplexer
16:1 Multiplexer
32:1 Multiplexer
64:1 Multiplexer
and so on
8/29/2017 147
2:1 Multiplexer
Data D0
2:1 Y
Inputs 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
8/29/2017 148
Realization of 2:1 Mux using gates
S D1 D0
S
SD 0
Y
Output
SD1
E
Enable Input
8/29/2017 149
4:1 MULTIPLEXER
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
8/29/2017 151
16:1 Multiplexer
D0
D1
D2
D3
D4
D5
Data D6 Y
D7 16:1
Inputs D8
D9 Mux Output
D10
D11
D12
D13
D14
D15
E
Block Diagram
Enable Input
S3 S2 S1 S0
8/29/2017 Select Lines 152
Mux Tree
8/29/2017 153
8:1 Multiplexer using 4:1 Multiplexer
D0
D1
Y1
D2 4:1
D3 Mux
Select S2 ES S0 Y
1
S1
Lines S0 Output
S1 S0
D4
D5
4:1
D6 Mux Y2
D7
E
8/29/2017 154
8:1 Multiplexer using 4:1 Multiplexer
D0
D1
Y1
D2 4:1
D3 Mux
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
8/29/2017 155
D0
4:1 Y1
16:1 Mux using 4:1 Mux
D1
D2 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
8/29/2017 D15 156
Realization of Boolean expression using Mux
8/29/2017 157
Example 1
f ( A, B, C ) m(0, 3, 5, 6)
8/29/2017 158
Example 1 continue..
+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 S0
A B C
8/29/2017 159
Example 2
8/29/2017 160
Example 2 continue..
+Vcc f ( A, B, C , D ) m(0, 2, 3, 6,8, 9,12,14)
D0
D1
D2
D3
D4
D5
D6 Y
D7 16:1
D8
D9 Mux Output
D10
D11
D12
D13
D14
D15
S3 S2 S1 S0
E
A B C D
8/29/2017 161
Combinational Logic Circuits
Necessity, Applications and Realization of following
Multiplexers (MUX): MUX Tree
Demultiplexers (DEMUX): DEMUX Tree, DEMUX as
Decoder
Study of IC 74151, IC 74155
Priority Encoder 8:3, Decimal to BCD Encoder
Tristate Logic, Unidirectional & Bidirectional buffer ICs: IC 74244
and IC 74245
8/29/2017 162
De-multiplexer
8/29/2017 163
Block Diagram of De-multiplexer
Y0 Y0
Y1 Y1
Y2 Y2
Data Y3 Y3
1:n . Data .
Input . Outputs . Outputs
De-mux Input
. .
. Yn-1 . Yn-1
. .
E
Enable
.... ....
Input
Sm-1 S2 S1 s0 Sm-1 S2 S1 s0
Select Lines
8/29/2017 164
Relation between Data Output Lines & Select Lines
8/29/2017 165
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
8/29/2017 166
1:2 De-mux
1:2 De-mux using basic gates
E Din S
S
Y0
Y1
8/29/2017 168
1:4 De-mux
1:4 De-mux using basic gates
E Din S 1 S0
S1 S0
Y0
Y1
Y2
Y3
8/29/2017 170
1: 8 De-multiplexer
Y0
Y1
Data Din Y2
1:8 Y3
Input Y4
De-mux Y5
Y6
E Y7
Enable
Input S2 S1 S0
Select Lines
Block Diagram
8/29/2017 171
1: 16 De-multiplexer
Y0
Y1
Y2
Y3
Y4
Y5
Y6
Data Din Y7
Input 1:16 Y8
Y9
De-mux
Y10
Y11
Block Diagram Y12
Y13
Y14
E Y15
Enable
8/29/2017 Input S3 S2 S1 S0 172
De-mux Tree
8/29/2017 173
1:4 De-mux using 1:2 De-mux
Data Y0 Y0
1:2
Din
Input De-mux Y1 Y1
S1 E S0
Select
Lines S0
S0
Y0 Y2
Din 1:2
De-mux Y Y3
1
E
8/29/2017 174
1:16 De-mux using 1:4 Y0
1:4 Y1
De-mux Din Y2
De-mux Y3
S1 S0
S1 S0 Y4
1:4 Y5
Din Y6
Data Y0 De-mux
Din 1:4 Y7
Y1
Input Y2
De-mux Y3
S1 S0
Y8
1:4 Y9
Din
De-mux Y10
S3 S2 S1 S0 Y11
S1 S0 Y12
Din 1:4 Y13
Y14 S1 S0
8/29/2017 De-mux Y15 175
Decoder
8/29/2017 176
De-multiplexer as Decoder
8/29/2017 177
1:4 De-multiplexer as 2:4 Decoder
Vcc
Y0 Din Y0
A S1
Data Din 1:4 Y1 Inputs 1:4 Y1
De-mux Y2 B S0 De-mux Y2
Input Y3
E Y3
Enable E Enable
Input S1 S0
Select Lines Input
8/29/2017 178
Realization of Boolean expression using De-mux
8/29/2017 179
Example 1
f ( A, B, C ) m(0, 3, 5, 6)
8/29/2017 180
Example 1 continue..
f ( A, B, C ) m(0, 3, 5, 6)
+Vcc Y0
Y1
Data Y2
Din 1:8 Y3 Y
Input Y4
De-mux Y
5
Y6
E S2 S1 S0 Y7
Enable
Input A B C
8/29/2017 181
Example 2
8/29/2017 182
Example 2 continue..
Y0
Y1
Y2
+Vcc Y3
Y4
Y5
Y6
Data 1:16 Y7 Y
Input Din De-mux Y8
Y9
Y10
Y11
Y12
Y13
Y14
E S3 S2 S1 SY0 15
Enable
f ( A, B, C , D ) m(0, 2, 3, 6,8, 9,12,14)
Input A B C D
8/29/2017 183
Module III Combinational Logic
Circuits
Necessity, Applications and Realization of following
(8 Marks)
Multiplexers (MUX): MUX Tree
Demultiplexers (DEMUX): DEMUX Tree, DEMUX as Decoder
Study of IC 74151, IC 74155
Priority Encoder 8:3, Decimal to BCD Encoder
Tristate Logic, Unidirectional & Bidirectional buffer ICs: IC 74244
and IC 74245
8/29/2017 184
Multiplexer ICs
8/29/2017 185
IC 74151 General Description
8/29/2017 187
IC 74151 Pin Diagram VCC GND
D0
D1
D2 Y
Data D3
D4 8:1
Inputs
Mux
D5 Y
D6
D7
E
Enable Input
Pin Diagram
S2 S1 S0
Select Lines
8/29/2017 188
Equivalent Diagram
De-multiplexer ICs
IC Number Description
IC 74154
1:16 De-multiplexer
IC 74155
Dual 1:4 De-multiplexer
8/29/2017 189
IC 74155 General Description
8/29/2017 190
IC 74155 - Features
8/29/2017 192
Combinational Logic Circuits
Necessity, Applications and Realization of following
(8 Marks)
Multiplexers (MUX): MUX Tree
Demultiplexers (DEMUX): DEMUX Tree, DEMUX as Decoder
Study of IC 74151, IC 74155
Priority Encoder 8:3, Decimal to BCD Encoder
Tristate Logic, Unidirectional & Bidirectional buffer ICs: IC 74244
and IC 74245
8/29/2017 193
Encoder
n m
. Encoder .
inputs . .
outputs
. .
8/29/2017 195
Types of Encoders
Priority Encoder
8/29/2017 196
Priority Encoder
8/29/2017 197
Priority Encoder 8:3
Highest Priority
D0
D1 Y2
D2 Priority 3
8 D3 Y1
Encoder outputs
inputs D4 Y0
D5 8:3
D6
D7
Lowest Priority
8/29/2017 198
Decimal to BCD Encoder
D1
D2 A
D3
D4 Decimal to B BCD
9 D5 BCD C
outputs
D6
inputs Encoder D
D7
D8
D9
8/29/2017 200
Combinational Logic Circuits
Necessity, Applications and Realization of following
Multiplexers (MUX): MUX Tree
Demultiplexers (DEMUX): DEMUX Tree, DEMUX as Decoder
Study of IC 74151, IC 74155
Priority Encoder 8:3, Decimal to BCD Encoder
Tristate Logic, Unidirectional & Bidirectional buffer ICs:
IC 74244 and IC 74245
8/29/2017 201
Tristate Logic
8/29/2017 202
Digital Buffer
8/29/2017 203
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.
8/29/2017 204
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.
8/29/2017 205
Tri-state Buffer - Equivalent
8/29/2017 206
What is Parity Generator?
A Parity Generator is a Combinational Logic Circuit that
Generates the Parity bit in the Transmitter.
In Odd Parity, the added Parity bit will Make the Total
Number of 1s an Odd Amount.
Parity Generator Truth Table and Logic Diagram
3-bit Message Odd Even
X Y Z Parity Parity
Bit Bit
0 0 0 1 0
0 0 1 0 1
0 1 0 0 1
0 1 1 1 0
1 0 0 0 1
1 0 1 1 0
1 1 0 1 0
1 1 1 0 1
Boolean Expression K-Map Simplification
YZ
Even Pair
X 00 01 11 10
P = + + +
0 1 0 1
= + + +
1 0 1 0
= +
=X()
YZ
Odd Pair
X 00 01 11 10
P = + + +
0 1 0 1 0
= + + +
= + 1 0 1 0 1
=()
Parity Checker
A Circuit that Checks the Parity in the Receiver is called
Parity Checker.
The Parity Checker Circuit Checks for Possible Errors in the
Transmission.
Since the Information Transmitted with Even Parity, the
Received must have an even number of 1s.If it has odd
number of 1s, it indicates that there is a Error occurred during
Transmission.
The Output of the Parity Checker is denoted by PEC(Parity
Error Checker).If there is error, that is,if it has odd number of
1s, it will indicate 1.If no then PEC will indicate 0.
Even Parity Checker Truth Table
Decimal Four Bits Received Parity Error
Equivalent P A B C PEC
0 0 0 0 0 0
1 0 0 0 1 1
2 0 0 1 0 1
3 0 0 1 1 0
4 0 1 0 0 1
5 0 1 0 1 0
6 0 1 1 0 0
7 0 1 1 1 1
8 1 0 0 0 1
9 1 0 0 1 0
10 1 0 1 0 0
11 1 0 1 1 1
12 1 1 0 0 0
13 1 1 0 1 1
14 1 1 1 0 1
15 1 1 1 1 0
Logic Diagram Boolean Expression
PEC = + + + +
+ + ( + )
= + + +
=( + ) B + +
=() +
K-Map =(P)()
Simplification
BC
PA 00 01 11 10
00 0 1 0 1
01 1 0 1 0
11
0 1 0 1
10
1 0 1 0
Bi-directional Buffer
8/29/2017 214
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
8/29/2017 215
Online Tutorials
http://nptel.ac.in/video.
php?subjectId=1171060
86
http://www.electronics-
tutorials.ws/combinatio
n/comb_1.html
http://www.electronics-
tutorials.ws/combinatio
n/comb_2.html
8/29/2017 Amit Nevase 216
Thank You
8/29/2017 217