2 bit comparator (digital logic)

So I’m stuck on a problem building a 2-bit comparator block diagram (or circuit). I’ve developed the truth table already and had no problems. Our outputs were W,X,Y and W = A=B, X= A>B, Y = A<B. For A=B I put 2 XNOR gates feeding into an AND gate. I don’t understand how to create a logic circuit for AB. If someone could please explain that would be very helpful!

A<B is A=0, B=1? or, !A + B = 1
A>B is A=1, B=0? or, A + !B = 1

Ask Logic Friday. http://sontrak.com/

2bitcomp.gif

LogicFriday2BitComparator1.jpg

LogicFriday2BitComparator2.jpg

Now that's just cheating.

So I’m stuck on a problem building a 2-bit comparator block diagram (or circuit). I’ve developed the truth table already and had no problems. Our outputs were W,X,Y and W = A=B, X= A>B, Y = A<B. For A=B I put 2 XNOR gates feeding into an AND gate. I don’t understand how to create a logic circuit for AB. If someone could please explain that would be very helpful!

Two “two bit” quantities (i.e.: 00, 01, 10, 11 each one) or two bits one against the other?