Unit 2 Circuit
Unit 2 Circuit
HALF
ADDER
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
Full Adder
A Full Adder is an improved version of a half adder that adds three binary inputs:
• A (First bit)
• B (Second bit)
D C I T , H N G U , P A T A N 2 0 2 5 1 | 12
• Cin (Carry from previous addition)
It produces two outputs:
• Sum (S)
• Carry Out (Cout)
Full Adder Circuit Diagram
FULL
ADDER
D C I T , H N G U , P A T A N 2 0 2 5 2 | 12
✓ Handles carry input, making it useful for multi-bit addition.
✓ Used in arithmetic logic units (ALUs) and microprocessors.
Half Adder vs Full Adder
R R
Q
C
S Q
S
SR Latch using NOR Gates
0 X X No Change No Change
1 0 0 No Change No Change
1 0 1 0 1
1 1 0 1 0
D C I T , H N G U , P A T A N 2 0 2 5 4 | 12
C(control) S (Set) R (Reset) Q (Output) Q̅ (Complement)
1 1 1 Invalid Invalid
• If S = 1, R = 0, Q is set to 1.
• If S = 0, R = 1, Q is reset to 0.
• If S = 0, R = 0, Q holds the previous state.
• If S = 1, R = 1, it's an invalid state.
SR Latch using NAND Gates
It works similarly, but the Invalid state (S=1, R=1) is replaced with a stable state (Q=0, Q̅=1).
0 X No Change
1 0 0
1 1 1
• If E = 1, Q follows D.
• If E = 0, Q holds its previous state.
D C I T , H N G U , P A T A N 2 0 2 5 5 | 12
• Flip-Flops are edge-triggered
2. Flip-Flop
A flip-flop is an edge-triggered bistable device, meaning it changes output only on the rising edge or
falling edge of a clock pulse.
Types of Flip-Flops:
1. SR Flip-Flop
2. D Flip-Flop
3. JK Flip-Flop
(A) SR Flip-Flop
An SR Flip-Flop is similar to an SR Latch but is clock-controlled, meaning it only updates its output
at the clock edge.
↑ 0 0 No Change
↑ 0 1 0
↑ 1 0 1
↑ 1 1 Invalid
(B) D Flip-Flop
D C I T , H N G U , P A T A N 2 0 2 5 6 | 12
A D Flip-Flop eliminates the invalid state of an SR Flip-Flop by ensuring D = S and D̅ = R.
↑ 0 0
↑ 1 1
(C) JK Flip-Flop
A JK Flip-Flop removes the invalid state of an SR Flip-Flop by allowing both J = 1 and K = 1 to
toggle the output.
↑ 0 0 No Change
↑ 0 1 0
↑ 1 0 1
↑ 1 1 Toggle
D C I T , H N G U , P A T A N 2 0 2 5 7 | 12
Differences Between Latch and Flip-Flop
D C I T , H N G U , P A T A N 2 0 2 5 8 | 12
Integrated Circuits: Decoder, Multiplexer, and Demultiplexer
Introduction
Integrated Circuits (ICs) are small electronic circuits built on a semiconductor chip. In digital
electronics, three important ICs are:
1. Decoder – Converts binary input into a unique output.
2. Multiplexer (MUX) – Selects one input from multiple inputs and forwards it to the output.
3. Demultiplexer (DEMUX) – Takes a single input and sends it to one of the many outputs.
These ICs are widely used in computers, communication systems, and digital applications.
1. Decoder
Definition
A decoder is a combinational circuit that takes an n-bit binary input and activates one of its 2^n
output lines. It is mainly used in memory address decoding, display drivers, and instruction
decoding in microprocessors.
Circuit Diagram of a 2-to-4 Decoder
A1 A0 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
Working
• The input combination determines which one output line is activated.
• Example: If input is A1=1, A0=0, then Y2=1, and all others are 0.
D C I T , H N G U , P A T A N 2 0 2 5 9 | 12
Applications
• Used in memory address decoding.
• Drives seven-segment displays.
• Used in instruction decoding in CPUs.
2. Multiplexer (MUX)
A multiplexer (MUX) is a circuit that selects one input from multiple inputs based on select lines
and sends it to the output. It is also called a data selector.
A multiplexer, often abbreviated as "MUX," is a device or circuit used in electronics and digital
systems to select one of several input signals and forward it to a single output line.
A multiplexer is a combinational logic circuit with multiple input lines, a single output line, and a set
of control lines (also called select lines).
The control lines determine which one of the input signals is routed to the output. Think of it as a
traffic controller that picks one "road" (input) out of many and directs its "traffic" (data) to a single
destination (output).
• Inputs: These are the multiple data lines feeding into the multiplexer. The number of inputs is
typically a power of 2 (e.g., 2, 4, 8, 16), denoted as 2n2^n2n, where nnn is the number of
select lines.
• Select Lines: These are control inputs that specify which input is chosen. The number of
select lines (nnn) determines how many inputs (2n2^n2n) the multiplexer can handle. For
example, 1 select line can choose between 2 inputs, 2 select lines can choose between 4
inputs, and so on.
• Output: The single line where the selected input is sent.
1. 2-to-1 Multiplexer
2. 4-to-1 Multiplexer
3. 8-to-1 Multiplexer
4. 16-to-1 Multiplexer
Working
• The select lines (S1, S0) determine which input (I0 to I3) is sent to the output.
D C I T , H N G U , P A T A N 2 0 2 5 10 | 12
• Example: If S1=1, S0=0, the output will be I2.
Applications
• Used in data routing in communication systems.
• Helps in switching and signal transmission.
• Used in ALUs for selecting operations.
3. Demultiplexer (DEMUX)
Definition
A demultiplexer (DEMUX) is a circuit that takes a single input and routes it to one of multiple
outputs based on select lines.
Circuit Diagram of a 1-to-4 Demultiplexer
Working
• The select lines (S1, S0) determine which output line receives the input value.
• Example: If S1=1, S0=0, input is sent to Y2.
Applications
• Used in communication systems to send data to different locations.
• Helps in data distribution in multiplexed networks.
• Used in memory and register operations.
Conclusion
MUX Selects one input from multiple inputs 74LS151 (8-to-1 MUX)
D C I T , H N G U , P A T A N 2 0 2 5 11 | 12
Circuit Type Function Example IC
These circuits are essential in digital systems, computers, and communication networks, making
data transfer and processing more efficient.
D C I T , H N G U , P A T A N 2 0 2 5 12 | 12