Forum Discussion
Altera_Forum
Honored Contributor
18 years agoHey i have implemented a traffic light controller in the past.. i will advise you to use an ASM, then you can follow the processes and see where isn't functioning properly as required.. Its much easier with ASM.
Also when i designed my counter i used P_count and N_count, e.g: n_count <= p_count + 1 the problem might be coming from the counters, even though i havnt looked at ur code in details, because as soon as ur counter is wrong, the entire system will be wrong. Mail me privately if you need my codes... All the best!