well I'm working on 4 way traffic light project with pedestrian signals which professor give to me. First I started with defining the problem and figuring out how many states I need. So I came to conclusion that I need 8 states but there are 20 input output variables(or whatever they are called). And I get stucked, I don't know what to do next ? In school we learned that when working with flip-flop counter if we have 3 input variables then we will have 8 different states, but now I have 20 input variables which means I would have just over one milion states.
And also we learned about decoder, in that case table will be more or less the same but I will have 20 K-maps (since there are 20 input variables, right ?).
So my questions is: Is there any way where I can reduce numbers of states when assigning to flip-flop or should I use decoder for that ?