Checking 3 D Flip-Flops for Timing Diagrams

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

Discussion Overview

The discussion revolves around the design and timing diagrams of a circuit involving three D flip-flops. Participants explore the correct wiring of the flip-flops and the implications of their states on the timing diagrams, addressing both theoretical and practical aspects of digital circuit design.

Discussion Character

  • Technical explanation
  • Conceptual clarification
  • Debate/contested
  • Homework-related

Main Points Raised

  • One participant requests verification of their circuit diagram for three D flip-flops and seeks guidance on drawing timing diagrams, expressing confusion about handling multiple flip-flops with gates.
  • Another participant identifies an error in the circuit, noting that the output of the XOR gate incorrectly drives the output Q3 of the third flip-flop.
  • A participant questions the initial value of D1, suggesting that if Q=1, D could be either 0 or 1, and raises uncertainty about the necessity of the XOR gate for the equation Q1 XOR Q3.
  • One participant clarifies that the XOR gate should be a 2-input XOR with inputs Q1 and Q3, and discusses the importance of a reset state for the flip-flops, suggesting a starting state of 0b000.
  • Another participant expresses difficulty in understanding the workings of the circuit and requests a step-by-step explanation, indicating confusion about the notation used for binary representation.
  • A later reply explains the notation used for binary and hexadecimal values, but does not provide further clarification on the circuit operation itself.

Areas of Agreement / Disagreement

Participants exhibit a mix of agreement on the need for clarity in circuit design and timing diagrams, but there remains disagreement regarding the initial conditions and the necessity of the XOR gate. The discussion does not reach a consensus on these points.

Contextual Notes

There are unresolved assumptions regarding the initial states of the flip-flops and the specific requirements for the circuit design. The notation used for binary representation may also lead to confusion among participants.

Who May Find This Useful

This discussion may be useful for students or individuals learning about digital circuit design, particularly those interested in the operation of flip-flops and timing diagrams.

variable
Messages
14
Reaction score
0
Can someone please check to see if I drew the circuit right? It's supposed to be 3 D flip-flops wired together such that D1 = Q3, etc. on the bottom. And how would I go about drawing the timing diagrams for the outputs if all of them start in the set state. I get really confused about timng diagrams. I understand the basics for the other types of flip flops if there is only one but when there are multiple ones with gates attached, I don't know what to do. Any suggestions for really good websites or can someone explain it? Thank you!
 

Attachments

Last edited:
Engineering news on Phys.org
The circuit is drawn wrong. It shows the output of the XOR gate driving the output Q3 of the third FF.

After you redraw the circuit, you can draw the timing diagram by first drawing a 50% duty cycle clock waveform across a page of grid paper or engineering paper. At each rising edge of the clock (as the FFs are drawn), the D inputs will clock through to the Q outputs of each FF. So draw the intial D input values coming in from the left of the timing diagram, then at the first rising clock edge, carry the D inputs through to the appropriage Q outputs. Then figure out what that does to the next D input values, and show those on your diagram. Then at the 2nd clock rising edge, show those D inputs clocking through to change the appropriate Q outputs, etc.

Make sense?
 
thanks berkeman. yes i think that makes sense but what should i assume the first input D1 is, 1 or 0? it just says to assume all the set states in all the circuits is Q=1 but for D flip-flops, if Q=1, D could be either 0 or 1 right because the only thing that matters is what Qnext is? should the XOR gate even be there at all or i don't know how to go about making the last equality true, that Q1 XOR Q3.
 
As for the XOR, it should be drawn as a 2-input XOR gate, with its two inputs as Q1 and Q3, and its output going to D2. That's the equation in the drawing, anyway.

As for the initial state of the state machine, that is up to you or should be specified in the problem statement. The flops aren't shown with a reset input, but they really should be. Any real-world state machine has to have a reset state to start things off. Since there are 3 FFs, this state machine has 8 potential states. Usually you would start off the state machine in the reset state Q[3:1] = 0b000, and at each clock tick, the machine would transition to the next state. If your FFs started off at 0b000, then given the equations, the next state would be 0b010. Do you see why?

The best thing to do is to draw the state diagram for this machine, and trace out the path that it will take, assuming it starts in the reset state. It may be that all 8 states are not visited, given the starting state of 0b000. The timing diagram will just show the D and Q values of the circuit, as it transitions from state to state.

BTW, in the real world when you design a state machine, you will also be careful to make sure that any unused states (those that you don't get to through a natural progression from the reset state) have their own unconditional transitions back to some legal state, usually the reset state.
 
Hi Berkeman and thank you for replying. I still don't get it. I understand how to draw the circuit now but I don't get how it works. Is it possible for you to walk me through it step by step or start explaining from the beginning? I don't understand the notations you used. Is b begin? Thank you so much!
 
No, sorry bud. I was using standard notation for binary. In C or many CPLD/FPGA compilers, the standard notation is:

0x -- hex
0b -- binary

etc.

Is that enough to explain it all?
 

Similar threads

Replies
0
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 10 ·
Replies
10
Views
5K
Replies
10
Views
5K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 28 ·
Replies
28
Views
4K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 6 ·
Replies
6
Views
7K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
20
Views
4K