Skip to content
GATEiit

GATE EC 2025 Q45: Mux-and-flip-flop sequential circuit: output sequence

Syllabus topics: Latches and flip-flops; Multiplexers

Question

A positive-edge-triggered sequential circuit is shown below. There are no timing violations in the circuit. Input P0 is set to logic '0' and P1 is set to logic '1' at all times. The timing diagram of the inputs SEL and S are also shown below.

Circuit: a 2-to-1 mux (input 1 = S, input 0 = P0, select SEL) drives D of flip-flop 1 (clock CLK). Q of flip-flop 1 goes to input 1 of a second 2-to-1 mux whose input 0 is P1 and select is SEL; that mux drives D of flip-flop 2 (clock CLK). The Q-bar outputs of both flip-flops feed a 2-input XOR gate whose output is Y. Timing diagram: CLK is a square wave; dashed lines T0, T1, T2, T3 are at four successive falling edges, so a rising edge occurs just before each of T0, T1, T2, T3. SEL is 0 until just after T0, is 1 from just after T0 until just after T2, then 0. S is 0 until just after T1, is 1 from just after T1 until just after T3, then 0.
Tap the figure to enlarge

The sequence of output Y from time T0 to T3 is ________.

Try it: multiple choice: exactly one correct option

Select one option
Wrong answer costs 2/3 mark in GATE.
Show answer and explanation

Answer: A (official GATE 2025 final answer key)

Concept used: Each flip-flop captures its mux output on the rising clock edge; Y=Q1‾⊕Q2‾=Q1⊕Q2.

Concept notes

Loading notes…

First step: Write D1=SEL⋅S+SEL‾⋅0 and D2=SEL⋅Q1+SEL‾⋅1, read SEL and S at each rising edge just before T0,T1,T2,T3, and update Q1,Q2 edge by edge.

Full step-by-step solution

Loading…

Answer from the official final answer key. Found a mistake? Use Report issue and we will fix it.

More questions on Latches and flip-flops

Every PYQ on this topic →

Share this question

WhatsAppDownload image

Source: official GATE 2025 EC question paper and final answer key, organised by IIT Roorkee. Question paper · Answer key