This is a Finite State Machine (FSM) that utilizes an instantiated module of the "CLK Frequency Divider" by Ramón Sarmiento to perform internal counting for a traffic light control system.
Set the first input to "1" and await the activation of the Red light. It will remain active for 30 seconds, provided the correct frequency is employed. Afterward, it will transition to the Green state within 3 seconds, remaining in this state for an additional 20 seconds. Finally, it will transition back to the Red state over the course of 3 seconds.
Three Different Color LEDs (Optional)
# | Input | Output | Bidirectional |
---|---|---|---|
0 | Start | Green Light | |
1 | Yellow Light | ||
2 | Red Light | ||
3 | |||
4 | |||
5 | |||
6 | |||
7 |