Comparator
A comparator is a hardware electronic device that takes two numbers as input ( A & B) in binary form and determines whether one number is greater than, less than or equal to the other number.
Comparator symbol
Comparator circuits
Comparator truth table
A | B | A > B | A = B | A < B |
---|---|---|---|---|
0 | 0 | 0 | 1 | 0 |
0 | 1 | 0 | 0 | 1 |
1 | 0 | 1 | 0 | 0 |
1 | 1 | 0 | 1 | 0 |