Digital Comparator 
References
Books:
- Digital Logic and Computer Design - M. Morris Mano. Pearson Education - Prentice Hall [Chapter 5-4]
- Digital Principles Foundation of Circuit Design and Application - Arun Kumar Singh. New Age Publishers. [Chapter 4.2.6]