DSD Module3
DSD Module3
D7 D6 D5 D4 D3 D2 D1 D0 Q2 Q1 Q0 Priority
Encoder
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
Digital Inputs Binary Output
D7 D6 D5 D4 D3 D2 D1 D0 Q2 Q1 Q0 Priority Encoder
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
Priority Encoder
Priority Encoder Applications
• Keyboard Encoder
– only one key would be pressed either “HIGH” or “LOW” at any
one time
• Positional Encoders
– magnetic positional control as used on ships navigation
– for robotic arm positioning
• Interrupt Requests
– For detecting interrupts in microprocessor applications.
– The microprocessor uses interrupts to allow peripheral devices
such as the disk drive, scanner, mouse, or printer etc, to
communicate with it, but the microprocessor can only “talk” to
one peripheral device at a time.
– The processor does this by assigning priority to all the
peripheral devices to ensure that the most important peripheral
device is serviced first.
Decoder
• Convert digital signal to an analogue signal
• Allows single input line and produces multiple
output lines.
• Has N input lines and 2N output lines
3 to 23 Decoder
X Y Z D0 D1 D2 D3 D4 D5 D6 D7
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
3 to 23
X Y Z D0 D1 D2 D3 D4 D5 D6 D7 Decoder
0 0 0 1 0 0 0 0 0 0 0 • D0 = X’ Y’ Z’
0 0 1 0 1 0 0 0 0 0 0 • D1 = X’ Y’ Z
• D2 = X’ Y Z’
0 1 0 0 0 1 0 0 0 0 0
• D3 = X’ Y Z
0 1 1 0 0 0 1 0 0 0 0
• D4 = X Y’ Z’
1 0 0 0 0 0 0 1 0 0 0 • D5 = X Y’ Z
1 0 1 0 0 0 0 0 1 0 0 • D6 = X Y Z’
1 1 0 0 0 0 0 0 0 1 0 • D7 = X Y Z
1 1 1 0 0 0 0 0 0 0 1
Decoder
• D0 = X’ Y’ Z’
• D1 = X’ Y’ Z
• D2 = X’ Y Z’
• D3 = X’ Y Z
• D4 = X Y’ Z’
• D5 = X Y’ Z
• D6 = X Y Z’
• D7 = X Y Z
Multiplexer
• MUX - several inputs but provide a single
output.
• multiplexer acts as data selector
Multiplexer
Applications
Multiplexers are used in various applications wherein multiple-
data need to be transmitted by using single line.
MUX & DEMUX
Telephony Multiplexer System
MUX & DEMUX Applications
MUX & DEMUX Applications
MUX Applications
4-to-1 Channel
Multiplexer
4-to-1 Channel Multiplexer
4-to-1 Channel
Multiplexer
4-to-2 Channel Multiplexer
Adjustable Amplifier Gain
Applications of Multiplexer
• Multiplexer are used in various fields where multiple data need to be transmitted
using a single line. Following are some of the applications of multiplexers –
• Communication system – Communication system is a set of system that enable
communication like transmission system, relay and tributary station, and
communication network. The efficiency of communication system can be
increased considerably using multiplexer. Multiplexer allow the process of
transmitting different type of data such as audio, video at the same time using a
single transmission line.
• Telephone network – In telephone network, multiple audio signals are integrated
on a single line for transmission with the help of multiplexers. In this way, multiple
audio signals can be isolated and eventually, the desire audio signals reach the
intended recipients.
• Computer memory – Multiplexers are used to implement huge amount of
memory into the computer, at the same time reduces the number of copper lines
required to connect the memory to other parts of the computer circuit.
• Transmission from the computer system of a satellite – Multiplexer can be used
for the transmission of data signals from the computer system of a satellite or
spacecraft to the ground system using the GPS (Global Positioning System)
satellites.
De Multiplexer
• DEMUX - reverses the operation of MUX.
• Single input but transmits the data to multiple
outputs.
• Demultiplexer acts as a data distributor.
1-to-4 De Multiplexer
1-to-4 De multiplexer
0 0 A
0 1 B
1 0 C
1 1 D
1-to-4 De
multiplexer
Digitally Adjustable Amplifier Gain
De Multiplexer and Decoder
• De multiplexer - accepts only one input and
directs it into one of the several outputs.
• Decoder - accept many inputs and generate
the decoded output.
De Multiplexer and Decoder
ADDER USING MUX
IC 74153 - Dual 4-input multiplexer
HALF ADDER USING MUX IC 74153
HALF ADDER USING MUX
FULL ADDER USING MUX IC 74153
FULL ADDER TRUTH TABLE
Ripple Carry Adder/N-Bit Parallel
Adder
• To add together two n-bit numbers, n number
of 1-bit full adders are “cascaded” together to
produce a Ripple Carry Adder.
• A “ripple carry adder” is simply “n“, 1-bit full
adders cascaded together.
4-bit Ripple Carry Adder
Disadvantage of Ripple Carry Adder
One main disadvantage of “cascading” together
1-bit binary adders to add large binary numbers
is :
• MSB of the sum has to wait for any changes
from the carry input of the LSB
• This unwanted delay time is
called Propagation delay
Carry Look Ahead Binary Adder
• Generates the carry-input signals directly
from the A and B inputs rather than using
the ripple arrangement above.
• The speed of the parallel adder can be
greatly improved using carry-look ahead
logic.
Carry look ahead adders - Advantage
• Length of time a carry look ahead adder needs
to produce the SUM is independent of the
number of data bits.
Carry Look-ahead Adder
• Carry look-ahead adder reduces the
propagation delay by introducing more
complex hardware.
• Ripple carry design is suitably transformed
such that the carry logic over fixed groups of
bits of the adder is reduced to two-level logic.
4-Bit Carry Look Ahead Adder
• Consider two 4-bit binary numbers
A3A2A1A0 and B3B2B1B0 are to be added.
• Mathematically, the two numbers will be
added as-
C1 = C0 (A0 ⊕ B0) + A0B0
C2 = C1 (A1 ⊕ B1) + A1B1
C3 = C2 (A2 ⊕ B2) + A2B2
C4 = C3 (A3 ⊕ B3) + A3B3
• If A3 = 1 and B3 = 0
• If A3 = B3 and A2 = 1 and B2 = 0
• If A3 = B3, A2 = B2 and A1 = 1 and B1 = 0
• If A3 = B3, A2 = B2, A1 = B1 and A0 = 1 and B0 = 0
A<B
Similarly the condition for A<B can be possible in
the following four cases:
• If A3 = 0 and B3 = 1
• If A3 = B3 and A2 = 0 and B2 = 1
• If A3 = B3, A2 = B2 and A1 = 0 and B1 = 1
• If A3 = B3, A2 = B2, A1 = B1 and A0 = 0 and B0 = 1
A=B
• The condition of A=B is possible only when all
the individual bits of one number exactly
coincide with corresponding bits of another
number.
4 Bit Magnitude Comparator
Applications of Comparators
• Used in central processing units (CPUs) and
microcontrollers (MCUs).
• These are used in control applications in which
the binary numbers representing physical
variables such as temperature, position, etc. are
compared with a reference value.
• Comparators are also used as process controllers
and for Servo motor control.
• Used in password verification and biometric
applications.
IC7483
• https://www.electronicshub.org/carry-look-
ahead-adder/
• http://www.eng.ucy.ac.cy/theocharides/Cours
es/ECE210/Carrylookahead_supp4.pdf
Code converter
• Code converter is used to convert one type of
binary code to another.
• There are different types of binary codes like
BCD code, gray code, excess-3 code, etc. ...
• To get the required code from any one type
of code, the simple code conversion process is
done with the help of combinational circuits.
BCD to Excess-3 code converter
From the truth table, the minterms are obtained for each outputs(E3, E2, E1, E0).
E3 = ∑m(5, 6, 7, 8, 9), E2 = ∑m(1, 2, 3, 4, 9), E1 = ∑m(0, 3, 4, 7, 8), E0 = ∑m(0, 2, 4, 6, 8,)
BCD to Excess-3 code converter
From the truth table, the minterms are obtained for each outputs(E3, E2, E1, E0).
E3 = ∑m(5, 6, 7, 8, 9), E2 = ∑m(1, 2, 3, 4, 9), E1 = ∑m(0, 3, 4, 7, 8), E0 = ∑m(0, 2, 4, 6, 8,)
BCD to
Excess-3
code
converter
BCD to
Excess-3
code
converter
BCD to Gray code converter
Binary to Gray Conversion
BCD to Gray code converter
BCD to
Gray code
converter
BCD to
Gray code
converter
BCD to Gray code converter – Using Ex-OR
gates
Gray
Code to
Binary
Gray Code to Binary
Gray to Binary Conversion
K-map for b0 & b0
K-map for b2 & b3
Gray Code to Binary
Gray Code to Binary
CAT I Syllabus
Module 1 – Digital Logic:
• Except Logic Families
Module 3 – Design of combinational logic circuits:
• Except Modeling of combinational logic circuits
using verilog HDL
Module 4 – Design of data path circuits:
• Except Booth multiplier and Modeling of data
path circuits using verilog HDL