InterviewSolution
Saved Bookmarks
| 1. |
Write a VHDL code for the next problem You have a traffic light which is green for cars and red for people, which is the normal state. Each side of the road has one button each for sidewalkers to push if they want to cross the street. When a button is pushed, the traffic light keeps its colors (green for cars, red for people) for 20 seconds, then it switch for 10 seconds, then switch again till a button is pushed again. The time is measured with a stopwatch, counting backwards from 20 to 0 and from 10 to 0. |
|
Answer» e a traffic light which is GREEN for cars and RED for people, which is the NORMAL state. Each side of the road has one button each for sidewalkers to push if ... a button is pushed, the traffic light KEEPS its colors (green for cars, red for ... then it switch for 10 seconds, then switch again TILL a button is pushed ... |
|