IAE Academy

GATE 2018 EC Q.47: solution and answer

GATE 2018 · ECQ.47 · 2 marks · NAT

The logic gates shown in the digital circuit below use strong pull-down nMOS transistors for LOW logic level at the outputs. When the pull-downs are off, high-value resistors set the output logic levels to HIGH (i.e. the pull-ups are weak). Note that some nodes are intentionally shorted to implement "wired logic". Such shorted nodes will be HIGH only if the outputs of all the gates whose outputs are shorted are HIGH.

[Figure]

The number of distinct values of (out of the 16 possible values) that give is ________.

GATE 2018 EC question 47: Inputs X0, X1, X2, X3 on the left;Tap to open full size
Figure from the GATE 2018 EC paper. It is part of the question.
Figure description

Inputs X0, X1, X2, X3 on the left; output Y on the right. (1) X0 feeds a NOT gate; a junction on the X0 line before the NOT also carries X0 directly to the TOP input of a 2-input AND gate. (2) X1 and X2 feed a 2-input XOR gate. (3) X3 feeds a second NOT gate; a junction on the X3 line before that NOT runs a wire along the bottom of the drawing to the BOTTOM input of a 2-input OR gate. (4) The XOR output goes to a junction; from it a wire goes up to the BOTTOM input of the AND gate and down to the output of the X3 NOT gate, so the XOR output and the output of NOT(X3) are shorted together (wired node). (5) The output of NOT(X0) runs right and then down to a junction at the AND gate's output, so the output of NOT(X0) and the AND output are shorted together (wired node). That wired node runs down to the TOP input of the OR gate. (6) The OR gate output is Y.

Answer and solution

ANSWER

, so 8 of the 16 values of give .

Official answer: 8Source: Official answer key, GATE 2018 EC (IIT Guwahati)

  1. Wired-AND rule. The pull-downs are strong and the pull-ups are weak. So when several gate outputs are shorted together, any one output that is LOW pulls the node LOW, and the node is HIGH only if every tied output is HIGH. Each shorted node therefore carries the AND of the outputs tied to it. (In what follows, means the complement of .)

  2. Node at the AND gate's lower input. The XOR output is shorted to the output of NOT(), so this node carries

  3. AND gate output. Its top input is itself, taken from the junction before the inverter. Its bottom input is . So it outputs .

  4. Node at the OR gate's upper input. The AND output is shorted to the output of NOT(), so this node carries because . You can also see it directly: if , NOT() outputs LOW; if , the AND gate outputs LOW. Either way one of the two tied outputs is LOW, and it pulls the node down.

  5. OR gate. Its lower input is , taken directly from the junction before the second inverter, so

  6. Count the input words. exactly when . , and can each be anything, so of the 16 combinations give .

KEY IDEA

With strong pull-downs and weak pull-ups, a shorted node is the AND of every output tied to it (wired-AND). The node at the OR gate's upper input ties to , so it is always 0. That leaves .

WATCH OUT FOR

Treating the shorted nodes as wired-OR, or ignoring the shorts and reading each wire as a single gate's output. A second slip is to feed (instead of ) into the AND gate, or (instead of ) into the OR gate. Both taps are taken before the inverters.

From the GATE 2018 EC paper. Every question of this paper · Download the full paper · All 22 Boolean logic questions, with notes

More Boolean logic questions