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.

use Binary adder as subtractor

Status
Not open for further replies.

yans123

Junior Member level 2
Joined
Jun 17, 2010
Messages
21
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Israel
Activity points
1,427
Hi ,

I created ppa 8 bit adder (simulation) and now I want to use it
as comparator (=~ subtractor).
I know that the logic equation for subtractor is: S=A+B'+1.
in my adder I have carry in bit. can I use it to be the "+1" , in the subtraction equation?

Thanks...
 

OK ...
I tried it. when I did the "+1" in Cin it didn't work fine( wrong values) .
When i tried it with different adders it worked fine.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top