Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Binary addition/Subtraction

Status
Not open for further replies.

saeddawoud

Full Member level 3
Joined
Apr 27, 2007
Messages
153
Helped
6
Reputation
12
Reaction score
1
Trophy points
1,298
Activity points
2,144
Hello
Can anyone tell what is the result of the following binary operations:
0000000
-
0000100
+
0010000
--------------
???????
Regards
 

for subtraction takes 2's complement and add it ....it is very simple....After convertin to all addition and computation therecan be overflow....u can neglect it ...
answer is 0001100......
 

hello
In multiplication the the number of bits in the product = the number of bits in the multiplier + the number of bits in the multiplicand.
in this case 4+4=8-bit product, so, the result of the above operation will be
1000 1100 which is not correct, the question is how to obtain the correct answer which is: 0000 1100??
note: the operations above represent the booth's algorithm that multiplying 2 by 6 each represented by 4 bits.
Regards
 

I don get u.....please make your question clear....once u say add then multiplicatin ??
In either case Jus check for overflow conditon....
 

Hello
Multiplication in MIPS hardware done by several additions in the case of unsigned integers, and as several additions and subtractions in the case of signed numbers. Now, Booth's algorithm is a signed number multiplication algorithm, and my question is right about addition and subtraction but it is really a multiplication.
Regards
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top