Dsd Module-3 Ppt
Dsd Module-3 Ppt
Sequential circuit:
comprises both logic gates and the state
of storage elements such as flip-flops.
The output of a sequential circuit
depends not only on present value of
inputs but also on past state of inputs.
ECE2003 – DIGITAL LOGIC DESIGN 4
INTRODUCTION TO
COMBINATIONAL LOGIC
A combinational circuit consists of input
variables, logic gates, and output variables.
LOGIC DIAGRAM
Inputs Outputs
Sum Carry
A B Cin
(S) (Cout)
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
LOGIC DIAGRAM 1 1 1 1 1
TRUTH TABLE
MODULE- 4 ECE2003 – DIGITAL LOGIC DESIGN 37
BINARY ADDER
FULL ADDER
K-MAP
Input Output
Difference Borrow
A B
(D) (Bout)
0 0 0 0
0 1 1 1
1 0 1 0
1 1 0 0
MODULE- 4 ECE2003 – DIGITAL LOGIC DESIGN 45
BINARY SUBTRACTOR
HALF SUBTRACTOR
K-map simplification for half Subtractor:
Inputs Outputs
Difference(D Borrow(Bout
A B Bin
) )
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
Truth Table
MODULE- 4 ECE2003 – DIGITAL LOGIC DESIGN 51
BINARY SUBTRACTOR
FULL SUBTRACTOR
K-map simplification for full Subtractor:
K-Map Simplification
Logic Diagram
MODULE- 4 ECE2003 – DIGITAL LOGIC DESIGN 130
MAGNITUDE COMPARATOR
4-Bit Magnitude Comparator
Let us consider the two binary numbers A
and B with four digits each. Write the
coefficient of the numbers in descending
order as,
A = A3A2A1A0
B = B 3 B2 B1 B0
Xi = Ai Bi + Ai ′ Bi ′ for i =
0, 1, 2, 3
Or, Xi = (A B)′ Or, Xi ′ = A B
Or, Xi = (Ai Bi ′ + Ai ′Bi )′
Logic diagram of 4-
Bit magnitude
comparator
Block diagram of
8-Bit magnitude
comparator
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
Parity generator truth table for
MODULE- 4
even and odd parity
ECE2003 – DIGITAL LOGIC DESIGN 141
PARITY GENERATOR
If the message bit combination is
designated as A, B, C and Pe, Po are the
even and odd parity respectively, then it is
obvious from table that the boolean
expressions of even parity and odd parity
are
Pe = (A B C) and Po = (A B
C)′
0 0 0 0 0
0 0 0 1 1
0 0 1 0 1
0 0 1 1 0
0 1 0 0 1
0 1 0 1 0
0 1 1 0 0
0 1 1 1 1
1 0 0 0 1
1 0 0 1 0
1 0 1 0 0
1 0 1 1 1
1 1 0 0 0
1 1 0 1 1
1 1 1 0 1
1 1 1 1 0
Parity checker truth table for
MODULE- 4 ECE2003 – DIGITAL LOGIC DESIGN 145
PARITY CHECKER
Truth table
MODULE- 4 ECE2003 – DIGITAL LOGIC DESIGN 154
MULTIPLEXERS
4:1 MUX
The data output is equal to I0 only if S1= 0 and
S0= 0; Y= I0S1’S0’.
Transmission from
MODULE- 4 ECE2003 – the computer
DIGITAL LOGIC DESIGN system of a 159
MULTIPLEXERS
MULTIPLEXERS TREE
It is possible to expand the range of input
for multiplexer beyond the available range
in the integrated circuits.
Implementation table
Truth table
Mux implementation
MODULE- 4 ECE2003 – DIGITAL LOGIC DESIGN 168
MULTIPLEXERS
Implementation of boolean function using MUX
Din S1 S0 Y0 Y1 Y2 Y3
0 0 0 0 0 0 0
1 0 0 1 0 0 0
0 0 1 0 0 0 0
1 0 1 0 1 0 0
0 1 0 0 0 0 0
1 1 0 0 0 1 0
0 1 1 0 0 0 0
1 1 1 0 0 0 1
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 1 0 0 0 0 0 0 0
MODULE-4 ECE2003 – DIGITAL LOGIC DESIGN 179
DEMULTIPLEXERS
1:8 DEMUX
From the above truth table, it is clear that
the data input is connected with one of the
eight outputs based on the select inputs.
Inputs Output
s
A B C Y
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 0
MODULE-4 ECE2003 – DIGITAL LOGIC DESIGN 184
DEMULTIPLEXERS
IMPLEMENTATION OF BOOLEAN EXPRESSION USING DEMUX
Inputs Outputs
Difference( Borrow(Bou
A B Bin
D) t)
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
Inputs Outputs
Enable A B Y3 Y2 Y1 Y0
0 x x 0 0 0 0
1 0 0 0 0 0 1
1 0 1 0 0 1 0
1 1 0 0 1 0 0
1 1 1 1 0 0 0
Truth table
Logic Diagram
MODULE-4 ECE2003 – DIGITAL LOGIC DESIGN 193
DECODERS
3 : 8 Decoders
A 3-to-8 line decoder has three inputs (A, B,
C) and eight outputs (Y0- Y7). Based on the 3
inputs one of the eight outputs is selected.
Inputs Outputs
A B C Y0 Y1 Y2 Y3 Y4 Y5 Y6 Y7
0 0 0 1 0 0 0 0 0 0 0
0 0 1 0 1 0 0 0 0 0 0
0 1 0 0 0 1 0 0 0 0 0
0 1 1 0 0 0 1 0 0 0 0
1 0 0 0 0 0 0 1 0 0 0
1 0 1 0 0 0 0 0 1 0 0
1 1 0 0 0 0 0 0 0 1 0
1 1 1 0 0 0 0 0 0 0 1
Truth table
Logic Diagram
MODULE-4 ECE2003 – DIGITAL LOGIC DESIGN 196
DECODERS
Applications
Instruction decoder is the part of the CPU