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!
 
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.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…