Preview

Booth Algo 4 Multiplication

Satisfactory Essays
Open Document
Open Document
325 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Booth Algo 4 Multiplication
Example
Find 3 × (−4), with m = 3 and r = −4, and x = 4 and y = 4: * m = 0011, -m = 1101, r = 1100 * A = 0011 0000 0 * S = 1101 0000 0 * P = 0000 1100 0 * Perform the loop four times : 1. P = 0000 1100 0. The last two bits are 00. * P = 0000 0110 0. Arithmetic right shift. 2. P = 0000 0110 0. The last two bits are 00. * P = 0000 0011 0. Arithmetic right shift. 3. P = 0000 0011 0. The last two bits are 10. * P = 1101 0011 0. P = P + S. * P = 1110 1001 1. Arithmetic right shift. 4. P = 1110 1001 1. The last two bits are 11. * P = 1111 0100 1. Arithmetic right shift. * The product is 1111 0100, which is −12.
The above mentioned technique is inadequate when the multiplicand is the largest negative number that can be represented (e.g. if the multiplicand has 4 bits then this value is −8). One possible correction to this problem is to add one more bit to the left of A, S and P. Below, we demonstrate the improved technique by multiplying −8 by 2 using 4 bits for the multiplicand and the multiplier: * A = 1 1000 0000 0 * S = 0 1000 0000 0 * P = 0 0000 0010 0 * Perform the loop four times : 1. P = 0 0000 0010 0. The last two bits are 00. * P = 0 0000 0001 0. Right shift. 2. P = 0 0000 0001 0. The last two bits are 10. * P = 0 1000 0001 0. P = P + S. * P = 0 0100 0000 1. Right shift. 3. P = 0 0100 0000 1. The last two bits are 01. * P = 1 1100 0000 1. P = P + A. * P = 1 1110 0000 0. Right shift. 4. P = 1 1110 0000 0. The last two bits are 00. * P = 1 1111 0000 0. Right shift. * The product is 11110000 (after discarding the first and the last bit) which is

You May Also Find These Documents Helpful

  • Good Essays

    Nt1310 Unit 9 Exam Paper

    • 486 Words
    • 2 Pages

    Following the two scenarios where if one bit is converted and results in the same received pattern +-0+-0-+…

    • 486 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    NT1210 Week 1 Labs 1

    • 3680 Words
    • 20 Pages

    Using the binary converter document, create a decimal conversion for the binary value 101111 2.…

    • 3680 Words
    • 20 Pages
    Satisfactory Essays
  • Satisfactory Essays

    The bit pattern 1011 in 1’s complement notation is 7. The result of 7 – 2 using 2’s complement notation is 8. The bit pattern 1110 in 2’s complement notation is 9. The range of numbers that can be represented using the Excess-2N-1 notation is _________.…

    • 4533 Words
    • 19 Pages
    Satisfactory Essays
  • Good Essays

    Research Paper On Slope

    • 683 Words
    • 3 Pages

    Find a line parallel to - x  6 y  8 and passing through (-2,3).…

    • 683 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Algebra Factoring

    • 376 Words
    • 2 Pages

    In this equation to get the answer we need to use the prime factor of (2) and the GCF of (y) for the other part of the equation to get the correct answer. We also use grouping with (-4xy + 2xy).…

    • 376 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Algebra 1

    • 284 Words
    • 2 Pages

    If m varies directly as y and m is 6 when y is 36, find the Choose:…

    • 284 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Algebra

    • 464 Words
    • 2 Pages

    -3x/-3 = y/-3 – 330/ -3 divide each equation by -3 and cancel out like terms…

    • 464 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Action Replay Codes

    • 1233 Words
    • 5 Pages

    Please note that the Game IDs for Blaze Black and Volt White are not the same as the game IDs for Black and White. Use the IDs given below.…

    • 1233 Words
    • 5 Pages
    Satisfactory Essays
  • Satisfactory Essays

    This is implemented for a range of input values < 0.75 since Xin should be less than 1 for the bit notation we used.Here we use the vectoring Mode of CORIC and its Hyperbolic subcase to calculate Xout=sqrt(xin2 -yin2 ) And yout= 0 Bit notation: [MSB(sign bit)] . [(bit 1 to 15 for +ve fraction)]…

    • 322 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Edta Titrations

    • 579 Words
    • 3 Pages

    M n + + Y 4- = MY n - 4 [MY n - 4 ] Kf = [M n + ][Y 4- ]…

    • 579 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Addmaths Folio

    • 2179 Words
    • 9 Pages

    or similar to convert the multiplications to additions and table lookups. However logarithms are more straightforward and require less work. It can be shown using complex numbers that this is basically the same technique.…

    • 2179 Words
    • 9 Pages
    Good Essays
  • Satisfactory Essays

    Geography Ia

    • 408 Words
    • 2 Pages

    3. The PVC was then hammered approximately 5 inches into the ground using a piece of 2x4 wood and a hammer. The wood was placed across the PVC and hammered to prevent the PVC from breaking.…

    • 408 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Bab 1

    • 1519 Words
    • 7 Pages

    Digital Digital Electronics (EE202) (EE202) NUMBER NUMBER SYSTEMS • Decimal 0~9 • Binary 0~1 • Octal 0~7 • Hexadecimal 0…

    • 1519 Words
    • 7 Pages
    Satisfactory Essays
  • Good Essays

    Gate: X86 and Accumulator

    • 1607 Words
    • 7 Pages

    6) If the contents of SP are 1000H, the content of B and C registers after PUSH B instruction…

    • 1607 Words
    • 7 Pages
    Good Essays
  • Good Essays

    Operating Systems Q.1. Consider the following Snapshot of a System. Allocation Max Available A B C D A B C D…

    • 735 Words
    • 3 Pages
    Good Essays

Related Topics