Skip to main content

GATE CSE 2004Digital Logic › Boolean Algebra & MinimizationVerified

GATE CSE 2004 PYQ: A circuit outputs a digit in the form of 4 4 4 bits. 0 0 0 is represented by 0000 , 1 0000, 1 0000 , 1 by…

A circuit outputs a digit in the form of 4 bits. 0 is represented by 0000,10000, 1 by 0001,…,90001, \ldots, 9 by 1001. A combinational circuit is to be designed which takes these 4 bits as input and outputs 1 if the digit ≥\geq 5, and 0 otherwise. If only AND,OR\textsf{AND}, \textsf{OR} and NOT\textsf{NOT} gates may be used, what is the minimum number of gates required?

  1. A
    2
  2. B
    3
    Correct answer
  3. C
    4
  4. D
    5

Answer

(B) 3 3 3

Approach

Encode the 4-bit input as A B C D (A the most significant, weight 8). Since only digits 0-9 are valid, the patterns 1010-1111 never occur and therefore act as don't-cares. Map output 1 for digit values 5 through 9, place the minterms and don't-cares on a K-map, and derive a minimal two-level expression; then count the AND/OR/NOT gates needed.

Treating the six impossible digit patterns (1010-1111) as don't-cares, the K-map gives the minimal expression A + B(C+D) = A + BC + BD. Implementing this with AND/OR/NOT gates and 2-input operators takes exactly 3 gates (one AND, two OR), which matches option B; all threshold community answers agree on 3.

Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.