Computer Science, asked by stefanbalauca91, 10 months ago

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.

Answers

Answered by KV18385
0

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 ... 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 ...

Similar questions