A digital logic component that compares two binary numbers.

Equality Comparator
Section titled “Equality Comparator”Outputs whether the two numbers are equal or not.
Magnitude Comparator
Section titled “Magnitude Comparator”Outputs whether the two numbers are equal or less than or greater than.
1-bit Magnitude Comparator
Section titled “1-bit Magnitude Comparator”Suppose the comparator takes in and . And the output denotes whether is greater than .
n-bit Magnitude Comparator
Section titled “n-bit Magnitude Comparator”Let . denotes if .