0
\$\begingroup\$

You are given a free running clock with a duty cycle of 50% and a digital waveform f which changes only at the negative edge of the clock. Which one of the following circuits (using clocked D flip-flops) will delay the phase of f by 180°?

A

enter image description here

B

enter image description here

C

enter image description here

D

enter image description here

My Doubt: I'm CS student, I'm getting confused with this type of question in which frequency, phase is asked. I know about basic flip flop and counter very clearly but how to approach such type of questions please help.

\$\endgroup\$
3
  • \$\begingroup\$ You may wanna share your thoughts? \$\endgroup\$
    – po.pe
    Jul 8, 2020 at 8:57
  • 1
    \$\begingroup\$ Approach with pen and paper, and by drawing the input and output waveforms for each input and output. The answer can then be seen from the waveforms. \$\endgroup\$
    – Justme
    Jul 8, 2020 at 9:09
  • 1
    \$\begingroup\$ 180 degrees of what? f, or clock? Without knowing that the question cannot be answered, though you may be able to eliminate some of the wrong answers. If 180 degrees of f, you need to know the frequency of f, which is unstated (though you can establish an upper bound on it). This is a badly formed question. \$\endgroup\$
    – user16324
    Jul 8, 2020 at 9:32

2 Answers 2

1
\$\begingroup\$

You are given a free running clock with a duty cycle of 50% and a digital waveform f which changes only at the negative edge of the clock. Which one of the following circuits (using clocked D flip-flops) will delay the phase of f by 180°?

It is not possible to answer the question because it does not say what the waveform "f" is.

If f is a random digital waveform like bits on a data line, then the concept of "phase of f" does not apply to it.

If f is actually a periodic waveform, then the concept of "phase of f" would apply to it, and "180° phase" would mean to delay it by a number of clock cycles equal to half a period of f. But the question does not say what the period of f is, so it can't be answered.

If we upgrade the question to this:

a digital waveform f which changes only at every negative edge of the clock.

Then it can be answered, as f is now a periodic signal with 50% duty cycle, its frequency is half the clock frequency, and its edges are aligned with negative edges of the clock.

Well, acksually, it still can't be answered, because we don't know the setup/hold time. If comes out of a flop clocked on the negative edge, then f will change state just a bit after the negative edge, and if that can be fed as an input to a negative clocked flop without violating setup/hold timings, then the answer is a single negative clocked flop. Unless the inverter on the clock adds enough delay to violate the timing, of course. So I'll just assume this obvious answer is wrong for some reason.

I'll assume the question also doesn't mean something like "delay it by a half clock cycle", because who knows.

Now, f is a periodic signal, so to phase shift it by 180° a single inverter should be enough (neglecting delay). That's not in the answer list, so the question is probably about flops instead.

f's frequency is half the clock frequency, so delaying it by 180° means delay it by 1 clock cycle. And the output signal edges should be aligned with the clock negative edges. This means the second flop should have an inverter in its clock input, so it switches on negative clock edges. So we eliminate answer "b".

Answer "d" both inverts and delays f by 1 clock cycle, which is not what we want.

So it's either a or c which are identical. In this case the first flop latches in f when clock is riging, and the second flop latches it when clock is falling, resulting in a delay of 1 clock cycle.

\$\endgroup\$
0
0
\$\begingroup\$

The options A and C are the same. Those should do the delaying of waveform f by 180 deg. The second flop needs to be on the negative edge as these are, that way the output wave will be changing at the negative edges, just like the input f changes on the negative edge. I tried that out with a timing diagram and that worked out to delay 180 degrees the input waveform f.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.