GATE / CS ARCHIVE

SUBJECT COLLECTION

Digital Logic · Flip-Flops, Registers & Sequential Circuits

22 questions, newest first

GATE CSE has asked 22 questions on Flip-Flops, Registers & Sequential Circuits (Digital Logic) from 1991 to 2023, in 15 of the 46 papers; the most recent is in GATE CSE 2023. In the last five years it carried 0.1 marks per 100-mark paper on average, against 0.5 since 2003. Since 2014 the questions have been 5 MCQ and 1 NAT. 2 groups of questions here are solved the same way; “One per method” keeps the newest of each.

Browse topics
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

2 marks · MCQ
Report issue

Flip-Flops, Registers & Sequential Circuits

Question 28, GATE 2021: A synchronous three-bit T-flip-flop counter has outputs P,Q,R and common clock. The circuit connects R to T_P, complemented P to T_Q, and complemented Q to T_R. Starting at PQR=000, what are its next three states? A 011,101,000; B 001,010,111; C 011,101,111; D 001,010,000.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

The inspected wiring gives T_P=R, T_Q=¬P, T_R=¬Q, with a shared clock. Since a T flip-flop updates by Q_next=Q XOR T, the simultaneous transition equations are P_next=P XOR R, Q_next=Q XOR ¬P, R_next=R XOR ¬Q. From000 they give 011, then 101, then 000. Thus A. Every right-hand side uses the old state.

The transition trace is: old 000 gives T=(0,1,1), new 011; old 011 gives T=(1,1,0), new 101; old 101 gives T=(1,0,1), new 000. A T input of 0 holds its flip-flop and 1 toggles it. Since all receive the same clock, updating P first and then using the new P to compute Q would incorrectly simulate a sequential program instead of a synchronous circuit.

Original paper, page 25 · Answer key

1 mark · NAT
Report issue

Self-loops of a two-bit shift register

Flip-Flops, Registers & Sequential Circuits

Question 22, GATE 2018: Two positive-edge D flip-flops share a clock. External in feeds D1; Q1 feeds D2; output is Q2. How many states have a transition to themselves for at least one input?
Tap to enlarge
Answer & solution

Official answer: 2

Method

Both flip-flops sample their inputs at the same edge, so Q2 receives the old Q1, not the newly sampled input. With states written q1q2, input 0/1 transitions are: 00→00/10; 01→00/10; 10→01/11; 11→01/11. Only 00 and 11 appear among their own successors. This explicit table also shows why the mixed states cannot remain unchanged for either input.

Solution

Let the state be(q1, q2). On a positive clock edge the next state is(in, q1), because both flip-flops sample old values simultaneously. A self-loop requires in=q1=q2, possible only for 00 with input 0 and 11 with input 1. Exactly2 states have self-loops.

Original paper, page 9 · Answer key

2 marks · MCQ
Report issue

Flip-Flops, Registers & Sequential Circuits

Question 33, GATE 2017: Two flip-flops share a clock. T flip-flop output Q1 feeds the D input; D flip-flop output Q0 feeds the T input. Initial Q1Q0=11 before cycle 1. Select states after cycles 3 and 4: A (11,00); B (11,01); C (00,11); D (01,01).
Tap to enlarge
Your answer
Answer & solution

Official answer: B

1. A T flip-flop toggles when T=1 and holds when T=0, so Q1(next)=Q1 XOR Q0. A D flip-flop copies its input, so Q0(next)=Q1.

2. Both right-hand sides use the old state at the same clock edge. Starting 11, edge 1 gives 01, edge 2 gives 10, and edge 3 gives 11.

3. Edge 4 repeats the first transition and gives 01. Therefore the requested pair is (11,01), B. Updating one flip-flop before computing the other would incorrectly mix old and new states.

Original paper, page 15 · Answer key

2 marks · MCQ
Report issue

Flip-Flops, Registers & Sequential Circuits

Question 53, GATE 2015: Positive-edge D and JK flip-flops share a clock. D output drives both J,K; JK output drives D input. Initially D output=1, JK output=0. J=K=1 toggles JK; J=K=0 holds it. Both have nonzero propagation delay. Choose JK output including initial value: A 0110110…; B 0100100…; C 011101110…; D 011001100….
Tap to enlarge
Your answer
Answer & solution

Official answer: A

Denote outputs by d,j to distinguish the JK output from its input terminal names. At an edge d′=j. The JK output toggles exactly when d=1, so j′=j XOR d. Apply both using pre-edge values: (1,0)→(0,1)→(1,1)→(1,0). The JK column is 0,1,1,0,1,1,… . Nonzero propagation delay prevents treating one edge-triggered output update as an input sampled by the other at that same edge.

Solution: Let the old outputs be(D, J), where J denotes the JK output. At a common positive edge, Dnext=J and Jnext=J XOR D. From initial(1, 0), the state sequence is(0, 1),(1, 1),(1, 0), repeating every three edges. The JK output including its initial value is 0110110..., A. Both devices sample old outputs at the edge; propagation delays do not make the updates sequential.

Original paper, page 20 · Answer key

2 marks · MCQ
Report issue

Flip-Flops, Registers & Sequential Circuits

Question 45, GATE 2014: Three synchronous JK flip-flops have state Q2Q1Q0 initially 000 and a common clock. The drawing's wiring is J2=Q̅1,K2=Q0; J1=Q2,K1=Q̅2; J0=Q1,K0=Q̅0. The crossing before the first flip-flop is a wire jump, not a junction. Which are the next three states? A 001,010,011; B 111,110,101; C 100,110,111; D 100,011,001.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Step 1: Use the JK characteristic equation Q⁺=J Q̅+K̅ Q, evaluating every input from the same pre-edge state. Do not update flip-flops sequentially. Step 2: At 000, the three (J,K) pairs are (1,0),(0,1),(0,1), so Q2 sets and the other two remain reset: next state 100. Step 3: At 100 the pairs are (1,0),(1,0),(0,1), giving 110. At 110 they are (0,0),(1,0),(1,1), so Q2 holds, Q1 stays set and Q0 toggles to 1, giving 111. Step 4: The sequence is 100,110,111, C. Correctly interpreting the drawn wire jump is essential to these input equations.

Original paper, page 64 · Answer key

2 marks · MCQ
Report issue

Next state of a three-flip-flop counter

Flip-Flops, Registers & Sequential Circuits

Question 50, GATE 2011: Three synchronous D flip-flops have outputs P,Q,R. The source circuit connects R directly to D_P, a NOR of P and R to D_Q, and an AND of Q and the complemented R output to D_R. All sample simultaneously at a clock edge. If PQR=010 immediately before the edge, what is PQR afterward?

(A) 000
(B) 001
(C) 010
(D) 011
Question 50, GATE 2011: Three synchronous D flip-flops have outputs P,Q,R. The source circuit connects R directly to D_P, a NOR of P and R to D_Q, and an AND of Q and the complemented R output to D_R. All sample simultaneously at a clock edge. If PQR=010 immediately before the edge, what is PQR afterward?

(A) 000
(B) 001
(C) 010
(D) 011
Tap to enlarge
Your answer
Answer & solution

Official answer: D

Tracing the wires, including the bridge crossings, gives next-state equations P_next=R, Q_next=NOT(P OR R), and R_next=Q AND NOT R. The upper two gate inputs are P and R; the lower AND gate uses Q and the complemented output of R. All D flip-flops update simultaneously from the pre-edge values. For PQR=010 this gives P_next=0, Q_next=1, R_next=1, so the next state is 011, option D.

For a D flip-flop, the output after the edge equals its D input just before the edge. Substitute the old values P=0,Q=1,R=0 into all three equations: D_P=0; D_Q=NOT(0 OR 0)=1; D_R=1 AND NOT 0=1. Assemble the new values in P,Q,R order as 011. Do not feed the newly computed R back into P in this same step; that would model sequential assignments rather than simultaneous hardware sampling.

Original paper, page 14 · Answer key

1 mark · MCQ
Report issue

Half-clock delay with two-phase storage

Flip-Flops, Registers & Sequential Circuits

Question 8, GATE 2006: A free-running clock has 50% duty cycle; waveform f changes only at its falling edges. Which two-stage clocked-D circuit delays f by 180°? Textual circuit options specify (stage-1 D input, stage-1 clock, stage-1 output wired to stage-2 D, stage-2 clock); every final output is stage-2 Q. The source does not resolve whether “clocked D flip-flops” means level-sensitive stages or edge-triggered devices.
Options:
(A) (¬f, ¬clk, Q̄, clk)
(B) (¬f, clk, Q, ¬clk)
(C) (f, clk, Q, ¬clk)
(D) (f, ¬clk, Q̄, clk)
Question 8, GATE 2006: A free-running clock has 50% duty cycle; waveform f changes only at its falling edges. Which two-stage clocked-D circuit delays f by 180°? Textual circuit options specify (stage-1 D input, stage-1 clock, stage-1 output wired to stage-2 D, stage-2 clock); every final output is stage-2 Q. The source does not resolve whether “clocked D flip-flops” means level-sensitive stages or edge-triggered devices.
Options:
(A) (¬f, ¬clk, Q̄, clk)
(B) (¬f, clk, Q, ¬clk)
(C) (f, clk, Q, ¬clk)
(D) (f, ¬clk, Q̄, clk)
Tap to enlarge
Your answer
Answer & solution

Answer: A under the intended two-phase storage model (no official key was published)

1. In A the first D storage stage is enabled by inverted clock, receives ¬f, and exposes its complemented output, restoring f. The second stage is driven by the original clock.

2. Under a level-sensitive two-phase interpretation, a change of f at the falling edge propagates through the first stage during the low half-cycle and becomes visible through the second at the next rising edge: delay T/2, or 180 degrees of the clock. D gives the wrong polarity; B and C use the opposite phase order.

3. If these are literal falling-edge-triggered flip-flops, f changes at the sampling edge and setup/hold timing is unspecified, so reliable half-cycle delay is not guaranteed. The the paper says clocked D flip-flops without resolving this distinction.

4. Teaching check: Distinguish signal inversion from delay: feeding ¬f and then using Q̄ restores f’s polarity. The complementary clocks create the intended half-period separation. Reliable edge-triggered sampling additionally requires setup/hold margins, which the statement does not supply for f changing exactly at a clock edge.

Original paper, page 1

2 marks · MCQ
Report issue

XOR feedback register trace

Flip-Flops, Registers & Sequential Circuits

Question 37, GATE 2006: Three D flip-flops q₂,q₁,q₀ start at 000 and share a clock. Wiring: D₂=q₁, D₁=q₀⊕q₂, D₀=data. Feed the bits 100110000, left to right, one per clock. What is the final q₂q₁q₀?
Options:
(A) 000
(B) 001
(C) 010
(D) 101
Question 37, GATE 2006: Three D flip-flops q₂,q₁,q₀ start at 000 and share a clock. Wiring: D₂=q₁, D₁=q₀⊕q₂, D₀=data. Feed the bits 100110000, left to right, one per clock. What is the final q₂q₁q₀?
Options:
(A) 000
(B) 001
(C) 010
(D) 101
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

1. On each clock, update simultaneously(q2,q1,q0)←(q1,q0⊕q2,data). Starting000 and feeding 100110000 left to right gives 001,010,100,011,111,100,010,100,010.

2. The final state is 010, C. All right-hand-side register values are from before the clock edge.

3. Teaching check: Simultaneous updates mean q₂ receives the old q₁, not a value just calculated in the same cycle. Keep two state triples, old and new, when tracing. The supplied nine-bit string includes four trailing zero inputs; those clocks still shift and feed back state.

Original paper, page 5

2 marks · MCQ
Report issue

Clocked load-or-toggle circuit

Flip-Flops, Registers & Sequential Circuits

Question 62, GATE 2005: Positive-edge D flip-flop has D=A·X+Q′·X′ and output Y=Q. Before successive rising edges X=1, 1, 0, 1, 1; A takes A0, A1, A2, A3, A4. The source draws X changes exactly at some edges. Output over periods 1–5: A A0, A1, A1′, A3, A4; B A0, A1, A2′, A3, A4; C A1, A2, A2′, A3, A4; D A1, A2, A3, A4, A5. Explain the ideal sampling assumption.
Tap to enlarge
Your answer
Answer & solution

Answer: A under pre-edge sampling convention (no official key was published)

The combinational input is D=AX+Q′X′. Thus X=1 loads A and X=0 toggles the previous output. Sampling the values just BEFORE each rising edge, X is 1, 1, 0, 1, 1 and the available A values are A0, A1, A2, A3, A4. The outputs for periods 1–5 are therefore A0, A1, A1′, A3, A4, option A. Both drawings put X transitions exactly on rising edges; an actual device would require setup/hold timing to determine the result reliably. The answer uses the conventional idealized pre-edge interpretation rather than claiming that coincident physical transitions are well-defined.

Evaluate the next-state equation before each clock edge. With X=1 the second product vanishes, so D=A and the register loads that sample. With X=0 the first product vanishes, so D=¬Q and it toggles its previously stored value. The third edge therefore stores ¬A1 rather than an independent A2. This produces option A under pre-edge sampling. A real setup/hold violation at a coincident transition cannot be resolved solely from an ideal Boolean drawing.

Original paper, page 8

2 marks · MCQ
Report issue

Two flip-flop state sequence

Flip-Flops, Registers & Sequential Circuits

Question 64, GATE 2005: Two positive-edge D flip-flops start at Q0Q1=00. Wiring gives D0=¬Q0 and D1=Q0 XOR ¬Q1. Which repeating cycle? A00→11→01→00; B00→11→00; C00→10→01→11→00; D00→11→01→10→00.
Question 64, GATE 2005: Two positive-edge D flip-flops start at Q0Q1=00. Wiring gives D0=¬Q0 and D1=Q0 XOR ¬Q1. Which repeating cycle? A00→11→01→00; B00→11→00; C00→10→01→11→00; D00→11→01→10→00.
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

Read the wires as Q0(next)=Q0′ and Q1(next)=Q0 XOR Q1′. Simultaneous updates from 00 give 11; from 11 give 01; from 01 give 10; and from 10 return to 00. Thus the cycle is 00→11→01→10→00, D. Both source diagrams agree.

Both registers sample old values simultaneously. At 00, D0=1 and D1=0 XOR 1=1, producing 11. At 11, D0=0 and D1=1 XOR 0=1, producing 01. At 01, D0=1 and D1=0 XOR 0=0, producing 10. At 10, D0=0 and D1=1 XOR 1=0, returning 00. Do not update Q0 first and reuse its new value in the Q1 equation; that would describe different asynchronous behavior.

Original paper, page 8

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 · MCQ
Report issue

Registered edge detector timing

Flip-Flops, Registers & Sequential Circuits

Question 2.8, GATE 2001: Two positive-edge D flip-flops start at Q0=Q1=0. Their inputs are D0=X and D1=X·¬Q0; output Y=Q1. Setup time is 20 ns, hold time zero, and clock period at least 40 ns. The figure shows X rising after the first clock rising edge and falling before the sixth. Select the output trace: A one-cycle pulse from the second to third edge; B high from first to third; C first to second; D later sustained high. Exact timing drawing remains linked.
Question 2.8, GATE 2001: Two positive-edge D flip-flops start at Q0=Q1=0. Their inputs are D0=X and D1=X·¬Q0; output Y=Q1. Setup time is 20 ns, hold time zero, and clock period at least 40 ns. The figure shows X rising after the first clock rising edge and falling before the sixth. Select the output trace: A one-cycle pulse from the second to third edge; B high from first to third; C first to second; D later sustained high. Exact timing drawing remains linked.
Tap to enlarge
Your answer
Answer & solution

Answer: A under the ideal synchronous timing model (no official key was published)

Step 1: At each positive clock edge, Q0_next=X and Y_next=X·¬Q0_old. Both flip-flops sample old pre-edge signals, so the second stage cannot use the newly updated Q0 in the same sampling event.

Step 2: Initially Q0=Y=0. X rises after the first shown rising clock edge. At the next rising edge X=1 while old Q0=0, so Q0 becomes 1 and Y becomes 1. At the following rising edge X remains 1 but old Q0=1, so Y becomes 0. Later edges keep Y low, including after X falls.

Thus Y has one clock-period pulse starting at the second rising edge, plot A. The displayed separation is interpreted as meeting the 20 ns setup requirement, with negligible unprovided gate/clock-to-Q delays; period alone would not guarantee timing for an arbitrarily placed X transition.

Original paper, page 4

2 marks · MCQ
Report issue

Three-bit feedback shift-register sequence

Flip-Flops, Registers & Sequential Circuits

Question 2.12, GATE 2001: A synchronous three-bit register starts Q0=1,Q1=Q2=0. Wiring gives D0=Q1 XOR Q2,D1=Q0,D2=Q1. State number is 4Q2+2Q1+Q0. Choose cycle A 1,3,4,6,7,5,2; B 1,2,5,3,7,6,4; C 1,2,7,3,5,6,4; D 1,6,5,7,2,3,4.
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

Step 1: Read the wiring as Q0_next=Q1 XOR Q2, Q1_next=Q0, Q2_next=Q1, all using the old state. The displayed numeric state is 4Q2+2Q1+Q0.

Step 2: Starting 001, successive triples are 010,101,011,111,110,100, then 001 again. For example 010 gives new Q0=1 XOR 0=1,new Q1=0,new Q2=1, hence 101.

Thus the decimal cycle is 1,2,5,3,7,6,4, option B. Computing updates in place rather than simultaneously would produce a different, incorrect sequence.

Original paper, page 5

Descriptive
Report issue

Minimized J-K excitation for a state bit

Flip-Flops, Registers & Sequential Circuits

Question 11(b), GATE 2001: Initially copy input bits. After two consecutive input zeros, complement following bits; after two consecutive input ones while complementing, return to copying. The triggering second bit still uses the old mode. Use J-K flip-flops. Encode A=00, B=01, C=10, D=11 with mode bit M and pending-pair bit P. Input x; output y=x XOR M.

Task: Give minimized sum-of-products expressions for the J and K inputs of one state flip-flop.
Question 11(b), GATE 2001: Initially copy input bits. After two consecutive input zeros, complement following bits; after two consecutive input ones while complementing, return to copying. The triggering second bit still uses the old mode. Use J-K flip-flops. Encode A=00, B=01, C=10, D=11 with mode bit M and pending-pair bit P. Input x; output y=x XOR M.

Task: Give minimized sum-of-products expressions for the J and K inputs of one state flip-flop.
Tap to enlarge
Shared context

Initially copy input bits. After two consecutive input zeros, complement following bits; after two consecutive input ones while complementing, return to copying. The triggering second bit still uses the old mode. Use J-K flip-flops. Encode A=00, B=01, C=10, D=11 with mode bit M and pending-pair bit P. Input x; output y=x XOR M.

Answer & solution

Answer: For mode flip-flop: J_M=P¬x, K_M=Px. Optionally J_P=Mx+¬M¬x and K_P=1. (no official key was published)

1. Use the four-state transition table from part (a), encoding copy states A,B with M=0 and complement states C,D with M=1. P=1 denotes B or D, where a triggering first bit is pending.

2. A J-K flip-flop obeys Q⁺=J¬Q+¬KQ. To change 0→1 requires J=1 (K don’t-care); 0→0 requires J=0; 1→0 requires K=1 (J don’t-care); and 1→1 requires K=0.

3. When M=0, the mode changes to 1 only in B (P=1) on x=0. Therefore J_M=P¬x. For M=1, J_M is irrelevant and these excitation don’t-cares allow the M literal to be omitted.

4. When M=1, the mode changes to 0 only in D (P=1) on x=1. Therefore K_M=Px, likewise independent of M after using its don’t-cares. Each is a single two-literal product and is already minimized SOP.

5. For a complete implementation, P=0 changes to 1 precisely when x=M (A on 0 or C on 1), giving J_P=Mx+¬M¬x. From either P=1 state the next P is always 0, so K_P=1. Reset both bits to 0 and use y=x XOR M.

Original paper, page 8

2 marks · MCQ
Report issue

Master-slave flip-flop updates

Flip-Flops, Registers & Sequential Circuits

Question 2.12, GATE 2000: A JK master-slave flip-flop P has J=K=1; its output feeds a D master-slave flip-flop Q with the shared clock. Starting(P,Q)=(0,1), find the state after three cycles from choices(1,0),(1,1),(0,0),(0,1).
Question 2.12, GATE 2000: A JK master-slave flip-flop P has J=K=1; its output feeds a D master-slave flip-flop Q with the shared clock. Starting(P,Q)=(0,1), find the state after three cycles from choices(1,0),(1,1),(0,0),(0,1).
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

Step 1: J=K=1 makes P toggle each cycle. Q captures the previous P through its D input; the master-slave arrangement prevents using the newly changed P as the same-cycle input.

Step 2: Apply(P_next,Q_next)=(¬P,P_old): (0,1)→(1,0)→(0,1)→(1,0).

After three cycles the state is(1,0), A. Sequentially updating Q from the new P would incorrectly erase the intended synchronous delay.

Original paper, page 4

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

5 marks · Descriptive
Report issue

Synchronous sequential circuit

Flip-Flops, Registers & Sequential Circuits

Question 11, GATE 1994: For the shown common-clock circuit, initial Q2Q1Q0=000. Find the state after four clock pulses. The Q2 flip-flop is JK with J=Q̅0,K=1; Q1 is D with D=Q2; Q0 is T with T=Q1.
Tap to enlarge
Answer & solution

Answer: 011 (no official key was published)

1. All flip-flops sample their inputs from the same pre-edge state. JK gives Q2(next)=J·Q̅2+K̅·Q2=Q̅0·Q̅2. D gives Q1(next)=Q2. T gives Q0(next)=Q0 XOR Q1.

2. Starting at 000, the first pulse gives 100. The second gives 010. The third gives 101. The fourth gives 011.

3. Do not propagate a freshly changed Q2 into Q1 during the same edge; that would model a different asynchronous circuit.

Diagram / structural description

Common clock to JK(Q2), D(Q1), T(Q0). Q2→D; Q1→T; inverted Q0 feedback→J; K tied to logic 1.

Original paper, page 5

2 marks · MSQ
Report issue

Clocking and logic hazards

Flip-Flops, Registers & Sequential Circuits

Question 3(ii), GATE 1991: Choose the advantage of synchronous over asynchronous sequential circuits: faster operation, easier hazard avoidance, less hardware, better noise immunity, none.
Question 3(ii), GATE 1991: Choose the advantage of synchronous over asynchronous sequential circuits: faster operation, easier hazard avoidance, less hardware, better noise immunity, none.
Tap to enlarge
Select all that apply
Answer & solution

Answer: B: easier avoidance of hazard-related errors (no official key was published)

A synchronous design samples state on designated clock events. If combinational signals settle and setup/hold constraints are met before those events, intermediate glitches need not become incorrect stored states. This makes hazard management more systematic than in an asynchronous network whose transitions can directly trigger further state changes. The clock does not eliminate glitches or metastability automatically. Nor does synchrony inherently guarantee greater speed, smaller hardware or electrical noise immunity. The advantage is controlled observation time, subject to correct timing design.

Original paper, page 3

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

5 marks · Descriptive
Report issue

Three-bit parallel-load shift register

Flip-Flops, Registers & Sequential Circuits

Question 6(a), GATE 1991: Using D flip-flops and gates, design a three-bit parallel-in/serial-out register shifting left to right. Inputs: CLK, parallel A,B,C; serial input S; LOAD/SHIFT control.
Tap to enlarge
Answer & solution

Answer: For L=1 load: D0=LA+L′S, D1=LB+L′Q0, D2=LC+L′Q1; serial output Q2. (no official key was published)

Let Q0,Q1,Q2 be the stored bits from left to right. Define L=1 as LOAD and L=0 as SHIFT, consistent with the uncomplemented LOAD and complemented SHIFT label. Place a 2:1 multiplexer before each D flip-flop and connect all three clock pins to CLK.

Connection schematic

A ─load─┐   B ─load─┐    C ─load─┐
S ─shift┴MUX→DFF Q0 ─shift┴MUX→DFF Q1 ─shift┴MUX→DFF Q2→OUT

Each MUX uses L as select; all DFFs use the same active clock edge.

The gate equations are D0=(L AND A) OR (NOT L AND S), D1=(L AND B) OR (NOT L AND Q0), D2=(L AND C) OR (NOT L AND Q1). Implement each mux with two AND gates and one OR gate, sharing an inverter for L.

On a load edge the state becomes (A,B,C). On successive shift edges it becomes (S1,A,B), then (S2,S1,A), then (S3,S2,S1). The bits shifted out, measured just before those edges, are C,B,A. All right-hand sides use the old state because the flip-flops update together; using the newly updated Q0 to compute Q1 would incorrectly move a bit through several stages in one clock. An asynchronous reset is optional, not required for loading.

Original paper, page 5

5 marks · Descriptive
Report issue

RAM-based 1024-bit serial delay

Flip-Flops, Registers & Sequential Circuits

Question 6(b), GATE 1991: Design a 1024-bit serial-in/serial-out unidirectional shift register using a 1K×1 RAM with Din,Dout and READ/WRITE control, plus standard gates, registers and counters.
Tap to enlarge
Answer & solution

Answer: Use a modulo-1024 address counter and read-before-write phases: capture old RAM[p] as output, overwrite RAM[p] with input, then advance p. (no official key was published)

A literal shift of all 1024 RAM cells on every bit would be wasteful. Instead, regard the RAM as a circular queue. Use a 10-bit binary counter p connected to RAM address A9..A0, an input holding flip-flop I, an output flip-flop O, and a two-phase controller.

Schematic

serial IN→I→RAM Din; counter p[9:0]→RAM address; RAM Dout→O→serial OUT.
Controller→{I clock, RAM READ/WRITE, O clock, counter enable}.

For each external shift event: (1) latch the incoming bit in I and keep p stable; (2) select READ, wait for RAM access time, and clock Dout into O; (3) select WRITE and store I at the same p, meeting write pulse/setup/hold timing; (4) return to READ and increment p modulo 1024. The output must be captured before the write, since the RAM’s read-during-write behavior is not specified.

After initialization, address p holds the oldest of the 1024 retained bits. Reading emits that bit, overwriting appends the new bit, and incrementing makes the next-oldest location the head. Inductively, input bit s[k] is emitted on shift event k+1024, where an event’s output means the bit removed on that event. The first 1024 outputs depend on the RAM’s initial contents. To emulate a reset-to-zero shift register, clear every RAM location during a separate initialization sweep. The external shift period must accommodate both the read and write phases.

Original paper, page 5