IAE Academy

GATE 2023 CS Q.21: solution and answer

GATE 2023 · CSQ.21 · 1 mark · MCQ

The output of a 2-input multiplexer is connected back to one of its inputs as shown in the figure.

Match the functional equivalence of this circuit to one of the following options.

GATE 2023 CS question 21: A 2-to-1 multiplexer block labelled 'Multiplexer' with data inputs 0 and 1, select input S (at the bottom) and output Q…Tap to open full size
Figure from the GATE 2023 CS paper. It is part of the question.
Figure description

A 2-to-1 multiplexer block labelled 'Multiplexer' with data inputs 0 and 1, select input S (at the bottom) and output Q (on the right). The output Q is split: one branch goes to an external output terminal (dot) on the right, the other branch is routed up, over the top of the block and back down the left side into data input 0 (feedback). Data input 1 is connected to an external input terminal (dot) on the left. Select input S is connected to an external input terminal (dot) at the bottom left.

  1. (A)

    D Flip-flop

  2. (B)

    D Latch

  3. (C)

    Half-adder

  4. (D)

    Demultiplexer

Answer and solution

ANSWER

The circuit is equivalent to a D latch, option (B).

Official answer: BSource: Official answer key, GATE 2023 CS (IIT Kanpur)

  1. Read the wiring from the figure: data input is an external input, call it . The select line is external. Data input is fed from the output , so the output feeds back into the multiplexer.

  2. A 2-to-1 multiplexer gives . With (feedback) and this becomes

  3. Case : . The output follows the input, so the circuit is transparent.

  4. Case : . The output keeps its previous value, so the circuit holds (stores) its state.

  5. The behaviour is transparent while is high and holding while is low. That is a level-sensitive D latch with as the enable and as the data input, so the answer is (B).

  6. Why not the others: a D flip-flop updates only at a clock edge, not for the whole time a level is high. A half-adder has two outputs (sum and carry) and no memory. A demultiplexer has one data input and several outputs and has no feedback path.

KEY IDEA

Write the multiplexer equation with the output fed back into one input: . It follows when and holds when , which is a level-triggered D latch with as the enable.

WATCH OUT FOR

Calling it a D flip-flop because it stores a bit. A flip-flop samples only on a clock edge. This circuit is transparent for the whole time , so it is a latch.

From the GATE 2023 CS paper. Every question of this paper · Download the full paper · All 37 Sequential questions, with notes

More Sequential questions