GATE / CS ARCHIVE

GATE CSE 2001 / QUESTION 2.8

Registered edge detector timing

Digital Logic · Flip-Flops, Registers & Sequential Circuits · Full GATE CSE 2001 paper

GATE 2001, Q2.8 2 marks · MCQ
Report issue

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