Solving Race Condition in D-type Flip-Flops for 4 Output Loop

  • Thread starter Thread starter Dr-NiKoN
  • Start date Start date
AI Thread Summary
The discussion focuses on creating a circuit with four outputs that sequentially activate one at a time with each pulse, but the user encountered race-condition errors in their D-type flip-flop. The issue stemmed from incorrectly using a latch as a flip-flop, which led to the race conditions. After troubleshooting, the user resolved the problem and successfully implemented the desired functionality. The conversation highlights the importance of using the correct components in digital circuit design to avoid timing issues. Proper understanding of flip-flops and latches is crucial for achieving reliable circuit behavior.
Dr-NiKoN
Messages
93
Reaction score
0
I'm trying to create a circuit that has 4 outputs, and loops over all of them so that only 1 output is high at each pulse.

Like this:
1 - 1
2 - 0
3 - 0
4 - 0

1 - 0
2 - 1
3 - 0
4 - 0

1 - 0
2 - 0
3 - 1
4 - 0

1 - 0
2 - 0
3 - 0
4 - 1

1 - 1
2 - 0
3 - 0
4 - 0

But, I'm getting race-condition errors inside my d-type flip-flop. So, I'm guessing it's something wrong with it.

Here is what it looks like:
http://folk.uio.no/thhildru/d-type.png

I don't really understand how a race-condition can happen here?
 
Last edited by a moderator:
Engineering news on Phys.org
Did you figure out the problem? Or do you still want help on this one?
 
Yup, I was trying to use a latch as a flip-flop. All worked out now :)
 
Thread 'Weird near-field phenomenon I get in my EM simulation'
I recently made a basic simulation of wire antennas and I am not sure if the near field in my simulation is modeled correctly. One of the things that worry me is the fact that sometimes I see in my simulation "movements" in the near field that seems to be faster than the speed of wave propagation I defined (the speed of light in the simulation). Specifically I see "nodes" of low amplitude in the E field that are quickly "emitted" from the antenna and then slow down as they approach the far...
Hello dear reader, a brief introduction: Some 4 years ago someone started developing health related issues, apparently due to exposure to RF & ELF related frequencies and/or fields (Magnetic). This is currently becoming known as EHS. (Electromagnetic hypersensitivity is a claimed sensitivity to electromagnetic fields, to which adverse symptoms are attributed.) She experiences a deep burning sensation throughout her entire body, leaving her in pain and exhausted after a pulse has occurred...
Back
Top