carry look ahaed adder

Status
Not open for further replies.

rajakash

Member level 2
Joined
Nov 9, 2006
Messages
53
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,608
hi friends,

am using a carry look ahead adder for adding two 8bit numbers....... using tat adder i want to do subtraction ..... how to do tat..... am doing alu as my project............
 

to do (a - b):

1/ calculate 2's complement of b (call it ~b)
2/ add a and ~b using your adder
3/ if the carry out bit is 1, the output is the answer (ignore the carry out)
__if the carry out bit is 0, take 2's complement of the output to get the answer
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…