+ Post New Thread
Results 1 to 9 of 9
-
5th July 2017, 10:11 #1
- Join Date
- Oct 2014
- Posts
- 114
- Helped
- 2 / 2
- Points
- 1,064
- Level
- 7
Unable to understand timing diagram of a digital ckt
Hi,
I was going through a ckt in Pedroni’s FSM book’s solution manual and was facing problems in its analysis. Hope, someone can help.
In the ckt shown in the picture, the output q of the flip flop is shown to be shifted by one clock cycle (the first rising edge of input x(d)) whereas my understanding is that output will be updated as soon as the input changes. This here is crucial as it will change the entire working of this ckt. Hence, pls. advise.
Thanks,
Hobbyicleaner
-
5th July 2017, 10:11
-
5th July 2017, 10:33 #2
- Join Date
- Jun 2010
- Posts
- 6,567
- Helped
- 1914 / 1914
- Points
- 35,892
- Level
- 46
Re: Unable to understand timing diagram of a digital ckt
D transfers to the Q output only on the rising edge of the clock, hence the 1 clock delay. This is how flip flops work.
The timing diagram is correct as per the circuit diagram.
-
5th July 2017, 10:37 #3
- Join Date
- Jan 2008
- Location
- Bochum, Germany
- Posts
- 41,962
- Helped
- 12764 / 12764
- Points
- 241,686
- Level
- 100
Re: Unable to understand timing diagram of a digital ckt
By nature of DFF, it's output changes only during the active clock edge. In so far the circuit behavior is as expectable.
I suggest to start the text book literature with the first chapters explaining DFF operation.
-
5th July 2017, 10:37
-
6th July 2017, 08:20 #4
- Join Date
- Oct 2014
- Posts
- 114
- Helped
- 2 / 2
- Points
- 1,064
- Level
- 7
Re: Unable to understand timing diagram of a digital ckt
OK... In that case pls. consider another question from the same chapter exercise solution where the functional response (left diagram) and timing response (right diagram) of a D flip flop are drawn. In both the cases, the output q is changing immediately on rising edge of clock with input d (the delays tpcq are shaded in grey colour in the right diagram). BTW, just to be clear, the delay between the rising edge of clock and the input x(d) of the snapshot in #1 is just tpcq.
Regards,
Hobbyiclearner
-
6th July 2017, 08:20
-
6th July 2017, 10:27 #5
- Join Date
- Jun 2010
- Posts
- 6,567
- Helped
- 1914 / 1914
- Points
- 35,892
- Level
- 46
Re: Unable to understand timing diagram of a digital ckt
What is the question? The diagrams are correct. The left diagram shows the simulation waveform with no inertial delay. The second diagram is what will occur on real hardware.
The Q output takes the D output on the rising edge of the clock. D is likely to change the clock before. Maybe that is your confusion?
-
6th July 2017, 10:46 #6
- Join Date
- Oct 2014
- Posts
- 114
- Helped
- 2 / 2
- Points
- 1,064
- Level
- 7
Re: Unable to understand timing diagram of a digital ckt
My question is.. in D Flip flop, will the change in input be reflected at the output during the same positive clock edge or next positive clock edge? As per diagram in post 1, the output is changing as per the input in the next positive clock edge but as per the diagrams in post 4, the output is changing as per the input in the same positive clock edge (ignoring delays).
Regards,
Hobbyicleaner
-
6th July 2017, 10:54 #7
- Join Date
- Jun 2010
- Posts
- 6,567
- Helped
- 1914 / 1914
- Points
- 35,892
- Level
- 46
Re: Unable to understand timing diagram of a digital ckt
stop thinking about "same" and "next".
Basically, on rising edge of clock, Q becomes whatever D is at that moment in time. There is no difference between the two diagrams, other than the inertial delay caused by circuit delays.
1 members found this post helpful.
-
6th July 2017, 11:10 #8
- Join Date
- Oct 2014
- Posts
- 114
- Helped
- 2 / 2
- Points
- 1,064
- Level
- 7
Re: Unable to understand timing diagram of a digital ckt
OK... then for the first diagram, at the rising edge of the clock, since the input was low (due to delay in change of input), the output was logic zero and so on. For the second diagram, the output changed as per the input during the rising edge of the clock after the tcpq delay (delay between clock edge arrival and output q arrival). Hope this explanation of the diagrams is correct. And yes, thanks for your patience.
Hobbyiclearner
-
6th July 2017, 11:10
-
6th July 2017, 11:20 #9
- Join Date
- Feb 2015
- Posts
- 850
- Helped
- 244 / 244
- Points
- 5,102
- Level
- 16
Re: Unable to understand timing diagram of a digital ckt
The diagram in post 4 intends to show that the input to the FF can change at any time during the cycle. It is only the input value at the instant of a rising edge that matters. In this case, the input changes multiple times within a clock cycle. This is to show that the output is only based on the value of the input at the instant of the rising edge.
+ Post New Thread
Please login