The task for this lab is similar to part 2 of lab 3: design a controller for a traffic light that is sensitive to a pressure sensor. This time do it using only VHDL to design and program the Altera chip. The red/green/yellow times will be the same as for lab 3-2, but the specification for the pressure sensor response is different. This time we will treat the pressure sensor as a cross-walk button.
When the pressure sensor is tripped, if the green light has been on for longer than the short green time then the traffic light should switch to yellow on that clock cycle. If the green light has not been on for longer than the short green time, then the traffic light should switch to yellow at the short green time, regardless of whether the pressure sensor has been let up after being depressed.
Finally, if the traffic light is responding to the pressure sensor, then when it reaches the red state (for both directions) it should remain in that state for 15 seconds. During those 15 seconds, the red lights should remain steady while the yellow lights flash at each clock cycle for 10 seconds, and then hold steady for 5 seconds.
In addition, you need to show the instructor your working chip.
This lab will be worth extra credit in the course. It will either replace one of your other labs or improve one of your exam scores by up to 10 points.