The output Y of a two-bit comparator is logic 1 whenever the two-bit input A is greater than the two-bit input B. The number of combinations for which the output is logic 1, is
(a) 4 (b) 6 (c) 8 (d) 10
Output will be 1 if A > B. Now, A can be greater than B for the following conditions:
i. If B = 00, there will be three combinations for which O/P will be 1, that is, when A = 01, 10, or 11.
ii. If B = 01, there will be two conditions, that is, A = 10 and 11.
iii. If B = 10, there will be one condition, that is, A = 11.
Therefore, there are a total of six combinations for which output is in logic `1’ state.
Ans. (b)