Multiple choice

The out put Y of a 2 - bit comparator is logic 1 whenever the 2 - bit input A is greater than the 2 - bit input B. The number of combinations for which the output is logic 1, is

  1. 4

  2. 6

  3. 8

  4. 10

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

For a 2-bit comparator checking if A > B, we enumerate cases: A=01,B=00; A=10,B={00,01}; A=11,B={00,01,10}. This gives 1+2+3=6 combinations where output is 1. Total combinations for two 2-bit inputs is 16, but only 6 satisfy A > B.