Timing Diagrams for D Flip-Flops

  • Thread starter Thread starter STEMucator
  • Start date Start date
  • Tags Tags
    Diagrams
Click For Summary

Discussion Overview

The discussion revolves around the timing diagrams for D flip-flops, specifically focusing on the operation of a circuit involving these components. Participants are analyzing the timing diagram, addressing potential inaccuracies, and exploring the implications of synchronous resets.

Discussion Character

  • Homework-related
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant expresses confusion about the provided solution, questioning the value of ##B## at a specific clock edge and suggesting it should be ##0## instead of ##1## based on the inputs to a NOR gate.
  • Another participant proposes an alternative interpretation of the timing diagram, indicating that ##B## should remain low at all times due to the conditions of the inputs.
  • Some participants clarify that the D flip-flops in question are positive edge-triggered, with one noting that the master is transparent while the slave is latched during the clock high period.
  • A participant agrees with a waveform presented in a previous post, emphasizing the importance of setup and hold times for the D input relative to the clock edge.
  • There is a discussion about the timing of the output changes in relation to the clock edge and the delays introduced by the flip-flops and NOR gate.
  • One participant reflects on their earlier misunderstanding of the flip-flop operation, acknowledging the need for accurate sampling just before the clock edge.
  • A specific example of a D flip-flop, the 7474, is mentioned without further elaboration.

Areas of Agreement / Disagreement

Participants express differing views on the behavior of ##B## in the timing diagram, with no clear consensus reached on its value at certain clock edges. The discussion remains unresolved regarding the accuracy of the provided solution and the implications of the synchronous reset.

Contextual Notes

Participants note the importance of setup and hold times for the D input, as well as the timing of output changes in relation to the clock edge. There are references to potential delays in the output of the latch and the operation of the D flip-flop, but these aspects remain complex and are not fully resolved.

STEMucator
Homework Helper
Messages
2,076
Reaction score
140

Homework Statement



Complete the timing diagram for the following circuit:

Screen Shot 2015-02-21 at 10.35.46 AM.png


Homework Equations

The Attempt at a Solution



So I was doing some pre-midterm studying, and I was slightly confused with the operation of this circuit.

I think part of the solution provided is incorrect, but I'm not positive so I thought I would ask. Here is my attempt so far at filling in the waveforms:

Screen Shot 2015-02-21 at 9.58.09 AM.png


I believe the value of ##B## provided at that clock edge is incorrect (the place where I have not connected the lines).

At that rising clock edge, the rising edge triggered D flip-flops will start by copying the value of ##\bar x## into ##A##. Hence why ##A = 1## at that clock edge.

Then looking at the NOR gate before the second D flip-flop, the inputs should be ##A = 1## and ##x = 0##. This results in ##0##. Should this not imply that ##B = 0## and not ##B = 1## as they have provided?

EDIT: I also forgot to ask, does synchronous reset have any impact on a rising edge triggered D flip-flop for a falling clock edge? I have ignored the reset in the early portions of the waveform because it was a falling clock edge.
 
Last edited:
Physics news on Phys.org
Wait wait, I think I see how I was reading the diagram incorrectly before. Would this be the answer:

Screen Shot 2015-02-21 at 11.01.16 AM.png
 
These are positive edge-triggered?

To me it looks like B should be low at all times, since either x or A is high on CLK. C should then be high after first CLK until reset, since x AND B is never true.
 
milesyoung said:
These are positive edge-triggered?

To me it looks like B should be low at all times, since either x or A is high on CLK. C should then be high after first CLK until reset, since x AND B is never true.

Yes, these are rising edge triggered (probably master-slave d-latch) D flip-flops. So when the CLK is high, the master is transparent and the slave is latched.

I also thought ##B## should be low at all times at first, but they provide part of the solution, and ##B## goes high at one point. This changed the way I interpreted the diagram.

If ##B## really does go high at the point they have indicated, then the only way that could happen is if they are sampling the values of the input variables ##x## and ##A## just before the rising clock edge.

So for the point where ##B## goes high in the solution they provided, I read it like so:

##x = 0## before the rising edge.
##A = 0## before the rising edge.

##0## NOR ##0## is ##1##, therefore ##B = 1## just after the rising edge.

I think this is because of the operation of the actual D flip-flop itself. They way it sends the values through just after the clock goes high, but it samples them a very small instant just before the clock goes high.

Therefore, I believe the image in post #2 is correct.
 
Last edited:
I agree with the wave form for B in post #2.

The data on D is sampled on the rising edge of the clock only. The data must be valid for a short time (Tsetup) before the rising edge and held for a short time after the rising edge (Thold). Apart from that changes to D at any other time do not effect Q.

So looking at the second latch...

Just prior to the first rising edge of clk... X = 0 and A = 0. So the data input to the latch will be 1. That means after the rising edge B = 1.
Just prior to the next rising edge of clk .. X = 0 but A = 1. So the data input to the latch will be 0. That means after the rising edge B = 0.
etc
 
PS Normally the output of a latch will take time to change after the clock edge. This delay plus the NOR gate delay helps ensure that Thold is met for the next latch in the chain.
 
  • Like
Likes   Reactions: STEMucator
Zondrina said:
I think this is because of the operation of the actual D flip-flop itself. They way it sends the values through just after the clock goes high, but it samples them a very small instant just before the clock goes high.

Therefore, I believe the image in post #2 is correct.
I took the view that the flip-flops were transparent on positive-edge CLK, but that doesn't make any sense, since they then wouldn't function as delay elements. Apologies.
 
An example would be the 7474.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 11 ·
Replies
11
Views
6K
  • · Replies 6 ·
Replies
6
Views
6K
  • · Replies 2 ·
Replies
2
Views
4K
Replies
20
Views
4K
Replies
1
Views
4K
  • · Replies 31 ·
2
Replies
31
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K