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.

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top