Lab 2: State Machines

In this lab you will improve your traffic light controller. You will improve your controller by adding yellow lights and by coming up with a scheme to minimize the waiting time of cars.

The yellow lights are a warning step between green and red lights.

In the previous lab, the requirement was that eventually all cars that were waiting had to go. In this lab, you will have to come up with some scheme or ordering such that cars don't wait forever. The shorter average waiting time, the better. Like last lab, you will write this in both VHDL and C++. You should not need to change either of your simulation environments to make this change.

Deliverables

For this lab you will have to turn in your C++ code, VHDL code, and a lab report that explains what you did, how you did it, any problems that occurred. Also explain what needs to be done if this were to be changed to controlling an actual traffic light, e.g. how would your design change? Turn this in via electonic turnin by 11:00 am on Wed, Jan 16, 2002.