Question: Design and develop a Verilog state machine to control the Traffic Lights system of a busy highway. Consider a 4 - road junction with the
Design and develop a Verilog state machine to control the Traffic Lights system of a busy highway. Consider
a
road junction with the traffic control system installed on a highway junction with left and right turns
leading to side
ways
service roads
Left turn is always free while right turn needs a signal.
For simplicity, assume that all are one
ways for traffic movement
as indicated in the diagram below.
Ensure that the FSM controller supports the below listed functionality and features by calling out any
assumptions made in the process:
Regular operation of the traffic lights with a delay of
seconds for each state switch
transition in a
round
robin fashion.
Interrupt #
support movement of life services like Ambulance, Fire Service trucks
The controller
should automatically allow the traffic to flow as soon as they are detected on the highway, as the
interrupt with highest priority.
Interrupt #
divert the onward traffic from highway to the
side lanes, there by clearing the main
highway to facilitate emergency VIP movement.
Ensure that the controller has priority among the interrupt scenarios, in case of collision.
Ensure that the controller state machine recovers
reboots after detecting any of the
interrupt
scenarios stated above
as a fail
safe controller machine. PROVIDE TESTBENCH FOR THIS WITH EXPLANATION
testbench must have clk change also but expert had provided without clock change testbench. just clock connection is provid
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
