Multiplicand and HI are sign-extended - PowerPoint PPT Presentation

About This Presentation
Title:

Multiplicand and HI are sign-extended

Description:

Title: Integer Multiplication and Division Author: Dr. Muhamed Mudawar Last modified by: ITC Created Date: 9/12/2004 1:54:39 PM Document presentation format – PowerPoint PPT presentation

Number of Views:30
Avg rating:3.0/5.0
Slides: 5
Provided by: Dr23513
Category:

less

Transcript and Presenter's Notes

Title: Multiplicand and HI are sign-extended


1
Signed Multiplication Hardware
  • Multiplicand and HI are sign-extended
  • Sign is the sign of the result

2
Signed Multiplication Example
  • Consider 11002 (-4) 11012 (-3), Product
    000011002
  • Multiplicand and HI are sign-extended before
    addition
  • Last iteration add 2's complement of Multiplicand

Multiplicand
Product HI, LO
Sign
Iteration
1 1 0 0
0 0 0 0 1 1 0 1
Initialize (LO Multiplier)
0
1
2
3
4
3
Division Hardware
  • Observation
  • Shifting remainder left does the
  • same as shifting the divisor right
  • Initialize
  • Quotient Dividend, Remainder 0

4
Division Example
  • Example 11102 / 00112 (4-bit dividend divisor)
  • Quotient 01002 and Remainder 00102
  • 4-bit registers for Remainder and Divisor (4-bit
    ALU)

Remainder
Difference
Quotient
Iteration
Divisor
0 0 0 0
1 1 1 0
Initialize
0
0 0 1 1
1
2
3
4
Write a Comment
User Comments (0)
About PowerShow.com