SlideShare a Scribd company logo
5
Most read
6
Most read
7
Most read
CS304PC:Computer Organization
and Architecture (R18 II(I sem))
Department of computer science and engineering
(AI/ML)
Session 20
by
Asst.Prof.M.Gokilavani
VITS
2/13/2023 Department of CSE (AI/ML) 1
TEXTBOOK:
• 1. Computer System Architecture – M. Moris Mano, Third Edition,
Pearson/PHI.
REFERENCES:
• Computer Organization – Car Hamacher, Zvonks Vranesic, Safea
Zaky, Vth Edition, McGraw Hill.
• Computer Organization and Architecture – William Stallings Sixth
Edition, Pearson/PHI.
• Structured Computer Organization – Andrew S. Tanenbaum, 4th
Edition, PHI/Pearson.
2/13/2023 Department of CSE (AI/ML) 2
Unit III
Data Representation: Data types ,Complements, fixed point
Representations, Floating point representation.
Computer Arithmetic: Addition and subtraction,
multiplication Algorithms, Division Algorithms, Floating-point
Arithmetic operations, Decimal Arithmetic unit, Decimal
Arithmetic operations.
2/13/2023 Department of CSE (AI/ML) 3
Topics covered in session 20
2/13/2023 Department of CSE (AI/ML) 4
• Addition and subtraction
• Multiplication Algorithms
• Division Algorithms
• Floating-point Arithmetic operations
• Decimal Arithmetic unit
• Decimal Arithmetic operations.
Multiplication Algorithm
• Example:
• In multiplication algorithm, successive bits of the multiplier, least significant bit
first.
• If the multiplier bit is a 1, the multiplicand is copied down, otherwise zero are
copied down.
• The numbers copied down is successive lines are shifted one position to the left
from the previous number. Finally, the numbers are added, and their sum forms the
product.
• The sign of the product is determined from the sign of the multiplicand and
multiplier.
2/13/2023 Department of CSE (AI/ML) 5
Hardware Implementation for Signed Magnitude Data
• First, instead of providing register to store and add simultaneously as
many binary numbers as there are bits in the multiplier, it is
convenient to provide an adder for the summation of only binary
numbers and successively accumulated the partial products in
registers.
• Second, instead of shifting the multiplicand to the left, the partial
product is shifted to the right, which results in leaving the partial
product and the multiplicand in the required relative position.
• Third when the corresponding bit of the multiplier is 0, there is no
need to add all zeros to the partial product since it will not alter its
value.
2/13/2023 Department of CSE (AI/ML) 6
2/13/2023 Department of CSE (AI/ML) 7
Working of Hardware Implementation
• Initially, the multiplicand is in register B and the multiplier in Q.
• The sum of A and B forms a partial product which is transferred to the
EA register. Both partial product and multiplier are shifted to the right.
This shift will be denoted by the statement shr EAQ to designate the
right shift depicted.
• The least significant bit of A is shifted into the most significant
position of Q, the bit from E is shifted into the most significant
position of A, and 0 is shifted into E.
• After the shift, one bit of the partial product is shifted into Q, pushing
the multiplier bits one position to the right.
• Rightmost flip-flop in register Q, designated by Qn, will hold the bit
of the multiplier, which must be inspected next.
2/13/2023 Department of CSE (AI/ML) 8
2/13/2023 Department of CSE (AI/ML) 9
Booth Multiplication Algorithm
2/13/2023 Department of CSE (AI/ML) 10
Rules For Booth Algorithm
2/13/2023 Department of CSE (AI/ML) 11
2/13/2023 Department of CSE (AI/ML) 12
2/13/2023 Department of CSE (AI/ML) 13
Array Multiplier
• Checking the bits of the multiplier one at a time and forming partial
products is a sequential operation that requires a sequence of add and
shift micro operations.
• The multiplication of two binary numbers can b done with one micro
operation by means of a combinational circuit that forms the product
bits all at once.
• An array multiplier requires a large number of gates, and integrated
circuits.
2/13/2023 Department of CSE (AI/ML) 14
Array Multiplier
2/13/2023 Department of CSE (AI/ML) 15
2/13/2023 Department of CSE (AI/ML) 16
2/13/2023 Department of CSE (AI/ML) 17
Topics to be covered in next session 21
• Division Algorithm
2/13/2023 Department of CSE (AI/ML) 18
Thank you!!!

More Related Content

PPTX
CS304PC:Computer Organization and Architecture Session 11 general register or...
PPT
Logic Micro Operation
PPTX
4.programmable dma controller 8257
PPTX
Types of Instruction Format
PPTX
Booths algorithm for Multiplication
PPT
BASIC COMPUTER ORGANIZATION AND DESIGN
PPTX
Microprocessor 8086
PPTX
Addressing modes
CS304PC:Computer Organization and Architecture Session 11 general register or...
Logic Micro Operation
4.programmable dma controller 8257
Types of Instruction Format
Booths algorithm for Multiplication
BASIC COMPUTER ORGANIZATION AND DESIGN
Microprocessor 8086
Addressing modes

What's hot (20)

PDF
Memory mapping
PPTX
Direct access memory
PPTX
Addressing modes
PPT
Pipelining
PDF
Module 1 8086
PPT
PPTX
Arithmetic & Logic Unit
PPT
Memory reference instruction
PPTX
Memory Segmentation of 8086
PPT
CPU Register Organization.ppt
PPT
8254 PIT
PPTX
Von-Neumann machine and IAS architecture
PPTX
Arithmetic logic shift unit
PPTX
Unit 4-booth algorithm
PPTX
8086 memory segmentation
PPT
COA CHAPTER 5
PDF
Unit II Study of Onchip Peripherals
PPT
Chapter 2 instructions language of the computer
PPTX
instruction format and addressing modes
PPTX
Addressing Modes
Memory mapping
Direct access memory
Addressing modes
Pipelining
Module 1 8086
Arithmetic & Logic Unit
Memory reference instruction
Memory Segmentation of 8086
CPU Register Organization.ppt
8254 PIT
Von-Neumann machine and IAS architecture
Arithmetic logic shift unit
Unit 4-booth algorithm
8086 memory segmentation
COA CHAPTER 5
Unit II Study of Onchip Peripherals
Chapter 2 instructions language of the computer
instruction format and addressing modes
Addressing Modes
Ad

Similar to CS304PC:Computer Organization and Architecture session 20 Multiplication algorithm.pptx (20)

PPTX
CS304PC:Computer Organization and Architecture Session 20 Multiplication algo...
PPTX
CS304PC:Computer Organization and Architecture Session 21 Division Algorithm....
PPTX
CS304PC:Computer Organization and Architecture Session 19 Addition and subtra...
PPTX
CS304PC:Computer Organization and Architecture Session 4 Arithmetic shift log...
PPTX
CS304PC:Computer Organization and Architecture Session 3 micro operations.pptx
PPTX
CS304PC:Computer Organization and Architecture session 22 floating point arit...
PDF
IRJET- To Design 16 bit Synchronous Microprocessor using VHDL on FPGA
PPTX
Computer arithmetics (computer organisation & arithmetics) ppt
PDF
IRJET- Realization of Decimal Multiplication using Radix-16 Modified Booth En...
PPTX
CS304PC:Computer Organization and Architecture Session 23 Decimal Arithmetic ...
PDF
Design of a Novel Multiplier and Accumulator using Modified Booth Algorithm w...
PDF
IRJET- Lane Segmentation for Self-Driving Cars using Image Processing
PDF
Ijecet 06 08_001
PDF
Ijecet 06 08_001
PPTX
CS304PC:Computer Organization and Architecture Session 17 Complements and fix...
PDF
Computer arithmetics coa project pdf version
PDF
Q044088691
PDF
Design and Implementation of Fixed Point Arithmetic Unit
PDF
Ijecet 06 07_005
PPTX
CS304PC:Computer Organization and Architecture Session 10 design of control ...
CS304PC:Computer Organization and Architecture Session 20 Multiplication algo...
CS304PC:Computer Organization and Architecture Session 21 Division Algorithm....
CS304PC:Computer Organization and Architecture Session 19 Addition and subtra...
CS304PC:Computer Organization and Architecture Session 4 Arithmetic shift log...
CS304PC:Computer Organization and Architecture Session 3 micro operations.pptx
CS304PC:Computer Organization and Architecture session 22 floating point arit...
IRJET- To Design 16 bit Synchronous Microprocessor using VHDL on FPGA
Computer arithmetics (computer organisation & arithmetics) ppt
IRJET- Realization of Decimal Multiplication using Radix-16 Modified Booth En...
CS304PC:Computer Organization and Architecture Session 23 Decimal Arithmetic ...
Design of a Novel Multiplier and Accumulator using Modified Booth Algorithm w...
IRJET- Lane Segmentation for Self-Driving Cars using Image Processing
Ijecet 06 08_001
Ijecet 06 08_001
CS304PC:Computer Organization and Architecture Session 17 Complements and fix...
Computer arithmetics coa project pdf version
Q044088691
Design and Implementation of Fixed Point Arithmetic Unit
Ijecet 06 07_005
CS304PC:Computer Organization and Architecture Session 10 design of control ...
Ad

More from Guru Nanak Technical Institutions (20)

PPTX
22PCOAM21 Data Quality Session 3 Data Quality.pptx
PPTX
22PCOAM21 Session 1 Data Management.pptx
PPTX
22PCOAM21 Session 2 Understanding Data Source.pptx
PDF
III Year II Sem 22PCOAM21 Data Analytics Syllabus.pdf
PDF
22PCOAM16 _ML_Unit 3 Notes & Question bank
PDF
22PCOAM16 Machine Learning Unit V Full notes & QB
PDF
22PCOAM16_MACHINE_LEARNING_UNIT_IV_NOTES_with_QB
PDF
22PCOAM16 ML Unit 3 Full notes PDF & QB.pdf
PPTX
22PCOAM16 Unit 3 Session 23 Different ways to Combine Classifiers.pptx
PPTX
22PCOAM16 Unit 3 Session 22 Ensemble Learning .pptx
PPTX
22PCOAM16 Unit 3 Session 24 K means Algorithms.pptx
PPTX
22PCOAM16 ML Unit 3 Session 18 Learning with tree.pptx
PPTX
22PCOAM16 ML Unit 3 Session 21 Classification and Regression Trees .pptx
PPTX
22PCOAM16 ML Unit 3 Session 20 ID3 Algorithm and working.pptx
PPTX
22PCOAM16 ML Unit 3 Session 19 Constructing Decision Trees.pptx
PDF
22PCOAM16 ML UNIT 2 NOTES & QB QUESTION WITH ANSWERS
PDF
22PCOAM16 _ML_ Unit 2 Full unit notes.pdf
PDF
22PCOAM16_ML_Unit 1 notes & Question Bank with answers.pdf
PDF
22PCOAM16_MACHINE_LEARNING_UNIT_I_NOTES.pdf
PPTX
22PCOAM16 Unit 2 Session 17 Support vector Machine.pptx
22PCOAM21 Data Quality Session 3 Data Quality.pptx
22PCOAM21 Session 1 Data Management.pptx
22PCOAM21 Session 2 Understanding Data Source.pptx
III Year II Sem 22PCOAM21 Data Analytics Syllabus.pdf
22PCOAM16 _ML_Unit 3 Notes & Question bank
22PCOAM16 Machine Learning Unit V Full notes & QB
22PCOAM16_MACHINE_LEARNING_UNIT_IV_NOTES_with_QB
22PCOAM16 ML Unit 3 Full notes PDF & QB.pdf
22PCOAM16 Unit 3 Session 23 Different ways to Combine Classifiers.pptx
22PCOAM16 Unit 3 Session 22 Ensemble Learning .pptx
22PCOAM16 Unit 3 Session 24 K means Algorithms.pptx
22PCOAM16 ML Unit 3 Session 18 Learning with tree.pptx
22PCOAM16 ML Unit 3 Session 21 Classification and Regression Trees .pptx
22PCOAM16 ML Unit 3 Session 20 ID3 Algorithm and working.pptx
22PCOAM16 ML Unit 3 Session 19 Constructing Decision Trees.pptx
22PCOAM16 ML UNIT 2 NOTES & QB QUESTION WITH ANSWERS
22PCOAM16 _ML_ Unit 2 Full unit notes.pdf
22PCOAM16_ML_Unit 1 notes & Question Bank with answers.pdf
22PCOAM16_MACHINE_LEARNING_UNIT_I_NOTES.pdf
22PCOAM16 Unit 2 Session 17 Support vector Machine.pptx

Recently uploaded (20)

PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
Current and future trends in Computer Vision.pptx
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PDF
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
PPTX
OOP with Java - Java Introduction (Basics)
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PDF
PPT on Performance Review to get promotions
PDF
Well-logging-methods_new................
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
additive manufacturing of ss316l using mig welding
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
Artificial Intelligence
PDF
737-MAX_SRG.pdf student reference guides
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Embodied AI: Ushering in the Next Era of Intelligent Systems
Current and future trends in Computer Vision.pptx
Automation-in-Manufacturing-Chapter-Introduction.pdf
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
OOP with Java - Java Introduction (Basics)
Operating System & Kernel Study Guide-1 - converted.pdf
PPT on Performance Review to get promotions
Well-logging-methods_new................
CH1 Production IntroductoryConcepts.pptx
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
additive manufacturing of ss316l using mig welding
Model Code of Practice - Construction Work - 21102022 .pdf
UNIT-1 - COAL BASED THERMAL POWER PLANTS
UNIT 4 Total Quality Management .pptx
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Artificial Intelligence
737-MAX_SRG.pdf student reference guides

CS304PC:Computer Organization and Architecture session 20 Multiplication algorithm.pptx

  • 1. CS304PC:Computer Organization and Architecture (R18 II(I sem)) Department of computer science and engineering (AI/ML) Session 20 by Asst.Prof.M.Gokilavani VITS 2/13/2023 Department of CSE (AI/ML) 1
  • 2. TEXTBOOK: • 1. Computer System Architecture – M. Moris Mano, Third Edition, Pearson/PHI. REFERENCES: • Computer Organization – Car Hamacher, Zvonks Vranesic, Safea Zaky, Vth Edition, McGraw Hill. • Computer Organization and Architecture – William Stallings Sixth Edition, Pearson/PHI. • Structured Computer Organization – Andrew S. Tanenbaum, 4th Edition, PHI/Pearson. 2/13/2023 Department of CSE (AI/ML) 2
  • 3. Unit III Data Representation: Data types ,Complements, fixed point Representations, Floating point representation. Computer Arithmetic: Addition and subtraction, multiplication Algorithms, Division Algorithms, Floating-point Arithmetic operations, Decimal Arithmetic unit, Decimal Arithmetic operations. 2/13/2023 Department of CSE (AI/ML) 3
  • 4. Topics covered in session 20 2/13/2023 Department of CSE (AI/ML) 4 • Addition and subtraction • Multiplication Algorithms • Division Algorithms • Floating-point Arithmetic operations • Decimal Arithmetic unit • Decimal Arithmetic operations.
  • 5. Multiplication Algorithm • Example: • In multiplication algorithm, successive bits of the multiplier, least significant bit first. • If the multiplier bit is a 1, the multiplicand is copied down, otherwise zero are copied down. • The numbers copied down is successive lines are shifted one position to the left from the previous number. Finally, the numbers are added, and their sum forms the product. • The sign of the product is determined from the sign of the multiplicand and multiplier. 2/13/2023 Department of CSE (AI/ML) 5
  • 6. Hardware Implementation for Signed Magnitude Data • First, instead of providing register to store and add simultaneously as many binary numbers as there are bits in the multiplier, it is convenient to provide an adder for the summation of only binary numbers and successively accumulated the partial products in registers. • Second, instead of shifting the multiplicand to the left, the partial product is shifted to the right, which results in leaving the partial product and the multiplicand in the required relative position. • Third when the corresponding bit of the multiplier is 0, there is no need to add all zeros to the partial product since it will not alter its value. 2/13/2023 Department of CSE (AI/ML) 6
  • 7. 2/13/2023 Department of CSE (AI/ML) 7
  • 8. Working of Hardware Implementation • Initially, the multiplicand is in register B and the multiplier in Q. • The sum of A and B forms a partial product which is transferred to the EA register. Both partial product and multiplier are shifted to the right. This shift will be denoted by the statement shr EAQ to designate the right shift depicted. • The least significant bit of A is shifted into the most significant position of Q, the bit from E is shifted into the most significant position of A, and 0 is shifted into E. • After the shift, one bit of the partial product is shifted into Q, pushing the multiplier bits one position to the right. • Rightmost flip-flop in register Q, designated by Qn, will hold the bit of the multiplier, which must be inspected next. 2/13/2023 Department of CSE (AI/ML) 8
  • 9. 2/13/2023 Department of CSE (AI/ML) 9
  • 10. Booth Multiplication Algorithm 2/13/2023 Department of CSE (AI/ML) 10
  • 11. Rules For Booth Algorithm 2/13/2023 Department of CSE (AI/ML) 11
  • 12. 2/13/2023 Department of CSE (AI/ML) 12
  • 13. 2/13/2023 Department of CSE (AI/ML) 13
  • 14. Array Multiplier • Checking the bits of the multiplier one at a time and forming partial products is a sequential operation that requires a sequence of add and shift micro operations. • The multiplication of two binary numbers can b done with one micro operation by means of a combinational circuit that forms the product bits all at once. • An array multiplier requires a large number of gates, and integrated circuits. 2/13/2023 Department of CSE (AI/ML) 14
  • 16. 2/13/2023 Department of CSE (AI/ML) 16
  • 17. 2/13/2023 Department of CSE (AI/ML) 17
  • 18. Topics to be covered in next session 21 • Division Algorithm 2/13/2023 Department of CSE (AI/ML) 18 Thank you!!!