http://forum.allaboutcircuits.com/showthread.php?t=80257

However, I have no clue what I'm doing. Been looking around on the forums and I can't make sense of most of what I see. I haven't really learned much about flip-flops yet so I'm having a hard time visualizing how it works exactly.

But, I'm tasked with making a 3-bit and 5-bit counter out of D-Flip Flops and various logic gates. It's got the two inputs CE, and the clock. And two outputs which are either a 3 or 5-bit bus and a terminal counter which is 1 when all bits are 111 or 11111.

I don't even know how to create the truth table for this function so I'm utterly in the dark here.

Thanks