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

  • Thread starter Thread starter Dr-NiKoN
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 3K views
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 :)