Question

What is the minimum number of 2-input NOR gates required to implement a 4-variable function expressed in sum-of-minterms form as f=∑(0,2,5,7,8,10,13,15)f = \sum (0, 2, 5, 7, 8, 10, 13, 15)? Assume that all the inputs and their complements are available. Answer: ________.

Official answer and solution
Official answer
3
From
Official GATE 2019 answer key

Solution

Simplify the function using a Karnaugh map, express it in terms of available literals (inputs and complements), and synthesize it using 2-input NOR gates.

We are given the 4-variable function:

f(A,B,C,D)=∑(0,2,5,7,8,10,13,15)f(A, B, C, D) = \sum (0, 2, 5, 7, 8, 10, 13, 15)

Grouping the minterms in a 4-variable K-map:

  • Minterms 0,2,8,100, 2, 8, 10 form a 4-corner group corresponding to B′D′B'D'.
  • Minterms 5,7,13,155, 7, 13, 15 form a 4-cell group corresponding to BDBD.

Thus, the simplified Boolean expression is:

f=B′D′+BD=(B⊕D)′=B⊙Df = B'D' + BD = (B \oplus D)' = B \odot D

Notice that variables AA and CC are redundant and do not affect the output.

We are given that all inputs and their complements (B,B′,D,D′B, B', D, D') are available. A 2-input NOR gate computes NOR(X,Y)=(X+Y)′=X′Y′\text{NOR}(X, Y) = (X + Y)' = X'Y'.

We can synthesize ff using three 2-input NOR gates as follows:

  • Gate 1: NOR(B,D′)=(B+D′)′=B′D\text{NOR}(B, D') = (B + D')' = B'D
  • Gate 2: NOR(B′,D)=(B′+D)′=BD′\text{NOR}(B', D) = (B' + D)' = BD'
  • Gate 3: NOR(Gate 1,Gate 2)=(B′D+BD′)′=(B⊕D)′=B′D′+BD=f\text{NOR}(\text{Gate 1}, \text{Gate 2}) = (B'D + BD')' = (B \oplus D)' = B'D' + BD = f

All 3 gates are 2-input NOR gates, and every gate input is an available literal or an output of a preceding gate. Hence, the minimum number of 2-input NOR gates required is 3.

Final answer

3

Common trap

Assuming complements are not available, which would require extra NOR gates for inversion, or attempting to use all 4 variables without simplifying the K-map.

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2019 Computer Science and Information Technology (CS)
Question
60 of 65, printed as CS Q.50
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.