MoreDat

A Student Network for Collaboration and Sharing

Signup on MoreDat.com

What’s Next For Electronic Devices. Have you heard of FPGAs? Find out now here. And as a bonus get your free guide to writing a successful resume. Just Signup now and it’s all yours free.

How can I multiply signed numbers in two's complement form ??

I tried the ordinary way but it seems to work only if the product is the same size with the operators

for example :
4 * -4 = -16 ======> 0000 0100 * 1111 1100 = 1111 0000 works fine

but
50 * -50 = -2500 ======> 0011 0010 * 1100 1110 = 0010 1000 0011 1100
however it should be 1111 0110 0011 1100

How to Fix This ??

Views: 12

Reply to This

© 2022   Created by Jerome Trent.   Powered by

Report an Issue  |  Terms of Service