SlideShare a Scribd company logo
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 2
Session 11: Focus
 Full Adder-subtractor Circuit
◦ Carry Propagation Delay
◦ Look-ahead Carry Implementation
◦ Advantages and disadvantages
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
Full Adder-Subtractor
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 4
Full Adder-Subtractor
 Subtraction of two binary numbers can be accomplished by
adding 2’s complement of the subtrahend to the minuend
 And disregarding the final carry, if any.
 If the MSB bit in the result of addition is a ‘0’, then the result
of addition is the correct answer
 If the MSB bit is a ‘1’, this implies that the answer has a
negative sign.
 The true magnitude in this case is given by 2’s complement of
the result of addition
 Full adders can be used to perform subtraction provided
 Additional hardware is there to generate 2’s complement
of the subtrahend and
 Disregard the final carry or overflow
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 5
Adder-Subtractor Circuit
Note: This parallel adder is also called Ripple Carry Adder
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
Carry Propagation
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 7
Gate Delays
 Timing diagram above shows gate delay graphically
 When inputs to gate change, outputs from the gate don’t change
instantaneously (they get delayed in the range of nano seconds)
◦ This delay is known as “gate” or “propagation” delay
 The exact amount of gate delay depends on the
◦ Technology used to build the gates (TTL, CMOS, etc.)
◦ The technology node used to build the gate (22 nm, 14 nm, etc.)
7
TTL: Transistor-Transistor Logic, CMOS: Complementary Metal Oxide Semiconductor
Output signal
transition based on
the input level
changes
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 8
Multiple Gate Delays
 What is the delay experienced by the signal G2 which
depends on the input signal A?
 The amount of delay experienced by the output signals
depend on
◦ The type of gates in the path (AND, OR, etc.)
◦ Particular combination of signal transitions, etc.
◦ More number of gates the signal needs to pass through, it
experiences more delay in general
40 ns
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 9
n-bit Ripple Carry Adder
 By cascading full adders, carry “ripples” from least
significant bit toward most significant bit
◦ Critical path becomes input to FA0 to output of FAn
◦ Critical path is the path which experiences the maximum
delay in a circuit
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 10
Carry Propagation Delay
 From the FA circuit, Ci+1 is delayed by two levels of gates
once Ci is available at the input
FA: Full Adder
FA: Full Adder Circuit
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 11
Carry Propagation Delay .. Contd.
 What is the delay experienced by C5?
 From the FA circuit, C5 will experience total of 8 gate delays,
with two gate delay at every stage from C1 to C5
 This delay will have more impact when more number of bits
are getting added
 Especially when the numbers to be added (A and B) are all
already available simultaneously
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 12
Solution: Look-ahead Carry (Fast adder)
 This Hardware solution attempts to look ahead and generate
the carry based on the input numbers (A and B) to be added
 Instead of waiting for the addition of lower order bits to be
completed
 Waiting for the carry bits to ripple through full adders from
lower order bits to higher order bits
 In order to explain the concept, let us define two new binary
variables
 Pi called CARRY PROPAGATE and
 Gi called CARRY GENERATE
 Gi generates carry whenever Ai and Bi are both 1s (AND)
 Pi is instrumental in the propagation of the Ci to Ci+1
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 13
Solution: Look-ahead Carry
 The Boolean Expressions of the implementation are:
From the expressions for C2, C3 and C4 it is clear that C4 does not wait for C3 and C2
to propagate. Similarly, C3 does not wait for C2 to propagate
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 14
4-bit Adder Circuit (Ripple carry)
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 15
Implementation: Look-ahead Carry
Hardware implementation of these expressions above is the look-ahead carry generator
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 16
Look-ahead Carry
Advantages:
 The parallel addition of multiple bits can happen with a fixed
amount gate delays
 The Look-ahead carry generator circuit has the same two gate
level delays for generating the carry for all the bits
 After the Pi and Gi are available with fixed one gate delay
 All the digits of A and B are assumed to be available at the beginning of
summation
Disadvantages:
 Its implementation takes up more gates and interconnections,
taking up more space and power
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 17
Session 11: Summary
 Full Adder-subtractor Circuit
◦ Carry Propagation Delay
◦ Look-ahead Carry Implementation
◦ Advantages and disadvantages
Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 18
References
Ref 1 Ref 2

More Related Content

Similar to Digital Design Session 11 (20)

PDF
Comparison and Simulation of Digital Adders
PDF
MODIFIED CARRY SELECT ADDER WITH BKA AND MGDI TECHNIQUE
PDF
Embedded Recipes 2019 - From maintaining I2C to the big (embedded) picture
PDF
Webinar on PROFIBUS Network Maintenance
PPTX
BCD ADDER (1).pptx
PPTX
BCD ADDER (1).pptx
PDF
POWER EFFICIENT CARRY PROPAGATE ADDER
PDF
Designing of Adders and Vedic Multiplier using Gate Diffusion Input
PDF
31, Get more from your IPv4 resources
PDF
Arduino Based Bluetooth Operated Car Wiping Technique using Android Mobile Phone
PPTX
11_Complete_NW_related_Data_Creation.pptx
PPTX
Absolute
PDF
9346f1488e08c541a68f7542d4649dee4f4e37b5.pdf
PPSX
Tocci ch 6 digital arithmetic operations and circuits
PDF
Design and emulation tools for serverless edge computing
Comparison and Simulation of Digital Adders
MODIFIED CARRY SELECT ADDER WITH BKA AND MGDI TECHNIQUE
Embedded Recipes 2019 - From maintaining I2C to the big (embedded) picture
Webinar on PROFIBUS Network Maintenance
BCD ADDER (1).pptx
BCD ADDER (1).pptx
POWER EFFICIENT CARRY PROPAGATE ADDER
Designing of Adders and Vedic Multiplier using Gate Diffusion Input
31, Get more from your IPv4 resources
Arduino Based Bluetooth Operated Car Wiping Technique using Android Mobile Phone
11_Complete_NW_related_Data_Creation.pptx
Absolute
9346f1488e08c541a68f7542d4649dee4f4e37b5.pdf
Tocci ch 6 digital arithmetic operations and circuits
Design and emulation tools for serverless edge computing
Ad

More from International Institute of Information Technology - Bangalore (20)

Ad

Recently uploaded (20)

PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPT
Project quality management in manufacturing
PDF
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
DOCX
573137875-Attendance-Management-System-original
PPTX
Artificial Intelligence
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
PPTX
Current and future trends in Computer Vision.pptx
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
PPTX
Geodesy 1.pptx...............................................
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
Foundation to blockchain - A guide to Blockchain Tech
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Project quality management in manufacturing
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
573137875-Attendance-Management-System-original
Artificial Intelligence
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
Current and future trends in Computer Vision.pptx
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
Geodesy 1.pptx...............................................
Embodied AI: Ushering in the Next Era of Intelligent Systems
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
OOP with Java - Java Introduction (Basics)
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Model Code of Practice - Construction Work - 21102022 .pdf
Automation-in-Manufacturing-Chapter-Introduction.pdf
Foundation to blockchain - A guide to Blockchain Tech

Digital Design Session 11

  • 1. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com
  • 2. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 2 Session 11: Focus  Full Adder-subtractor Circuit ◦ Carry Propagation Delay ◦ Look-ahead Carry Implementation ◦ Advantages and disadvantages
  • 3. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com Full Adder-Subtractor
  • 4. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 4 Full Adder-Subtractor  Subtraction of two binary numbers can be accomplished by adding 2’s complement of the subtrahend to the minuend  And disregarding the final carry, if any.  If the MSB bit in the result of addition is a ‘0’, then the result of addition is the correct answer  If the MSB bit is a ‘1’, this implies that the answer has a negative sign.  The true magnitude in this case is given by 2’s complement of the result of addition  Full adders can be used to perform subtraction provided  Additional hardware is there to generate 2’s complement of the subtrahend and  Disregard the final carry or overflow
  • 5. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 5 Adder-Subtractor Circuit Note: This parallel adder is also called Ripple Carry Adder
  • 6. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com Carry Propagation
  • 7. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 7 Gate Delays  Timing diagram above shows gate delay graphically  When inputs to gate change, outputs from the gate don’t change instantaneously (they get delayed in the range of nano seconds) ◦ This delay is known as “gate” or “propagation” delay  The exact amount of gate delay depends on the ◦ Technology used to build the gates (TTL, CMOS, etc.) ◦ The technology node used to build the gate (22 nm, 14 nm, etc.) 7 TTL: Transistor-Transistor Logic, CMOS: Complementary Metal Oxide Semiconductor Output signal transition based on the input level changes
  • 8. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 8 Multiple Gate Delays  What is the delay experienced by the signal G2 which depends on the input signal A?  The amount of delay experienced by the output signals depend on ◦ The type of gates in the path (AND, OR, etc.) ◦ Particular combination of signal transitions, etc. ◦ More number of gates the signal needs to pass through, it experiences more delay in general 40 ns
  • 9. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 9 n-bit Ripple Carry Adder  By cascading full adders, carry “ripples” from least significant bit toward most significant bit ◦ Critical path becomes input to FA0 to output of FAn ◦ Critical path is the path which experiences the maximum delay in a circuit
  • 10. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 10 Carry Propagation Delay  From the FA circuit, Ci+1 is delayed by two levels of gates once Ci is available at the input FA: Full Adder FA: Full Adder Circuit
  • 11. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 11 Carry Propagation Delay .. Contd.  What is the delay experienced by C5?  From the FA circuit, C5 will experience total of 8 gate delays, with two gate delay at every stage from C1 to C5  This delay will have more impact when more number of bits are getting added  Especially when the numbers to be added (A and B) are all already available simultaneously
  • 12. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 12 Solution: Look-ahead Carry (Fast adder)  This Hardware solution attempts to look ahead and generate the carry based on the input numbers (A and B) to be added  Instead of waiting for the addition of lower order bits to be completed  Waiting for the carry bits to ripple through full adders from lower order bits to higher order bits  In order to explain the concept, let us define two new binary variables  Pi called CARRY PROPAGATE and  Gi called CARRY GENERATE  Gi generates carry whenever Ai and Bi are both 1s (AND)  Pi is instrumental in the propagation of the Ci to Ci+1
  • 13. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 13 Solution: Look-ahead Carry  The Boolean Expressions of the implementation are: From the expressions for C2, C3 and C4 it is clear that C4 does not wait for C3 and C2 to propagate. Similarly, C3 does not wait for C2 to propagate
  • 14. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 14 4-bit Adder Circuit (Ripple carry)
  • 15. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 15 Implementation: Look-ahead Carry Hardware implementation of these expressions above is the look-ahead carry generator
  • 16. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 16 Look-ahead Carry Advantages:  The parallel addition of multiple bits can happen with a fixed amount gate delays  The Look-ahead carry generator circuit has the same two gate level delays for generating the carry for all the bits  After the Pi and Gi are available with fixed one gate delay  All the digits of A and B are assumed to be available at the beginning of summation Disadvantages:  Its implementation takes up more gates and interconnections, taking up more space and power
  • 17. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 17 Session 11: Summary  Full Adder-subtractor Circuit ◦ Carry Propagation Delay ◦ Look-ahead Carry Implementation ◦ Advantages and disadvantages
  • 18. Digital Design – © 2020 Mouli Sankaran Email: mouli.sankaran@yahoo.com 18 References Ref 1 Ref 2