PDA

View Full Version : D-type flip-flops


Dr-NiKoN
Feb25-06, 07:13 AM
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?

berkeman
Mar3-06, 06:11 PM
Did you figure out the problem? Or do you still want help on this one?

Dr-NiKoN
Mar3-06, 06:58 PM
Yup, I was trying to use a latch as a flip-flop. All worked out now :)