Timing Diagrams for D Flip-Flops

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

The discussion focuses on the timing diagrams for D flip-flops, specifically addressing the behavior of a circuit involving rising edge-triggered D flip-flops and NOR gates. Participants clarify that at the rising clock edge, the D flip-flops sample the input values just before the clock transition, affecting the output values of A and B. The consensus is that B should be low at all times except when specific conditions are met, confirming that the provided solution is accurate. Additionally, the impact of synchronous reset on the operation of the flip-flops is discussed, emphasizing the importance of setup and hold times.

PREREQUISITES
  • Understanding of D flip-flop operation and timing diagrams
  • Knowledge of NOR gate logic
  • Familiarity with setup and hold time requirements in digital circuits
  • Basic concepts of synchronous reset in flip-flops
NEXT STEPS
  • Study the operation of the 7474 D flip-flop and its timing characteristics
  • Learn about setup and hold time calculations for D flip-flops
  • Explore the effects of synchronous reset on flip-flop behavior
  • Investigate timing diagram analysis techniques for complex digital circuits
USEFUL FOR

Electrical engineers, digital circuit designers, and students studying digital electronics who need to understand the timing behavior of D flip-flops and their applications in circuit design.

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
3K
  • · Replies 11 ·
Replies
11
Views
5K
  • · 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