How to Design a 4 bit Magnitude Comparator Circuit? Example

magnitude comparator circuit

Two numbers are greater or less than :

To illustrate whether A is greater than or less than B, we check the relative magnitudes of pairs of significant digits, starting from the most significant digit. If the two digits of a pair are same, we compare the next lower significant pair of digits. The comparison continues till a pair of unequal digits is reached.