Design a binary counter that counts as below:

7-6-5-4-3-2-1 then resets and counts 6-5-4-3-2-1 and then resets and

counts 5-4-3-2-1 and then resets and counts 4-3-2-1 and then resets and

counts 3-2-1 and then resets and counts 2-1 and then resets and counts

7-6-5-4-3-2-1 and so on ......

So the counting sequnce is

7-6-5-...-1 then 6-5-...-1 then 5-4-...-1 then 4-3-...-1 then 3-2-1 then

2-1 then 7-6-5-...-1 then 6-5-...-1 and so on.

Note : We are only allowed to use T,R-S,J-K flip flops and standars gates such as OR,AND,XNOR,XOR,NOR,NAND,Not and ....

Please Help me with it.

TA .