Question

Consider the Karnaugh map given below, where X represents "don't care" and blank represents 0.

4 by 4 Karnaugh map for a 4-variable Boolean logic function with row variables dc and column variables ba. Column headers are 00, 01, 11, 10. Row headers are 00, 01, 11, 10. Cells contain: row 00 has X at 01 and 11; row 01 has 1 at 00 and X at 10; row 11 has 1 at 00 and 1 at 10; row 10 has X at 01 and X at 11.

Assume for all inputs (a,b,c,d)(a, b, c, d), the respective complements (a‾,b‾,c‾,d‾)(\overline{a}, \overline{b}, \overline{c}, \overline{d}) are also available. The above logic is implemented using 2-input NOR gates only. The minimum number of gates required is ______.

Official answer and solution
Official answer
1
From
Official GATE 2017 answer key

Solution

Extract the simplified Boolean function from the Karnaugh map, then express it using 2-input NOR gates given inverted inputs.

From the Karnaugh map:

  • Row variables are dcdc in order: 00, 01, 11, 10.
  • Column variables are baba in order: 00, 01, 11, 10.
  • The cells containing 1 are:
    • (dc=01,ba=00)(dc = 01, ba = 00)
    • (dc=11,ba=00)(dc = 11, ba = 00)
    • (dc=11,ba=10)(dc = 11, ba = 10)
  • The cells containing X (don't care) are:
    • (dc=00,ba=01)(dc = 00, ba = 01)
    • (dc=00,ba=11)(dc = 00, ba = 11)
    • (dc=01,ba=10)(dc = 01, ba = 10)
    • (dc=10,ba=01)(dc = 10, ba = 01)
    • (dc=10,ba=11)(dc = 10, ba = 11)

Consider grouping the 1s:
Notice that cells (dc=01,ba=00)=1(dc=01, ba=00)=1, (dc=01,ba=10)=X(dc=01, ba=10)=X, (dc=11,ba=00)=1(dc=11, ba=00)=1, and (dc=11,ba=10)=1(dc=11, ba=10)=1 form a quad of 4 adjacent cells across rows dc∈{01,11}dc \in \{01, 11\} and columns ba∈{00,10}ba \in \{00, 10\}.

In this quad:

  • For rows dc∈{01,11}dc \in \{01, 11\}, variable cc is constant at 1.
  • For columns ba∈{00,10}ba \in \{00, 10\}, variable aa is constant at 0 (i.e., a‾\overline{a}).
    Hence, this quad corresponds to the product term:
F=ca‾F = c \overline{a}

This single term covers all three 1s in the K-map.

We are given that all inputs (a,b,c,d)(a, b, c, d) and their complements (a‾,b‾,c‾,d‾)(\overline{a}, \overline{b}, \overline{c}, \overline{d}) are available. We need to implement F=ca‾F = c \overline{a} using 2-input NOR gates only.
Recall that a 2-input NOR gate computes:

NOR(X,Y)=X+Y‾=X‾⋅Y‾\text{NOR}(X, Y) = \overline{X + Y} = \overline{X} \cdot \overline{Y}

Setting X=c‾X = \overline{c} and Y=aY = a:

NOR(c‾,a)=c‾+a‾=c‾‾⋅a‾=ca‾=F\text{NOR}(\overline{c}, a) = \overline{\overline{c} + a} = \overline{\overline{c}} \cdot \overline{a} = c \overline{a} = F

Because c‾\overline{c} and aa are directly available, exactly 1 two-input NOR gate is sufficient to produce FF.

Final answer

1.0

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

Source

Paper
GATE 2017 Computer Science and Information Technology (CS) Session 1
Question
21 of 65, printed as CS Q.21
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.