GATE / CS ARCHIVE

GATE CSE 2015 SET 1 / QUESTION 53

GATE CSE 2015 Set 1 Q53

Digital Logic · Flip-Flops, Registers & Sequential Circuits · Full GATE CSE 2015 Set 1 paper

GATE 2015 Set 1, Q53 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