GATE / CS ARCHIVE

SIMILAR QUESTIONS / DIGITAL LOGIC

Solve stable states of feedback logic

4 questions solved the same way, newest first. Back to Digital Logic

How these are solved

Write fixed-point output equations for each external input setting; identify forced outputs versus retained previous values and latch behavior. Static feedback/latch behavior only; not clocked next-state traces or transient propagation delay.

1 mark · MCQ
Report issue

Flip-Flops, Registers & Sequential Circuits

Question 21, GATE 2023: A 2:1 multiplexer has its output Q fed to input 0 and external data D at input 1, controlled by S. Is it equivalent to A a D flip-flop; B a D latch; C a half-adder; D a demultiplexer?
Tap to enlarge
Your answer
Answer & solution

Official answer: B

The feedback wire reaches mux input 0 and the external data wire reaches input 1. When S=0 the output feeds itself, holding the stored value; when S=1 the output follows the data continuously. This is a level-sensitive D latch, not an edge-triggered flip-flop.

Teaching detail. The mux equation is Qnext=(NOT S)Q+SD. At S=0 it reduces to Qnext=Q, providing storage through feedback. At S=1 it reduces to Qnext=D, so changes in D can propagate for the whole enabled level. An edge-triggered device would sample only at a clock transition, which this circuit does not implement. Calling the component a latch also assumes ordinary stable operation of the feedback circuit rather than treating its loop as a feed-forward combinational expression.

Original paper, page 19 · Answer key

1 mark · MCQ
Report issue

Both inputs low in a NAND latch

Flip-Flops, Registers & Sequential Circuits

Question 18, GATE 2004: An SR latch consists of two cross-coupled NAND gates. What happens while both external S and R inputs are held at 0?
Options:
(A) Q=0,Q′=1
(B) Q=1,Q′=0
(C) Q=1,Q′=1
(D) Indeterminate states
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

1. Each NAND gate has a forced 0 input, so both outputs are 1 regardless of feedback: Q=1,Q′=1, C. These labels cease to be complements in this forbidden input condition.

2. Indeterminacy can arise when both inputs are subsequently released together, not while both remain 0.

3. Teaching check: For a NAND gate, NAND(0,z)=1 for either z. Applying that fact to both cross-coupled gates resolves the held-input state without timing analysis. The later release race is a different event and must not replace the question’s fixed-input condition.

Original paper, page 3

2 marks · MSQ
Report issue

Steady state of a feedback circuit

Flip-Flops, Registers & Sequential Circuits

Question 2.8, GATE 1999: The circuit has u=NAND(A,Y),v=NAND(B,u),Y=AND(C,v). Given steady Y=1, select ABC from 001,011,101,111.
Tap to enlarge
Select all that apply
Answer & solution

Answer: A,C,D (no official key was published)

Substitute the required Y=1 into the first gate: u=¬A. The second gives v=¬(B·¬A)=¬B+A. For the output AND to be one, C=1 and v=1 are required. Thus either A=1 or B=0, with C=1. The allowed listed triples are 001,101,111, namely A,C,D; 011 gives v=0 and fails. This is a fixed-point calculation, not a claim about which state an arbitrary initial circuit will reach. NAND bubbles were checked in the clearer alternate diagram.

Original paper, page 4

4 marks · Descriptive
Report issue

Feedback majority circuit

Flip-Flops, Registers & Sequential Circuits

Question 5(a), GATE 1991: Three two-input AND gates form aQ, ab and bQ; their outputs feed a three-input OR whose output Q is fed back to the first and third AND gates. Complete the output table for inputs ab=00,01,10,11, allowing for the prior stable output.
Tap to enlarge
Answer & solution

Answer: 00→0; 01→previous Q; 10→previous Q; 11→1. (no official key was published)

Denote the previously stable feedback value by Q_old. Reading each gate gives Q_new = aQ_old + ab + bQ_old. This is the majority function of a, b and Q_old, not a memoryless two-input gate.

For a=b=0 all three products vanish, so the circuit resets to 0. For a=0,b=1 only bQ_old remains, so the old output is retained. For a=1,b=0 only aQ_old remains, also retaining the old value. For a=b=1 the middle product ab forces 1 irrespective of the old state. Thus the requested table, in row order 00,01,10,11, is 0,Q_old,Q_old,1.

A connection schematic is: AND(a,Q) ┐; AND(a,b) ├→ OR → Q; AND(b,Q) ┘, with Q returned to the indicated inputs. This is a two-input Muller C-element: equal inputs update the state, unequal inputs hold it. Without an initial condition the held value cannot be replaced by a numerical zero or one. The table describes settled behavior and does not assert that arbitrary simultaneous input changes are hazard-free.

Original paper, page 5