Professional Documents
Culture Documents
Chapter 8
COMBINATIONAL
LOGIC CIRCUITS
Concepts
1
15-Sep-20
Design steps
Interpret the problem
Define the inputs and outputs
Make true table
Defines the Boole function of outputs and simplify
Draw logic circuit
Encoder
There are N (N <= 2n) inputs
n outputs
There is only one active input at a time
Active input index determines the combination of
outputs.
X0
Example: 4 to 2 encoder
X1 Y0
Block diagram X2
X3 Y1
2
15-Sep-20
Encoder (cont) X3 X2 X1 X0 Y1 Y0
True table 0 0 0 1 0 0
Boole function 0 0 1 0 0 1
Logic circuit 0 1 0 0 1 0
1 0 0 0 1 1
3
15-Sep-20
True table X3 X2 X1 X0 Y1 Y0
Boole function x x x 1 0 0
Logic circuit x x 1 0 0 1
x 1 0 0 1 0
1 0 0 0 1 1
Introduction to ICs
74147 : Priority encoding from 10 to 4, the inputs and outputs
are both active low.
74148: Priority encoding from 8 to 3
4
15-Sep-20
5
15-Sep-20
Decoders
6
15-Sep-20
Boole function
True table
X1 X0 Y3 Y2 Y1 Y0
0 0 0 0 0 1
0 1 0 0 1 0
1 0 0 1 0 0
1 1 1 0 0 0
7
15-Sep-20
Introduction to ICs
74LS139 : consist of 2 (2 – 4) decoders
74LS138 : 3-8 decoder
8
15-Sep-20
9
15-Sep-20
10
15-Sep-20
MUX = Multiplexer
Block diagram
There are 2n inputs
There is 1 output
There are n control inputs
May be has CS input
Only 1 at a time,
only 1 input connected
to the output, a combination
of control inputs determines the output.
11
15-Sep-20
E1
Example:(2 – 1) MUX E0
Block diagram C0
True table
Boole function S C0 E0 C0 E1
Example: (4–1)MUX X1 X0 Y
Block diagram 0 0 A0
0 1 A1
True table
1 0 A2
Boole function 1 1 A3
Logic circuit
12
15-Sep-20
Introduction to ICs
74157 : consist of 4 (2–1) MUX, Select AB common
control. Strobe G is CS signal
74153 : consistof 2 (4 – 1) MUX.
74151 : consistof 1 (8 – 1) MUX.
13
15-Sep-20
14
15-Sep-20
Connect MUXs
Example: connect 2 (4–1) MUX to get (8–1) MUX
15
15-Sep-20
DEMUX=DeMultiPlexer
There is 1 input
There are n control inputs
There are 2n outputs
Only one output is connected to the input at a time, the
combination of control inputs determines which output
is connected to the inputs.
E
Block diagram:
S1
C0
True table
16
15-Sep-20
Introduction to ICs
74LS155 : consist of 2 (1 – 4) DEMUX
17
15-Sep-20
Comparator
Used to compare 2 binary numbers
If we need to compare 2 binary numbers A and B
A = an-1 … a2 a1 a0 and B = bn-1 …b2 b1 b0
Comparison circuit
A B (A>B) (A<B) (A=B)
Block diagram
0 0 0 0 1
True table 0 1 0 1 0
Boole function 1 0 1 0 0
1 1 0 0 1
18
15-Sep-20
Logic circuit
19
15-Sep-20
Boole function
20
15-Sep-20
Introduction to ICs
74LS85 : comparator 2 (4 bit) numbers
Adder
HA – Half adder
Block diagram
True table
Boole function
Logic circuit
21
15-Sep-20
Adder (Cont)
FA (Full – adder)
Block diagram
True table
Boole function
Logic circuit
22
15-Sep-20
Example
23