A digital comparator is a combinational logic circuit that compares the magnitudes of two binary numbers (or quantities)
It takes these two numbers as its inputs and typically produces outputs indicating whether the first number is greater than, equal to, or less than the second number
Therefore, a digital comparator fundamentally requires two inputs (the two numbers being compared, A and B)
Each input A and B may consist of multiple bits (e
g
, comparing two 4-bit numbers), but there are two distinct number inputs