SlideShare a Scribd company logo
1 of 37
Download to read offline
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

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 CircuitDoCircuits
 
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.pptAlbin562191
 
UNIT - II.pptx
UNIT - II.pptxUNIT - II.pptx
UNIT - II.pptxamudhak10
 
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_shravanVishesh Chanana
 
combinational-circuit (1).ppt
combinational-circuit (1).pptcombinational-circuit (1).ppt
combinational-circuit (1).pptThanmayiKumar
 
Digital Electronics Unit_2.pptx
Digital Electronics Unit_2.pptxDigital Electronics Unit_2.pptx
Digital Electronics Unit_2.pptxThapar 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 adderGaditek
 
COMPUTER ORGANIZATION NOTES Unit 6
COMPUTER ORGANIZATION NOTES Unit 6COMPUTER ORGANIZATION NOTES Unit 6
COMPUTER ORGANIZATION NOTES Unit 6Dr.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 multipliersINFOGAIN PUBLICATION
 
8 bit Multiplier Accumulator
8 bit Multiplier Accumulator8 bit Multiplier Accumulator
8 bit Multiplier AccumulatorDaksh Raj Chopra
 
Computer Organization And Architecture lab manual
Computer Organization And Architecture lab manualComputer Organization And Architecture lab manual
Computer Organization And Architecture lab manualNitesh Dubey
 

Similar to Binary Adders.pdf (20)

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
 
Computer Organization And Architecture lab manual
Computer Organization And Architecture lab manualComputer Organization And Architecture lab manual
Computer Organization And Architecture lab manual
 

Recently uploaded

(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 

Recently uploaded (20)

(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 

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