Question

You know that to multiply a binary integer by 16, all you have to do is...

You know that to multiply a binary integer by 16, all you have to do is shift the value over by 4 bit positions -- which in hardware can literally be done without a function unit simply by connecting bus wires such that bit k goes to position k+4 and positions 0-3 are connected to ground. Well, it's harder to multiply by 15. However, by using Booth's algorithm, a single 32-bit add/subtract ALU is sufficient to implement multiply of a 32-bit number by 15 as a fast combinatorial circuit. Explain how this would be done by giving a formula for X*15 as a C expression (for example, X*5 would be (X<<2)+X).

0 0
Add a comment Improve this question Transcribed image text
Answer #1

To find X*15
it can be written as (X*16 - X)
shift the value X left by 4 and subtract X from it.
C expression
X = (X << 4) - X

Add a comment
Know the answer?
Add Answer to:
You know that to multiply a binary integer by 16, all you have to do is...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT