Suppose if we have a counter that counts only Even numbers and the unused states(odd numbers) treated as don't-care condition.
Current state Next State
A B C D A B C D
0 0 0 0 0 0 1 0
0 0 1 0 0 1 0 0
0 1 0 0 1 0 0 0
1 0 0 0 1 0 1 0
1 0 1 0 1 1 1 0
1 1 1 0 0 0 0 0
0 0 0 1 x x x x
0 0 1 1 x x x x
0 1 0 1 x x x x
0 1 1 1 x x x x
1 0 0 1 x x x x
1 0 1 1 x x x x
1 1 0 1 x x x x
1 1 1 1 x x x x
Above; I put the all unused states at the end.
Does this a right way? OR I must put them as normally as it's, like :
Current state Next State
A B C D A B C D
0 0 0 0 0 0 1 0
0 0 0 1 x x x x
0 0 1 0 0 1 0 0
........
After all, your comment were helpful, but didn't answered my question, sorry :)
– Azad Sep 10 '13 at 22:022^4, it needs4state variables. – Azad Sep 10 '13 at 22:1114in decimal which is (1110) in binary, so we have4bits, I am now confused about removing theD, it's right we didn't use it, but we need it in the state table. – Azad Sep 10 '13 at 22:22