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.

What control signals should be used to get the sum to output X-Y?

Status
Not open for further replies.

hasan86bd

Newbie
Joined
Sep 9, 2020
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
13
Say I have a Full adder with inputs X, Y and a carry in C. How should I choose those values to make the Sum output become the difference between the X and Y input? Thanks in advance!
 
Last edited by a moderator:

Draw the adder table, put the 0s n 1s and calculate!
 
  • Like
Reactions: FvM

The two's complement method is a computer algorithm for subtracting a binary number.

1) invert all its bits
2) add to the other number
3) add 1 to the result.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top