How can I implement a subtractor with these given logic gates

Status
Not open for further replies.

Thread Starter

Kladen Stein

Joined Jan 10, 2018
4
Hi, in my project I have to design a subtractor. In this design i can only use these ones : AND Gate, XOR Gate, an Adder and a Circular Left Shifter.
Like in the image below.

Subtractor(A - B) means A + ~B + 1. I have adder but don't have not gate("~" means opposite) and I didn't get it with these givens.

How can i design this with these givens (I don't have to use all of them) ?
Thank you.

alu.PNG
 
Last edited:

WBahn

Joined Mar 31, 2012
30,075
Hi, in my project I have to design a subtractor. In this design i can only use these ones : AND Gate, XOR Gate, an Adder and a Circular Left Shifter.
Like in the image below.

Subtractor(A - B) means A + ~B + 1. I have adder but don't have not gate("~" means opposite) and I didn't get it with these givens.

How can i design this with these givens (I don't have to use all of them) ?
Thank you.
What is A XORed with a 1?
 
Status
Not open for further replies.
Top