SlideShare a Scribd company logo
Binary Adder and Subtractor
Department of Electronics and Communication Engineering,
National Engineering College,
Kovilpatti
Table of contents
Binary Adder
Half Adder
Full Adder
Binary Subtractor
Half Subtractor
Full Subtractor
Parallel Adders
Carry Look Ahead Adder
BCD Adder
Problems
Half Adder
Figure: Half Adder
I A combination circuit that performs addition of two bits
I Consists of two inputs - Augend (A) and Addend (B) and two
outputs - Sum (S) and Carry (C)
Half Adder Truth Table
Figure: Half Adder Truth Table
The corresponding Boolean expressions for Sum and Carry are,
S = AB + AB
= A ⊕ B
C = AB
Half Adder Logic Circuit
Figure: Half Adder Logic Cicuit
S = A ⊕ B
C = AB
Full Adder
Figure: Full Adder
I A combination circuit that performs addition of three bits
I Consists of three inputs - Augend (A), Addend (B) and
Carry-in (Cin) and two outputs - Sum (S) and Carry-out (Cout)
I The term full adder indicates that it can be implemented
using two half adders
Full Adder Truth Table
Figure: Full Adder Truth Table
Simplified expression for Sum and Carryout
Figure: Karnaugh maps for Sum and Carry-out
The corresponding Boolean expressions for Sum and Carry-in are obtained as
S = ABCin + ABCin + ABCin + ABCin
= Cin(AB + AB) + Cin(AB + AB)
= Cin(A ⊕ B) + Cin(A ⊕ B)
= Cin ⊕ A ⊕ B
Cout = AB + BCin + ACin
= AB + BCin(A + A) + ACin(B + B)
= AB + ABCin + ABCin + ABCin + ABCin
= AB(1 + Cin) + Cin(AB + AB)
= AB + Cin(A ⊕ B)
Full Adder Logic Circuit
Figure: Full Adder Logic Circuit
S = A ⊕ B ⊕ Cin
Cout = AB + Cin(A ⊕ B)
Full Adder Using Two Half Adders
Figure: Full Adder using two half adders
Half Subtractor
Figure: Half Subtractor
I A combination circuit that performs subtraction of two bits
I Consists of two inputs - Minuend (A) and Subtrahend (B) and
two outputs - Difference and Borrow
Half Subtractor Truth Table
Figure: Half Subtractor Truth Table
The corresponding Boolean expressions for Difference and Borrow
are,
Difference = AB + AB
= A ⊕ B
Borrow = AB
Half Subtractor Logic Circuit
Figure: Half subtractor Logic Cicuit
Difference = A ⊕ B
Borrow = AB
Full Subtractor
Figure: Full Subtractor
I A combination circuit that performs addition of three bits
I Consists of three inputs - Minuend (A), Subtrahend (B) and
Borrow-in (Bin) and two outputs - Difference (D) and
Borrow-out (Bout)
Full Subtractor
Consider the example, (010)2 - (001)2
Full Subtractor Truth Table
Figure: Full Subtractor Truth Table
Simplified expression for Difference and Borrowout
Figure: Karnaugh maps for Difference and Borrowout
The corresponding Boolean expressions for Difference and Borrowout are obtained as
D = ABBin + ABBin + ABBin + ABBin
= Bin(AB + AB) + Bin(AB + AC)
= Bin(A ⊕ B) + Bin(A ⊕ B)
= Bin ⊕ A ⊕ B
Bout = AB + ABin + BBin
= AB + ABin(B + B) + BBin(A + A)
= AB + ABBin + ABBin + ABBin + ABBin
= AB(1 + Bin) + Bin(AB + AB)
= AB + Bin(A ⊕ B)
Full Subtractor Logic Circuit
Figure: Full Subtractor Logic Circuit
Difference = A ⊕ B ⊕ Cin
Bout = AB + Bin(A ⊕ B)
Parallel Adder
Figure: Parallel Adder for Addition of n bits
I One full adder adds two bits and one carry. So for adding n
bits, we require n full adders
I A n bit parallel adder consists of n full adders connection in a
chain for adding two n bit sequences
I The output carry from each full adder is given as carry input
to the next consecutive full adder and so on.
Carry Look Ahead Adder
Figure: 4 Bit Adder
I Each full adder waits for the carry resulting from the addition of
previous bits
I ith
full adder waits for (i − 1)th
full adder to generate the carry-out
I So there is a considerable delay which is known as carry propagation
delay
I To reduce this carry propagation delay, Carry Look Ahead Logic is
implemented
Carry Look Ahead Adder
Figure: Full Adder with Pi and Gi
Pi = Ai ⊕ Bi
Gi = Ai Bi
The output sum and carry can be expressed as
Si = Pi ⊕ Ci
Ci+1 = Gi + Pi Ci
Carry Look Ahead Adder
I Gi is Carry Generate and it produces a carry of 1 if both Ai
and Bi are 1, regardless of Ci
I Pi is Carry Propagate, because it determines whether a carry
from stagei will propagate to stagei+1
I Boolean function for each output carry is given as
C0 = inputcarry
C1 = G0 + P0C0
C2 = G1 + P1C1
= G1 + P1(G0 + P0C0)
= G1 + P1G0 + P1P0C0
C3 = G2 + P2C2
= G2 + P2(G1 + P1G0 + P1P0C0)
= G2 + P2G1 + P2P1G0 + P2P1P0C0
Carry Look Ahead Adder
I Here C3 need not wait for C2
I Thus gain in speed is obtained at the expense of additional
hardware
Figure: Logic Diagram of Carry Lookahead Generator
Carry Look Ahead Adder
Figure: 4 Bit Adder with Carry Lookahead
Derivation of BCD Adder
Figure: BCD Adder
Derivation of BCD Adder
I When the binary sum exceeds 1001, 0110 is added to make it
a valid BCD sum
I From the table, it is observed that correction is added when
i Output carry K = 1
ii Other six combinations have 1 in Z8 and either Z4 & Z2
C = K + Z8Z4 + Z8Z2
I So, if C = 1, 0110 is added to the sum.
Derivation of BCD Adder
Figure: BCD Adder
Problem 1
[GATE-CS-2015] A half adder is implemented with XOR and AND
gates. A full adder is implemented with two half adders and one
OR gate. The propagation delay of an XOR gate is twice that of
an AND/OR gate. The propagation delay of an AND/OR gate is
1.2 microseconds. A 4-bit ripple-carry binary adder is implemented
by using full adders. The total propagation time of this 4-bit
binary adder in microseconds is
Problem 1
[GATE-CS-2015] A half adder is implemented with XOR and AND
gates. A full adder is implemented with two half adders and one
OR gate. The propagation delay of an XOR gate is twice that of
an AND/OR gate. The propagation delay of an AND/OR gate is
1.2 microseconds. A 4-bit ripple-carry binary adder is implemented
by using full adders. The total propagation time of this 4-bit
binary adder in microseconds is
Solution GATE-CS-2015
I Full adder consists of 2 XOR, 2 AND and 1 OR gates
I The worst case propagation delay is then,
i 4 gate-delays from generating the first carry signal (A0/B0
C1).
ii 2 gate-delays per intermediate stage (Ci Ci+1).
iii 2 gate-delays at the last stage to produce both the sum and
carry-out outputs (Cn-1 Cn and Sn-1).
I Hence the total propagation delay for a n-bit full adder is,
tp = 4 + 2(n − 2) + 2
= 2n + 2
Solution GATE-CS-2015
A half adder is implemented with XOR and AND gates. A full
adder is implemented with two half adders and one OR gate. The
propagation delay of an XOR gate is twice that of an AND/OR
gate. The propagation delay of an AND/OR gate is 1.2
microseconds. A 4-bit ripple-carry binary adder is implemented by
using full adders. The total propagation time of this 4-bit binary
adder in microseconds is
Solution GATE-CS-2015
A half adder is implemented with XOR and AND gates. A full
adder is implemented with two half adders and one OR gate. The
propagation delay of an XOR gate is twice that of an AND/OR
gate. The propagation delay of an AND/OR gate is 1.2
microseconds. A 4-bit ripple-carry binary adder is implemented by
using full adders. The total propagation time of this 4-bit binary
adder in microseconds is
Answer: 4[(2n+2)*1.2] = 19.2ms
Problem 2
[GATE-EC-2017] Figure I shows a 4-bit ripple carry adder realized using
full adders and Figure II shows the circuit of a full-adder (FA). The
propagation delay of the XOR, AND and OR gates in Figure II are 20 ns,
15 ns and 10 ns, respectively. Assume all the inputs to the 4-bit adder
are initially reset to 0.
At t = 0, the input to the 4-bit adder are changed to A3A2A1A0 = 1100,
B3B2B1B0 = 0100 and C0 = 1. The output of the ripple carry adder will
be stable at t (in ns)=
Problem 2
[GATE-EC-2017] Figure I shows a 4-bit ripple carry adder realized using
full adders and Figure II shows the circuit of a full-adder (FA). The
propagation delay of the XOR, AND and OR gates in Figure II are 20 ns,
15 ns and 10 ns, respectively. Assume all the inputs to the 4-bit adder
are initially reset to 0.
At t = 0, the input to the 4-bit adder are changed to A3A2A1A0 = 1100,
B3B2B1B0 = 0100 and C0 = 1. The output of the ripple carry adder will
be stable at t (in ns)=
Solution: Link
Problem 3
[GATE ECE 2014 Set 4] A 16-bit ripple carry adder is realized
using 16 identical full adders (FA) as shown in the figure. The
carry-propagation delay of each FA is 12 ns and the sum
propagation delay of each FA is 15 ns. The worst case delay (in ns)
of this 16-bit adder will be
Problem 3
[GATE ECE 2014 Set 4] A 16-bit ripple carry adder is realized
using 16 identical full adders (FA) as shown in the figure. The
carry-propagation delay of each FA is 12 ns and the sum
propagation delay of each FA is 15 ns. The worst case delay (in ns)
of this 16-bit adder will be
Answer: For the 1st FA, the carry propagation delay is 12 ns. So
the 2nd FA will generate its carry after 24ns. Therefore, the worst
case delay is = (15*12) + 15 = 195 ns
Thank You

More Related Content

Similar to Binary Adders.pdf

Adder and subtrctor DLD
Adder and subtrctor  DLDAdder and subtrctor  DLD
Adder and subtrctor DLD
Rokonuzzaman Rony
 
DLD Lecture No 20 Look Ahead Carry Generator, Binary Subtractors and BCD Add...
DLD Lecture No 20 Look Ahead Carry Generator, Binary Subtractors and  BCD Add...DLD Lecture No 20 Look Ahead Carry Generator, Binary Subtractors and  BCD Add...
DLD Lecture No 20 Look Ahead Carry Generator, Binary Subtractors and BCD Add...
SaveraAyub2
 
Comparison among Different Adders
Comparison among Different Adders Comparison among Different Adders
Comparison among Different Adders
iosrjce
 
Half Adder - Combinational Circuit
Half Adder - Combinational CircuitHalf Adder - Combinational Circuit
Half Adder - Combinational Circuit
DoCircuits
 
Logic System Design KTU Chapter-4.ppt
Logic System Design KTU Chapter-4.pptLogic System Design KTU Chapter-4.ppt
Logic System Design KTU Chapter-4.ppt
Albin562191
 
UNIT - II.pptx
UNIT - II.pptxUNIT - II.pptx
UNIT - II.pptx
amudhak10
 
Ece 465 project_1_report_vishesh_shravan
Ece 465 project_1_report_vishesh_shravanEce 465 project_1_report_vishesh_shravan
Ece 465 project_1_report_vishesh_shravan
Vishesh Chanana
 
combinational-circuit (1).ppt
combinational-circuit (1).pptcombinational-circuit (1).ppt
combinational-circuit (1).ppt
ThanmayiKumar
 
Digital Electronics Unit_2.pptx
Digital Electronics Unit_2.pptxDigital Electronics Unit_2.pptx
Digital Electronics Unit_2.pptx
Thapar Institute
 
Adders(half aders and full adder with explanation , truth table and circuit d...
Adders(half aders and full adder with explanation , truth table and circuit d...Adders(half aders and full adder with explanation , truth table and circuit d...
Adders(half aders and full adder with explanation , truth table and circuit d...
DHARUN MUGHILAN
 
Half adder & full adder
Half adder & full adderHalf adder & full adder
Half adder & full adder
Gaditek
 
DLD Chapter-4.pdf
DLD Chapter-4.pdfDLD Chapter-4.pdf
DLD Chapter-4.pdf
TamiratDejene1
 
COMPUTER ORGANIZATION NOTES Unit 6
COMPUTER ORGANIZATION NOTES Unit 6COMPUTER ORGANIZATION NOTES Unit 6
COMPUTER ORGANIZATION NOTES Unit 6
Dr.MAYA NAYAK
 
a technical review of efficient and high speed adders for vedic multipliers
a technical review of efficient and high speed adders for vedic multipliersa technical review of efficient and high speed adders for vedic multipliers
a technical review of efficient and high speed adders for vedic multipliers
INFOGAIN PUBLICATION
 
Logic gates
Logic gatesLogic gates
Logic gates
kajal kumari
 
Adder Basic
Adder BasicAdder Basic
Adder Basic
Rakibul Hasan
 
Binary parallel adder
Binary parallel adderBinary parallel adder
Binary parallel adder
jignesh prajapati
 
combinational-circuit (1).ppt
combinational-circuit (1).pptcombinational-circuit (1).ppt
combinational-circuit (1).ppt
Krishnavenimanickam2
 
Half & Full Adder
Half &  Full AdderHalf &  Full Adder
Half & Full Adder
Habibur Rahman
 
8 bit Multiplier Accumulator
8 bit Multiplier Accumulator8 bit Multiplier Accumulator
8 bit Multiplier Accumulator
Daksh Raj Chopra
 

Similar to Binary Adders.pdf (20)

Adder and subtrctor DLD
Adder and subtrctor  DLDAdder and subtrctor  DLD
Adder and subtrctor DLD
 
DLD Lecture No 20 Look Ahead Carry Generator, Binary Subtractors and BCD Add...
DLD Lecture No 20 Look Ahead Carry Generator, Binary Subtractors and  BCD Add...DLD Lecture No 20 Look Ahead Carry Generator, Binary Subtractors and  BCD Add...
DLD Lecture No 20 Look Ahead Carry Generator, Binary Subtractors and BCD Add...
 
Comparison among Different Adders
Comparison among Different Adders Comparison among Different Adders
Comparison among Different Adders
 
Half Adder - Combinational Circuit
Half Adder - Combinational CircuitHalf Adder - Combinational Circuit
Half Adder - Combinational Circuit
 
Logic System Design KTU Chapter-4.ppt
Logic System Design KTU Chapter-4.pptLogic System Design KTU Chapter-4.ppt
Logic System Design KTU Chapter-4.ppt
 
UNIT - II.pptx
UNIT - II.pptxUNIT - II.pptx
UNIT - II.pptx
 
Ece 465 project_1_report_vishesh_shravan
Ece 465 project_1_report_vishesh_shravanEce 465 project_1_report_vishesh_shravan
Ece 465 project_1_report_vishesh_shravan
 
combinational-circuit (1).ppt
combinational-circuit (1).pptcombinational-circuit (1).ppt
combinational-circuit (1).ppt
 
Digital Electronics Unit_2.pptx
Digital Electronics Unit_2.pptxDigital Electronics Unit_2.pptx
Digital Electronics Unit_2.pptx
 
Adders(half aders and full adder with explanation , truth table and circuit d...
Adders(half aders and full adder with explanation , truth table and circuit d...Adders(half aders and full adder with explanation , truth table and circuit d...
Adders(half aders and full adder with explanation , truth table and circuit d...
 
Half adder & full adder
Half adder & full adderHalf adder & full adder
Half adder & full adder
 
DLD Chapter-4.pdf
DLD Chapter-4.pdfDLD Chapter-4.pdf
DLD Chapter-4.pdf
 
COMPUTER ORGANIZATION NOTES Unit 6
COMPUTER ORGANIZATION NOTES Unit 6COMPUTER ORGANIZATION NOTES Unit 6
COMPUTER ORGANIZATION NOTES Unit 6
 
a technical review of efficient and high speed adders for vedic multipliers
a technical review of efficient and high speed adders for vedic multipliersa technical review of efficient and high speed adders for vedic multipliers
a technical review of efficient and high speed adders for vedic multipliers
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Adder Basic
Adder BasicAdder Basic
Adder Basic
 
Binary parallel adder
Binary parallel adderBinary parallel adder
Binary parallel adder
 
combinational-circuit (1).ppt
combinational-circuit (1).pptcombinational-circuit (1).ppt
combinational-circuit (1).ppt
 
Half & Full Adder
Half &  Full AdderHalf &  Full Adder
Half & Full Adder
 
8 bit Multiplier Accumulator
8 bit Multiplier Accumulator8 bit Multiplier Accumulator
8 bit Multiplier Accumulator
 

Recently uploaded

Recycled Concrete Aggregate in Construction Part II
Recycled Concrete Aggregate in Construction Part IIRecycled Concrete Aggregate in Construction Part II
Recycled Concrete Aggregate in Construction Part II
Aditya Rajan Patra
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
ihlasbinance2003
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
VICTOR MAESTRE RAMIREZ
 
Engine Lubrication performance System.pdf
Engine Lubrication performance System.pdfEngine Lubrication performance System.pdf
Engine Lubrication performance System.pdf
mamamaam477
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Christina Lin
 
The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.
sachin chaurasia
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
Rahul
 
Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...
bijceesjournal
 
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEMTIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
HODECEDSIET
 
CSM Cloud Service Management Presentarion
CSM Cloud Service Management PresentarionCSM Cloud Service Management Presentarion
CSM Cloud Service Management Presentarion
rpskprasana
 
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball playEric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
enizeyimana36
 
International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
gerogepatton
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
KrishnaveniKrishnara1
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
kandramariana6
 
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
171ticu
 
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
University of Maribor
 
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.pptUnit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
KrishnaveniKrishnara1
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
Victor Morales
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
Hitesh Mohapatra
 

Recently uploaded (20)

Recycled Concrete Aggregate in Construction Part II
Recycled Concrete Aggregate in Construction Part IIRecycled Concrete Aggregate in Construction Part II
Recycled Concrete Aggregate in Construction Part II
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
 
Engine Lubrication performance System.pdf
Engine Lubrication performance System.pdfEngine Lubrication performance System.pdf
Engine Lubrication performance System.pdf
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
 
The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
 
Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...
 
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEMTIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
TIME DIVISION MULTIPLEXING TECHNIQUE FOR COMMUNICATION SYSTEM
 
CSM Cloud Service Management Presentarion
CSM Cloud Service Management PresentarionCSM Cloud Service Management Presentarion
CSM Cloud Service Management Presentarion
 
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball playEric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
Eric Nizeyimana's document 2006 from gicumbi to ttc nyamata handball play
 
International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
 
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
 
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
Presentation of IEEE Slovenia CIS (Computational Intelligence Society) Chapte...
 
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.pptUnit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
 

Binary Adders.pdf

  • 1. Binary Adder and Subtractor Department of Electronics and Communication Engineering, National Engineering College, Kovilpatti
  • 2. Table of contents Binary Adder Half Adder Full Adder Binary Subtractor Half Subtractor Full Subtractor Parallel Adders Carry Look Ahead Adder BCD Adder Problems
  • 3. Half Adder Figure: Half Adder I A combination circuit that performs addition of two bits I Consists of two inputs - Augend (A) and Addend (B) and two outputs - Sum (S) and Carry (C)
  • 4. Half Adder Truth Table Figure: Half Adder Truth Table The corresponding Boolean expressions for Sum and Carry are, S = AB + AB = A ⊕ B C = AB
  • 5. Half Adder Logic Circuit Figure: Half Adder Logic Cicuit S = A ⊕ B C = AB
  • 6. Full Adder Figure: Full Adder I A combination circuit that performs addition of three bits I Consists of three inputs - Augend (A), Addend (B) and Carry-in (Cin) and two outputs - Sum (S) and Carry-out (Cout) I The term full adder indicates that it can be implemented using two half adders
  • 7. Full Adder Truth Table Figure: Full Adder Truth Table
  • 8. Simplified expression for Sum and Carryout Figure: Karnaugh maps for Sum and Carry-out The corresponding Boolean expressions for Sum and Carry-in are obtained as S = ABCin + ABCin + ABCin + ABCin = Cin(AB + AB) + Cin(AB + AB) = Cin(A ⊕ B) + Cin(A ⊕ B) = Cin ⊕ A ⊕ B Cout = AB + BCin + ACin = AB + BCin(A + A) + ACin(B + B) = AB + ABCin + ABCin + ABCin + ABCin = AB(1 + Cin) + Cin(AB + AB) = AB + Cin(A ⊕ B)
  • 9. Full Adder Logic Circuit Figure: Full Adder Logic Circuit S = A ⊕ B ⊕ Cin Cout = AB + Cin(A ⊕ B)
  • 10. Full Adder Using Two Half Adders Figure: Full Adder using two half adders
  • 11. Half Subtractor Figure: Half Subtractor I A combination circuit that performs subtraction of two bits I Consists of two inputs - Minuend (A) and Subtrahend (B) and two outputs - Difference and Borrow
  • 12. Half Subtractor Truth Table Figure: Half Subtractor Truth Table The corresponding Boolean expressions for Difference and Borrow are, Difference = AB + AB = A ⊕ B Borrow = AB
  • 13. Half Subtractor Logic Circuit Figure: Half subtractor Logic Cicuit Difference = A ⊕ B Borrow = AB
  • 14. Full Subtractor Figure: Full Subtractor I A combination circuit that performs addition of three bits I Consists of three inputs - Minuend (A), Subtrahend (B) and Borrow-in (Bin) and two outputs - Difference (D) and Borrow-out (Bout)
  • 15. Full Subtractor Consider the example, (010)2 - (001)2
  • 16. Full Subtractor Truth Table Figure: Full Subtractor Truth Table
  • 17. Simplified expression for Difference and Borrowout Figure: Karnaugh maps for Difference and Borrowout The corresponding Boolean expressions for Difference and Borrowout are obtained as D = ABBin + ABBin + ABBin + ABBin = Bin(AB + AB) + Bin(AB + AC) = Bin(A ⊕ B) + Bin(A ⊕ B) = Bin ⊕ A ⊕ B Bout = AB + ABin + BBin = AB + ABin(B + B) + BBin(A + A) = AB + ABBin + ABBin + ABBin + ABBin = AB(1 + Bin) + Bin(AB + AB) = AB + Bin(A ⊕ B)
  • 18. Full Subtractor Logic Circuit Figure: Full Subtractor Logic Circuit Difference = A ⊕ B ⊕ Cin Bout = AB + Bin(A ⊕ B)
  • 19. Parallel Adder Figure: Parallel Adder for Addition of n bits I One full adder adds two bits and one carry. So for adding n bits, we require n full adders I A n bit parallel adder consists of n full adders connection in a chain for adding two n bit sequences I The output carry from each full adder is given as carry input to the next consecutive full adder and so on.
  • 20. Carry Look Ahead Adder Figure: 4 Bit Adder I Each full adder waits for the carry resulting from the addition of previous bits I ith full adder waits for (i − 1)th full adder to generate the carry-out I So there is a considerable delay which is known as carry propagation delay I To reduce this carry propagation delay, Carry Look Ahead Logic is implemented
  • 21. Carry Look Ahead Adder Figure: Full Adder with Pi and Gi Pi = Ai ⊕ Bi Gi = Ai Bi The output sum and carry can be expressed as Si = Pi ⊕ Ci Ci+1 = Gi + Pi Ci
  • 22. Carry Look Ahead Adder I Gi is Carry Generate and it produces a carry of 1 if both Ai and Bi are 1, regardless of Ci I Pi is Carry Propagate, because it determines whether a carry from stagei will propagate to stagei+1 I Boolean function for each output carry is given as C0 = inputcarry C1 = G0 + P0C0 C2 = G1 + P1C1 = G1 + P1(G0 + P0C0) = G1 + P1G0 + P1P0C0 C3 = G2 + P2C2 = G2 + P2(G1 + P1G0 + P1P0C0) = G2 + P2G1 + P2P1G0 + P2P1P0C0
  • 23. Carry Look Ahead Adder I Here C3 need not wait for C2 I Thus gain in speed is obtained at the expense of additional hardware Figure: Logic Diagram of Carry Lookahead Generator
  • 24. Carry Look Ahead Adder Figure: 4 Bit Adder with Carry Lookahead
  • 25. Derivation of BCD Adder Figure: BCD Adder
  • 26. Derivation of BCD Adder I When the binary sum exceeds 1001, 0110 is added to make it a valid BCD sum I From the table, it is observed that correction is added when i Output carry K = 1 ii Other six combinations have 1 in Z8 and either Z4 & Z2 C = K + Z8Z4 + Z8Z2 I So, if C = 1, 0110 is added to the sum.
  • 27. Derivation of BCD Adder Figure: BCD Adder
  • 28. Problem 1 [GATE-CS-2015] A half adder is implemented with XOR and AND gates. A full adder is implemented with two half adders and one OR gate. The propagation delay of an XOR gate is twice that of an AND/OR gate. The propagation delay of an AND/OR gate is 1.2 microseconds. A 4-bit ripple-carry binary adder is implemented by using full adders. The total propagation time of this 4-bit binary adder in microseconds is
  • 29. Problem 1 [GATE-CS-2015] A half adder is implemented with XOR and AND gates. A full adder is implemented with two half adders and one OR gate. The propagation delay of an XOR gate is twice that of an AND/OR gate. The propagation delay of an AND/OR gate is 1.2 microseconds. A 4-bit ripple-carry binary adder is implemented by using full adders. The total propagation time of this 4-bit binary adder in microseconds is
  • 30. Solution GATE-CS-2015 I Full adder consists of 2 XOR, 2 AND and 1 OR gates I The worst case propagation delay is then, i 4 gate-delays from generating the first carry signal (A0/B0 C1). ii 2 gate-delays per intermediate stage (Ci Ci+1). iii 2 gate-delays at the last stage to produce both the sum and carry-out outputs (Cn-1 Cn and Sn-1). I Hence the total propagation delay for a n-bit full adder is, tp = 4 + 2(n − 2) + 2 = 2n + 2
  • 31. Solution GATE-CS-2015 A half adder is implemented with XOR and AND gates. A full adder is implemented with two half adders and one OR gate. The propagation delay of an XOR gate is twice that of an AND/OR gate. The propagation delay of an AND/OR gate is 1.2 microseconds. A 4-bit ripple-carry binary adder is implemented by using full adders. The total propagation time of this 4-bit binary adder in microseconds is
  • 32. Solution GATE-CS-2015 A half adder is implemented with XOR and AND gates. A full adder is implemented with two half adders and one OR gate. The propagation delay of an XOR gate is twice that of an AND/OR gate. The propagation delay of an AND/OR gate is 1.2 microseconds. A 4-bit ripple-carry binary adder is implemented by using full adders. The total propagation time of this 4-bit binary adder in microseconds is Answer: 4[(2n+2)*1.2] = 19.2ms
  • 33. Problem 2 [GATE-EC-2017] Figure I shows a 4-bit ripple carry adder realized using full adders and Figure II shows the circuit of a full-adder (FA). The propagation delay of the XOR, AND and OR gates in Figure II are 20 ns, 15 ns and 10 ns, respectively. Assume all the inputs to the 4-bit adder are initially reset to 0. At t = 0, the input to the 4-bit adder are changed to A3A2A1A0 = 1100, B3B2B1B0 = 0100 and C0 = 1. The output of the ripple carry adder will be stable at t (in ns)=
  • 34. Problem 2 [GATE-EC-2017] Figure I shows a 4-bit ripple carry adder realized using full adders and Figure II shows the circuit of a full-adder (FA). The propagation delay of the XOR, AND and OR gates in Figure II are 20 ns, 15 ns and 10 ns, respectively. Assume all the inputs to the 4-bit adder are initially reset to 0. At t = 0, the input to the 4-bit adder are changed to A3A2A1A0 = 1100, B3B2B1B0 = 0100 and C0 = 1. The output of the ripple carry adder will be stable at t (in ns)= Solution: Link
  • 35. Problem 3 [GATE ECE 2014 Set 4] A 16-bit ripple carry adder is realized using 16 identical full adders (FA) as shown in the figure. The carry-propagation delay of each FA is 12 ns and the sum propagation delay of each FA is 15 ns. The worst case delay (in ns) of this 16-bit adder will be
  • 36. Problem 3 [GATE ECE 2014 Set 4] A 16-bit ripple carry adder is realized using 16 identical full adders (FA) as shown in the figure. The carry-propagation delay of each FA is 12 ns and the sum propagation delay of each FA is 15 ns. The worst case delay (in ns) of this 16-bit adder will be Answer: For the 1st FA, the carry propagation delay is 12 ns. So the 2nd FA will generate its carry after 24ns. Therefore, the worst case delay is = (15*12) + 15 = 195 ns