Chap 3 Combinational Logic Circuits
Chap 3 Combinational Logic Circuits
A1 Y1
A2 Y2
Combinational circuit
An Ym
Steps to be followed
1. For each term in given logical expression, find the
missing literal
2. AND each term with the term formed by ORing the
missing literal and its complement
3. Simplify the expression to get standard SOP form
Conversion of logical expression to
Standard SOP forms continued
Convert Y = AB + AC’ + BC to Standard SOP
Y = AB + AC’ + BC
Missing literals C B A
Y = AB(C+C’)+AC’(B+B’)+BC(A+A’)
= ABC+ABC’+ABC’+AB’C’+ABC+A’BC
= ABC+ABC’+AB’C’+A’BC
Conversion of logical expression to
Standard SOP forms continued
Convert Y = A’ + BCD’ to Standard SOP
Y = A’ + BCD’
Missing literals C A B
Y = (A’+B+CC’).(B+C’+AA’).(A’+C’+BB’)
= (A’+B+C)(A’+B+C’)(A+B+C’)(A’+B+C’)
(A’+B+C’)(A’+B’+C’)
= (A’+B+C)(A’+B+C’)(A+B+C’)(A’+B’+C’)
• There is a complementary relationship between the functions
expressed in terms of minterms and maxterms
Concept of minterm and maxterm
• Each individual term in standard SOP form is called as
minterm. Each minterm is denoted by mi.
• Each individual term in standard POS form is called as
maxterm. Each maxterm is denoted by Mi.
• Minterms are obtained by applying the inputs to AND
gate to obtain high (logical 1) output
• Maxterms are obtained by applying the inputs to OR
gate to obtain low (logical 0) output
• For n variables, number of minterms or maxterms is 2n
minterms and maxterms for 3 variables
Inputs Output
A B Y
0 0 0
0 1 1
1 0 1
1 1 0
3 variable K-map
Inputs Output
A B C Y
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 0
1 0 0 0
1 0 1 0
1 1 0 1
1 1 1 1
4 variable K-map
Inputs Output
A B C D Y
0 0 0 0 0
0 0 0 1 0
0 0 1 0 1
0 0 1 1 1
0 1 0 0 1
0 1 0 1 0
0 1 1 0 0
0 1 1 1 0
1 0 0 0 0
1 0 0 1 1
1 0 1 0 1
1 0 1 1 1
1 1 0 0 0
1 1 0 1 0
1 1 1 0 0
1 1 1 1 1
K-map simplification (SOP)
• K- map contains pairs, quads & octets
• 1’s that are horizontally/vertically adjacent form a pair. In
pair only one variable goes from complemented to
uncomplemented form. Other variable doesn’t change.
We can eliminate the variable that changes the form
• Quad is a group of four 1’s that are horizontally/vertically
adjacent. Quad eliminates two variables and their
complements
• Octet is a group of eight 1’s. It eliminates three variables
and their complements
K-map simplification continued
•After drawing k-map encircle octets first, then
quads, then pairs, check if any 1 is yet to be
encircled (encircle isolated 1’s)
•You can use same 1 more than once (overlapping
groups)
K-map simplification continued
•If the map is rolled such that left side touches the right
side/top touches the bottom 1’s on the edge of k-map can
be grouped with 1’s on opposite edge
•Redundant groups should be eliminated (redundant group
is a group whose all 1’s are already used by other groups
•Write Boolean equation by Oring products corresponding
to encircled groups
K-map simplification continued
Minimize following Boolean expression using k map. Draw
logic diagram of minimized expression using logic gates
Y = ∑m(1,3,5,7,8,10,14)
Don’t care condition
• In some digital circuits certain input conditions never occur
during normal operation, therefore corresponding output never
appears. Hence it is indicated by x in the truth table
• This x is called as don’t care condition
• It can be considered as 0 or 1 whichever produces simpler
logic circuit
In case of don’t care conditions
• Draw k map with 0’s, 1’s, don’t cares from given truth table
• Encircle actual 1’s on k map in largest group by treating don’t
cares as 1’s
• After including actual 1’s in groups,disregard remaining don’t
cares by visualizing them as 0’s
Don’t care condition continued
Inputs Output
A B C D Y
0 0 0 0 0
0 0 0 1 1
0 0 1 0 1
0 0 1 1 0
0 1 0 0 0
0 1 0 1 1
0 1 1 0 1
0 1 1 1 0
1 0 0 0 0
1 0 0 1 1
1 0 1 0 X
1 0 1 1 X
1 1 0 0 X
1 1 0 1 X
1 1 1 0 X
1 1 1 1 X
K-map simplification (POS)
• We can easily convert a truth table to k-map and k-map to
standard POS expression.
• Minimize following expression using k map and realize using
NOR gates F(A,B,C,D) = ∏M(0,1,5,10,11,13,14,15)
Half adder
A combinational circuit that performs addition of two
single bits is called a half adder. It has two inputs A & B
and two outputs sum(S) &carry(C)
Truth table of half adder
A Sum Inputs outputs
H.A.
B Carry
A B Sum(S) Carry(C)
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
Half adder continued
From truth table we can draw From the Boolean equations
K maps for half adder obtained, half adder can be
implemented using EX-OR
gate & AND gate
Half adder continued
Half adder using basic gates Half adder using universal gates
Full adder
A combinational circuit that performs addition of two single bits
along with carry generated from lower order bits is called as full
adder. It has three inputs A ,B & Cin and two outputs sum(S)
&carry(C)
A S
B FA
Cin C
Full adder continued
Truth table of full adder
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
Full adder continued
Full adder using basic gates Full adder using universal gates
Full adder continued
Half subtractor using basic gates Half subtractor using universal gates
Full subtractor
A combinational circuit that performs subtraction of two
single bits along with borrow from previous bit is called
as full subtractor. It has three inputs A ,B & Bin and two
outputs Difference(D) & Borrow(Bout)
A D
B F.S.
Bin Bout
Full subtractor continued
Truth table for full subtractor
Inputs Outputs
A B Bin Difference Borrow
(D) (Bout)
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
Full subtractor continued
0 0 0 0 0 0 0 0 0
Binary Gray 1 0 0 0 1 0 0 0 1
inputs outputs 2 0 0 1 0 0 0 1 1
B3 G3 3 0 0 1 1 0 0 1 0
B2 Bonary to G2 4 0 1 0 0 0 1 1 0
B1 Gray converter G1 5 0 1 0 1 0 1 1 1
B0 G0
6 0 1 1 0 0 1 0 1
7 0 1 1 1 0 1 0 0
8 1 0 0 0 1 1 0 0
9 1 0 0 1 1 1 0 1
1010 binary number 10 1 0 1 0 1 1 1 1
Gray Binary 1 0 0 0 1 0 0 0 1
inputs outputs 3 0 0 1 1 0 0 1 0
G3 B3 2 0 0 1 0 0 0 1 1
G2 Gray to Binary B2 6 0 1 1 0 0 1 0 0
G1 converter B1 7 0 1 1 1 0 1 0 1
G0 B0 5 0 1 0 1 0 1 1 0
4 0 1 0 0 0 1 1 1
12 1 1 0 0 1 0 0 0
13 1 1 0 1 1 0 0 1
15 1 1 1 1 1 0 1 0
1101 gray number 14 1 1 1 0 1 0 1 1
1001 binary number 10 1 0 1 0 1 1 0 0
11 1 0 1 1 1 1 0 1
9 1 0 0 1 1 1 1 0
8 1 0 0 0 1 1 1 1
Gray to Binary converter continued
B2 = G3’G2 + G3G2’
B3 = G3
The outputs :
Y0 = S1’S0’D
Y1 = S1’S0D
Y2 = S1S0’D
Y3 = S1S0D
can be implemented using
basic gates or universal
gates
1 : 8 Demultiplexer
1:8 demux has 1 data input line, 3 select inputs,8output lines and a
strobe/enable input
Truth table
Select inputs outputs
S2 S1 S0 Y0 Y1 Y2 Y3 Y4 Y5 Y6 Y7
0 0 0 D
0 0 1 D
0 1 0 D
0 1 1 D
1 0 0 D
1 0 1 D
1 1 0 D
1 1 1 D
1 : 8 Demultiplexer continued
The outputs of 1:8 demux are
as follows
Y0 = S2’S1’S0’D
Y1= S2’S1’S0D
Y2 = S2’S1S0’D
Y3 = S2’S1S0D
Y4 = S2S1’S0’D
Y5 = S2S1’S0D
Y6 = S2S1S0’D
Y7 = S2S1S0D7
1:8 demux can be
implemented using basic gates
as well as universal gates
1 : 16 Demultiplexer
1:16 demux has 1 data input line, 4 select inputs, 16 output lines and a
strobe/enable input
The outputs are as follows
Y0 = S3’S2’S1’S0’D
Y1 = S3’S2’S1’S0D
Y2 = S3’S2’S1S0’D
Y3 = S3’S2’S1S0D
Y4 = S3’S2S1’S0’D
Y5 = S3’S2S1’S0D
Y6 = S3’S2S1S0’D
Y7 = S3’S2S1S0D
Y8 = S3S2’S1’S0’D
Y9 = S3S2’S1’S0D
Y10 = S3S2’S1S0’D
Y11 = S3S2’S1S0D
Y12 = S3S2S1’S0’D
Y13 = S3S2S1’S0D
Y14 = S3S2S1S0’D
Y15 = S3S2S1S0D15
Demultiplexer IC
• Dual 1:4 demux with common select
inputs, separate enable inputs
• Each demux has active low outputs
• Both demux have two input enable
gate
• Decoder a enable gate requires one
active high input & one active low
input
Ea, Ea’ : enable a
• Decoder b enable gate requires two
A1, A0 : select inputs active low inputs
0a’-3a’ : output of mux1
0b’-3b’ : output of mux2
Eb’,Eb’ : enable b
Demultiplexer tree
Similar to multiplexer tree we can construct demux tree i.e.
demultiplexer with more number of outputs can be obtained by
cascading two or more demultiplexers with less number of outputs
1:64 Demux using 1:16 Demux
Truth table
Logic diagram
BCD to 7 segment Decoder continued
• 7 segment display is popular display device in digital systems
• To display data using 7 segment display, available BCD data
should be converted to 7 segment code
• MSI chip is available for this conversion
• BCD to 7 segment decoder/driver has 4 input lines and 7
output lines
• It accepts 4 bit BCD input and converts it to 7 bit code suitable
for 7 segment display
• Output lines a through g of decoder are connected to a through
g terminals of 7 segment display respectively
• Outputs of decoder are active high/active low
BCD to 7 segment Decoder
BCD to 7 segment Decoder continued
• For active low outputs
common anode 7
segment display is used
• For active high outputs
common cathode 7
segment display is used
• IC 7447 has active low
outputs
• IC 7448 has active high
outputs
IC 7447/7448
Both ICs have lamp test
(LT),ripple blanking input
(RBI), ripple blanking
output (RBO) and blanking
input (BI) facilities
Tristate Buffers
• Tristate buffer is a circuit which
connects or isolates its input from its
output. i. e. it controls flow of signal
from input to output
• Tristate buffers are of two types
– Inverting buffers
– Non inverting buffers
• Tristate buffers are used where several
signals are simultaneously connected
to a common bus
• Here signals A, B, C are connected to
a common bus via tristate buffers
Tristate Buffers continued