In many cases you can use the same gates for many operations.
For example A-B is the same as A + the complement of B.
A=B is If A+ complement of B =0
A not equal B is the above inverted.
A>B is A+ compliment of B is positive and not 0.
A<B is A + compliment if B is negative and not 0
Equal to or greater than/less than is positive/negative or 0
Not sure what the actual assignment is, but I'm sure the teacher would like to see some thought put into efficiency, but we don't have much information as far as the assignment goes, or what year you are into your program.
For example A-B is the same as A + the complement of B.
A=B is If A+ complement of B =0
A not equal B is the above inverted.
A>B is A+ compliment of B is positive and not 0.
A<B is A + compliment if B is negative and not 0
Equal to or greater than/less than is positive/negative or 0
Not sure what the actual assignment is, but I'm sure the teacher would like to see some thought put into efficiency, but we don't have much information as far as the assignment goes, or what year you are into your program.
