IAE Academy

GATE 2018 EC Q.46: solution and answer

GATE 2018 · ECQ.46 · 2 marks · NAT

In the circuit shown below, a positive edge-triggered D Flip-Flop is used for sampling input data using clock . The XOR gate outputs 3.3 volts for logic HIGH and 0 volts for logic LOW levels. The data bit and clock periods are equal and the value of , where the parameters and are shown in the figure. Assume that the Flip-Flop and the XOR gate are ideal.

If the probability of input data bit () transition in each clock period is 0.3, the average value (in volts, accurate to two decimal places) of the voltage at node , is ______.

GATE 2018 EC question 46: Circuit (left): input terminal D_in feeds the D input of a D Flip-Flop;Tap to open full size
Figure from the GATE 2018 EC paper. It is part of the question.
Figure description

Circuit (left): input terminal D_in feeds the D input of a D Flip-Flop; the same D_in node also branches up and over to the first (upper) input of a 2-input XOR gate. The flip-flop output Q goes to the second (lower) input of the XOR gate. The XOR output is node X. Input terminal CK drives the flip-flop's CLK input (edge-triggered, marked with a triangle). Timing diagram (right): CK is a square wave with period T_CK (marked between two successive rising edges), about 50% duty cycle; three rising edges are shown. D_in is drawn as a data-eye waveform (two parallel lines with crossovers) whose transitions (crossovers) occur a delay Δ T AFTER each rising edge of CK; the Δ T interval is marked between each rising edge (dashed line) and the following D_in crossover (dashed line), three times. The data bit period equals T_CK.

Answer and solution

ANSWER

The average voltage at node is .

Official answer: 0.82 to 0.86Source: Official answer key, GATE 2018 EC (IIT Guwahati)

  1. When does the flip-flop sample? changes after each rising edge of . So at every rising edge the flip-flop captures the bit that has been on since just after the previous edge. Call the rising edges and call the bit that appears on at . Then at edge the input still holds , and .

  2. Interval , just after the edge: has not changed yet, so . That makes in every period.

  3. Interval : has moved on to , but still holds until the next edge. So , which is 1 only if the data bit changed in this period. This interval lasts .

  4. Fraction of a period in which is HIGH, given a transition: . With no transition, for the whole period.

  5. Average over many periods (expected value): a transition happens in a period with probability , and is when HIGH, so

  6. To two decimal places, .

KEY IDEA

compares the new data bit with the previous bit held in the flip-flop. is HIGH only between the moment changes ( after an edge) and the next rising edge, when the flip-flop copies the new bit into . That window is long and appears only in periods where the data changes. So the average is .

WATCH OUT FOR

Taking the HIGH window of as instead of . That gives . The edge samples the OLD bit, because changes only after the edge. So lags for almost the whole period, not just for . Other slips are leaving out the transition probability (giving ) and multiplying by the clock's 50% duty cycle, which has nothing to do with the output.

From the GATE 2018 EC paper. Every question of this paper · Download the full paper · All 30 Sequential questions, with notes

More Sequential questions