6-implementation-of-a-fully-automatic-four-way-traffic-light-controller-using-verilog
6-implementation-of-a-fully-automatic-four-way-traffic-light-controller-using-verilog
ABSTRACT- The traffic control system is one of the to wait at the intersection unnecessarily as allowing them
challenging problems in metropolitan and developed cities. doesn’t disturb the moving vehicles. [5]The designed system
This is due to the large number of vehicles and the high makes sure that this drawback is removed to allow the
dynamics of the traffic system. Impoverished traffic systems maximum transportation of vehicles across the intersection
are the big reason for accidents and time losses. In this and to prevent unnecessary waiting time for motorists.[5]
project, the Fully Automatic Four-way Traffic light Melay model of Finite State Machine (FSM) is used to design
controller is implemented by using Verilog and we have the traffic light controller system as the output of the system
overcome some drawbacks i.e., we included the area (traffic light signals) depends only upon the current state of
detection parameter that improves the detection of vehicles the system.[6] This feature makes the system fully
compared to the design part in the base paper. automated. The system considers the four roads to have
different traffic and makes use of the Binary encoding
KEYWORDS- Finite State Machine, Hardware scheme.[6] Compared to other works, the proposed system is
Description Language, Verilog, Xilinix Vivado. more efficient by making use of a minimal number of states
which are necessary enough to allow the maximum
I. INTRODUCTION transportation of vehicles across the intersection.[7] The
Traffic congestion is one of the predominant problems reduction in several states also helps in achieving minimal
prevailing in cities and towns. In T-intersection and four-way power consumption. The traffic controller system also makes
intersections, the probabilities of accidents are slightly use of the maximum possible number of safe states. Before
higher. So, to ensure smooth flow of traffic and to avoid road the stoppage of traffic across each direction, the yellow
accidents, traffic light systems are used. signal is displayed in the corresponding displays which
We designed a traffic light controller system for four-way indicates that the flow of traffic will be stopped in a few
intersection roads. In this system, the waiting time of seconds.[7] The states containing yellow signals act as safe
vehicles at the intersection is reduced to a great extent. states and prevent the possibility of accidents. A Simulation-
Microcontroller and Microprocessor-based traffic light based system is designed and the same is done using Xilinx
systems are already present. But the disadvantage associated Vivado.[8] Complete information on the system design is
with these systems is that they work on a fixed time, and obtained using various facilities present in this software like
don’t have flexibility. So, this paper concentrates on utilization reports, power reports, etc.[8]
developing a reconfigurable traffic light controller system.
Verilog is chosen for modeling the traffic light controller II. METHODOLOGY
system, as usage of Verilog HDL allows the definition of the The paper concentrates on developing a traffic light
specifications of the parameters used in the design of the controller system for a four-way intersection with vehicle
system. Also, Verilog HDL is one of the commonly used detection. Each road has three light displays corresponding
HDLs as it has a simple syntax and somewhat resembles to the flow of traffic towards the other three roads. Hence
software programming languages. there are twelve light displays in total at the intersection.
Different types of traffic control systems are put forth by Using a common control logic. This simplifies the design
researchers for different real-time situations. A traffic light with four light displays. Each of these light displays has the
controller was designed using Verilog HDL considering two provision to show red, green, and yellow signals. The red
roads [1] and a T-junction [2]. A system for four-way signal indicates to stop, the green signal allows the flow of
intersections was implemented using two signals, red and traffic and the yellow signal specifies that the flow of traffic
green [3]. Another system uses three signals, red, yellow, and will be stopped in a few seconds. The designed system helps
green to regulate the traffic [4]. However, the drawback of to prevent vehicle collisions at the intersection by the use of
these systems for four-way intersections is that they don’t ‘safe’ (yellow state) states. The red, yellow, and green signals
allow the maximum possible movement of vehicles across of each light display are formed as individual outputs.
the intersection [3][4]. Vehicles from a few roads are made
III. IMPLEMENTATION OF TRAFFIC LIGHT Table 1: State table of the proposed system
CONTROLLER SYSTEM
No. of
The proposed traffic light controller system is designed to State North East South West
operate at a maximum frequency of 10.0 MHz. The period Clock cycles
(T) of the clock used in this system is given by the formula
T = 1/f S0 1 3 3 3 16
B. RTL Schematic
Figure 3 shows the RTL schematic of the designed system
D. Power Report