SlideShare uma empresa Scribd logo
1 de 15
Baixar para ler offline
Lecture – 09
Fixed-Point Arithmetic
 Addition
 Subtraction
 Multiplication
 Division
Half Adder
X0 Y0 S0 C0
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1C0
S0
X0
Y0
000
000
YXC
YXS


Full Adder
1010000
1000




CYCXYXC
CYXS
Full Adder
Serial Binary Adder
 Least expensive
circuit in terms of
hardware cost.
 It adds the numbers bit
by bit and so requires
n clock cycle to
compute the sum of
two n-bit numbers.
 Circuit size
independent of n.
Ripple Carry Adder
 A 1 appearing on the carry in line of a 1-bit adder cause
it to generate a 1 on its carry out line. So, the carry
signal propagate through the adder from right to left.
 The maximum signal propagation delay is nd, where d is
the delay of a full-adder stage.
 The amount of hardware increase linearly with n.
2’s Complement Adder-Subtracter
 When s =0, then X  s = X
 When s=1, then X  s = X
2’s Complement Adder-
Subtracter
Overflow
 When the result of an arithmetic operation exceeds the
standard word size n, overflow occurs.
 Example: let n=8, X=11101011=23510 and Y=00101010=4210
Z = X+Y = 11101011 + 0101010 = 00010101 = 2110
with Cn-1 = C7 = 1.
C7Z = 100010101 = 27710 = 25610 + 2110
 The result of an addition simply wraps around when the
largest number 2n-1 is exceeds.
 For n, the number range for unsigned number is 0 to 2n-1
Overflow
 We can never have overflow on adding a negative and
positive number.
 Example: let n=8 X=11101011=-2110 and
Y=00101010=+4210
Z = X+Y = 00010101 = 2110 and C7 = 1.
So, Cn-1 = 1 does not indicate overflow.
 Overflow in 2’s complement addition can result from adding
1) two positive numbers or
2) two negative numbers.
Overflow
Case 1: Two numbers are positive.
Let n = 4, 7 + 3 = 0111+0011 = 1010 so, cn-2 = 1
Cn-2 =1 indicates that the magnitude of the sum exceeds the n-1 bits
allocated to it.
Case 2: Two numbers are negative.
Let n=4, -7 = 1001, -3 = 1101
so, 1001+1101 = 10110 so, cn-2 = 0
Cn-2 =0 indicates the overflow.
Overflow
Xn-1 Yn-1 Cn-2 Zn-1 v
0 0 0 0 0
0 0 1 0 1
0 1 0 1 0
0 1 1 0 0
1 0 0 1 0
1 0 1 0 0
1 1 0 1 1
1 1 1 1 0
21
211211
021021021 ............:......






nn
nnnnnn
nnnnnn
CCv
CYXCYXv
YYYXXXZZZ
Complete 2’s Complement Adder-Subtracter
Complete 2’s Complement Adder-Subtracter

Mais conteúdo relacionado

Mais procurados

Predecessor and successor .write the number that comes …Before…after… between…
Predecessor and successor .write the number that comes …Before…after… between…Predecessor and successor .write the number that comes …Before…after… between…
Predecessor and successor .write the number that comes …Before…after… between…FaB6 Design
 
Decimal arithematic operation
Decimal arithematic operationDecimal arithematic operation
Decimal arithematic operationPadmapriyaG
 
Booth's Algorithm Fully Explained With Flow Chart PDF
Booth's Algorithm Fully Explained With Flow Chart PDFBooth's Algorithm Fully Explained With Flow Chart PDF
Booth's Algorithm Fully Explained With Flow Chart PDFParthdhwajendra Mishra
 
Number system (Binary Number)
Number system (Binary Number)Number system (Binary Number)
Number system (Binary Number)Mithlesh Khanna
 
Binary number system
Binary number systemBinary number system
Binary number systemNadeem Uddin
 
Number systems - binary, BCD, 2s comp
Number systems - binary, BCD, 2s compNumber systems - binary, BCD, 2s comp
Number systems - binary, BCD, 2s compmrlee2014
 
Number setetertystems i_
Number setetertystems i_Number setetertystems i_
Number setetertystems i_Sara Gonzalez
 
Continuosly compound interest and a comparison of exponential growth phenomena
Continuosly compound interest and a comparison of exponential growth phenomenaContinuosly compound interest and a comparison of exponential growth phenomena
Continuosly compound interest and a comparison of exponential growth phenomenaDondon Machete Mitra
 
Floating point representation
Floating point representationFloating point representation
Floating point representationmissstevenson01
 
Ejercicios de anualidades
Ejercicios de anualidadesEjercicios de anualidades
Ejercicios de anualidadesedhuramirez
 

Mais procurados (20)

P13 046
P13 046P13 046
P13 046
 
Predecessor and successor .write the number that comes …Before…after… between…
Predecessor and successor .write the number that comes …Before…after… between…Predecessor and successor .write the number that comes …Before…after… between…
Predecessor and successor .write the number that comes …Before…after… between…
 
Floating point Numbers
Floating point NumbersFloating point Numbers
Floating point Numbers
 
Decimal arithematic operation
Decimal arithematic operationDecimal arithematic operation
Decimal arithematic operation
 
Booth's Algorithm Fully Explained With Flow Chart PDF
Booth's Algorithm Fully Explained With Flow Chart PDFBooth's Algorithm Fully Explained With Flow Chart PDF
Booth's Algorithm Fully Explained With Flow Chart PDF
 
Number system (Binary Number)
Number system (Binary Number)Number system (Binary Number)
Number system (Binary Number)
 
Binary number system
Binary number systemBinary number system
Binary number system
 
Lecture 16
Lecture 16Lecture 16
Lecture 16
 
Number systems - binary, BCD, 2s comp
Number systems - binary, BCD, 2s compNumber systems - binary, BCD, 2s comp
Number systems - binary, BCD, 2s comp
 
Number setetertystems i_
Number setetertystems i_Number setetertystems i_
Number setetertystems i_
 
Binary addition
Binary additionBinary addition
Binary addition
 
Continuosly compound interest and a comparison of exponential growth phenomena
Continuosly compound interest and a comparison of exponential growth phenomenaContinuosly compound interest and a comparison of exponential growth phenomena
Continuosly compound interest and a comparison of exponential growth phenomena
 
Floating point representation
Floating point representationFloating point representation
Floating point representation
 
Ejercicios de anualidades
Ejercicios de anualidadesEjercicios de anualidades
Ejercicios de anualidades
 
Multiplying and-dividing-by-10-100-and-1000
Multiplying and-dividing-by-10-100-and-1000Multiplying and-dividing-by-10-100-and-1000
Multiplying and-dividing-by-10-100-and-1000
 
IEEE Floating Point
IEEE Floating PointIEEE Floating Point
IEEE Floating Point
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Lsn 10-7
Lsn 10-7Lsn 10-7
Lsn 10-7
 
Arithmatic &Logic Unit
Arithmatic &Logic UnitArithmatic &Logic Unit
Arithmatic &Logic Unit
 
8. terapan hk1 n
8. terapan hk1 n8. terapan hk1 n
8. terapan hk1 n
 

Semelhante a Lecture 09

Semelhante a Lecture 09 (20)

Number system
Number systemNumber system
Number system
 
Complements
ComplementsComplements
Complements
 
Mba admission in india
Mba admission in indiaMba admission in india
Mba admission in india
 
Complement in DLD
Complement in DLDComplement in DLD
Complement in DLD
 
lec2_BinaryArithmetic.ppt
lec2_BinaryArithmetic.pptlec2_BinaryArithmetic.ppt
lec2_BinaryArithmetic.ppt
 
B sc ii sem unit 2(a) ns
B sc ii sem  unit 2(a) nsB sc ii sem  unit 2(a) ns
B sc ii sem unit 2(a) ns
 
Mba admission in india
Mba admission in indiaMba admission in india
Mba admission in india
 
unit-2_DL.pdf
unit-2_DL.pdfunit-2_DL.pdf
unit-2_DL.pdf
 
Number system
Number systemNumber system
Number system
 
B sc3 unit 2 number system
B sc3  unit 2 number systemB sc3  unit 2 number system
B sc3 unit 2 number system
 
Lecture_5-2.ppt
Lecture_5-2.pptLecture_5-2.ppt
Lecture_5-2.ppt
 
1. NUMBER SYSTEM.pptx Computer Applications in Pharmacy
1. NUMBER SYSTEM.pptx Computer Applications in Pharmacy1. NUMBER SYSTEM.pptx Computer Applications in Pharmacy
1. NUMBER SYSTEM.pptx Computer Applications in Pharmacy
 
ch2.pdf
ch2.pdfch2.pdf
ch2.pdf
 
Lec20
Lec20Lec20
Lec20
 
B sc cs i bo-de u-i number system
B sc cs i bo-de u-i number systemB sc cs i bo-de u-i number system
B sc cs i bo-de u-i number system
 
Lecture 1-431171839-lec2-BinaryArithmetic.ppt
Lecture 1-431171839-lec2-BinaryArithmetic.pptLecture 1-431171839-lec2-BinaryArithmetic.ppt
Lecture 1-431171839-lec2-BinaryArithmetic.ppt
 
Pp02
Pp02Pp02
Pp02
 
Chapter 2 Data Representation on CPU (part 1)
Chapter 2 Data Representation on CPU (part 1)Chapter 2 Data Representation on CPU (part 1)
Chapter 2 Data Representation on CPU (part 1)
 
ARITHMETIC FOR COMPUTERS
ARITHMETIC FOR COMPUTERS	  ARITHMETIC FOR COMPUTERS
ARITHMETIC FOR COMPUTERS
 
Digital computer fundamentals
Digital computer fundamentalsDigital computer fundamentals
Digital computer fundamentals
 

Último

Dust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSEDust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSEaurabinda banchhor
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationRosabel UA
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSMae Pangan
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Presentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptxPresentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptxRosabel UA
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataBabyAnnMotar
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
The Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World PoliticsThe Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World PoliticsRommel Regala
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 

Último (20)

Dust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSEDust Of Snow By Robert Frost Class-X English CBSE
Dust Of Snow By Robert Frost Class-X English CBSE
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translation
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHS
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Presentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptxPresentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptx
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped data
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
The Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World PoliticsThe Contemporary World: The Globalization of World Politics
The Contemporary World: The Globalization of World Politics
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 

Lecture 09

  • 2. Fixed-Point Arithmetic  Addition  Subtraction  Multiplication  Division
  • 3. Half Adder X0 Y0 S0 C0 0 0 0 0 0 1 1 0 1 0 1 0 1 1 0 1C0 S0 X0 Y0 000 000 YXC YXS  
  • 6. Serial Binary Adder  Least expensive circuit in terms of hardware cost.  It adds the numbers bit by bit and so requires n clock cycle to compute the sum of two n-bit numbers.  Circuit size independent of n.
  • 7. Ripple Carry Adder  A 1 appearing on the carry in line of a 1-bit adder cause it to generate a 1 on its carry out line. So, the carry signal propagate through the adder from right to left.  The maximum signal propagation delay is nd, where d is the delay of a full-adder stage.  The amount of hardware increase linearly with n.
  • 8. 2’s Complement Adder-Subtracter  When s =0, then X  s = X  When s=1, then X  s = X
  • 10. Overflow  When the result of an arithmetic operation exceeds the standard word size n, overflow occurs.  Example: let n=8, X=11101011=23510 and Y=00101010=4210 Z = X+Y = 11101011 + 0101010 = 00010101 = 2110 with Cn-1 = C7 = 1. C7Z = 100010101 = 27710 = 25610 + 2110  The result of an addition simply wraps around when the largest number 2n-1 is exceeds.  For n, the number range for unsigned number is 0 to 2n-1
  • 11. Overflow  We can never have overflow on adding a negative and positive number.  Example: let n=8 X=11101011=-2110 and Y=00101010=+4210 Z = X+Y = 00010101 = 2110 and C7 = 1. So, Cn-1 = 1 does not indicate overflow.  Overflow in 2’s complement addition can result from adding 1) two positive numbers or 2) two negative numbers.
  • 12. Overflow Case 1: Two numbers are positive. Let n = 4, 7 + 3 = 0111+0011 = 1010 so, cn-2 = 1 Cn-2 =1 indicates that the magnitude of the sum exceeds the n-1 bits allocated to it. Case 2: Two numbers are negative. Let n=4, -7 = 1001, -3 = 1101 so, 1001+1101 = 10110 so, cn-2 = 0 Cn-2 =0 indicates the overflow.
  • 13. Overflow Xn-1 Yn-1 Cn-2 Zn-1 v 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 0 1 1 0 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 1 1 1 1 1 0 21 211211 021021021 ............:......       nn nnnnnn nnnnnn CCv CYXCYXv YYYXXXZZZ
  • 14. Complete 2’s Complement Adder-Subtracter
  • 15. Complete 2’s Complement Adder-Subtracter