Magnitude Comparator :
A combinational circuit that compares two input bits is called magnitude comparator.It consists of two input bits and three output bits.
If the input bits are X and Y then the output bits are corresponding to one of the case, X>Y, X=Y or X<Y.
We can write a table for magnitude comparator as :
F1 =X'Y'+XY = X (Ex-NOR)Y
The logic diagram for this implementation is as below: