written 6.0 years ago by | • modified 6.0 years ago |
Magnitude Comparator is a combinational circuit capable of comparing the relative magnitude of two binary numbers. It is one of the two types of digital comparator.
Figure shows the block diagram of n-bit magnitude comparator. It accepts two n-bit binary numbers, say A and B as inputs and produces one of the outputs: A>B, A=B and A<b.< p="">
One of the outputs will be high depending upon the relative magnitude. That is, output $A \gt B$ will be high if A is greater than B, output $A = B$ will be high if A and B are equal, and output $A \lt B$ will be high if A is less than B.
Its logic behaviour is same as adder. It does not return sum or carry. Magnitude comparators are used in central processing units and microcontrollers. This basic circuit for a magnitude comparator can be extended for any number of bits. Four bit magnitude comparators are very popular circuits and are commercially available.