Fully Automated Traffic Light Controller System For A Four-Way Intersection Using Verilog
Fully Automated Traffic Light Controller System For A Four-Way Intersection Using Verilog
Prakash P Kasthuri P
Department of Electronics Engineering Department of Electronics Engineering
Madras Institute of Technology Madras Institute of Technology
Anna University Anna University
Chennai, India Chennai, India
[email protected] [email protected]
Abstract—Traffic lights are placed in roads to control the high performance. It is used in systems so as to have
flow of traffic and to prevent accidents. This paper proposes a optimum power consumption.
Moore machine based fully automated and efficient traffic
light controller system for four-way intersection. The system is There are different types of traffic control systems which
designed on Xilinx Artix-7 xc7a100tcsg324-1 FPGA using are put forth by researchers for different real time situations.
Xilinx Vivado and Verilog Hardware Description Language. A traffic light controller was designed using Verilog HDL
The designed system runs up to a maximum operating considering two roads [1] and for a T-junction [2]. A system
frequency of 10 MHz. for four-way intersection was implemented using two
signals, red and green [3]. Another system makes use of
Keywords— Field Programmable Gate Array, Finite State three signals, red, yellow and green to regulate the traffic [4].
Machine, Hardware Description Language, Light Emitting But the drawback of these systems for four-way intersection
Diode, Verilog. was that they don’t allow the maximum possible movement
of vehicles across the intersection [3][4]. Vehicles from few
roads are made to wait at the intersection unnecessarily as
I. INTRODUCTION allowing them doesn’t disturb the moving vehicles. The
Traffic congestion is one of the predominant problems proposed system makes sure that this drawback is removed
prevailing in cities and towns. In T-intersection and four-way to allow the maximum transportation of vehicles across the
intersection, the probabilities of accidents are slightly higher. intersection and to prevent the unnecessary waiting time of
So, to ensure smooth flow of traffic and to avoid road the motorists.
accidents, traffic light systems are used. Moore model of Finite State Machine (FSM) is used to
The proposed traffic light controller system is designed design the traffic light controller system as the output of the
for four-way intersection roads. In this system, the waiting system (traffic light signals) depends only upon the current
time of vehicles at the intersection is reduced by a great state of the system. This feature makes the system fully
extent. Microcontroller and Microprocessor based traffic automated. The system considers the four roads to have
light systems are already present. But the disadvantage equal traffic and makes use of the Binary encoding scheme.
associated with these systems is that, they work on fixed Compared to other works, the proposed system is more
time, and doesn’t have flexibility. So, this paper concentrates efficient by making use of minimal number of states which
on developing a reconfigurable traffic light controller are necessary enough to allow the maximum transportation
system, which works on Field Programmable Gate Array of vehicles across the intersection. The reduction in number
(FPGA) as it doesn’t have a fixed hardware structure and can of states also helps in achieving minimal power
be reprogrammed by using Hardware Description Language consumption. The traffic controller system also makes use
(HDL). Verilog is chosen for modelling the traffic light of the maximum possible number of safe states. Before the
controller system, as usage of Verilog HDL allows to define stoppage of traffic across each direction, yellow signal is
the specifications of the parameters used in the design of the displayed in the corresponding displays which indicate that
system. Also, Verilog HDL is one of the commonly used the flow of traffic will be stopped in few seconds. The states
HDLs as it has simple syntax and it resembles software containing yellow signals act as safe states and prevent the
programming languages to some extent. possibility of accidents. A Simulation based system is
designed and the same is done using Xilinx Vivado.
FPGA boards have many input switches and output Light Complete information of the system designed is obtained
Emitting Diodes (LEDs) in it, which make it suitable for the using various facilities present in this software like timing
design of traffic light controller systems. FPGAs are used for report, utilization report, power report, etc.
designing prototypes for many electronic applications.
Another advantage of FPGA is that, it makes the whole
system more efficient. The FPGA chosen here is Artix-7, II. METHODOLOGY
which is a product of Xilinx, a semiconductor manufacturing
company. Artix-7 is preferred as it is cost efficient and for its The paper concentrates on developing a traffic light
controller system for a four-way intersection. Each road has
three light displays corresponding to the flow of traffic
978-1-6654-9781-7/22/$31.00 ©2022 IEEE
Authorized licensed use limited to: SASTRA. Downloaded on January 25,2024 at 13:12:46 UTC from IEEE Xplore. Restrictions apply.
towards the other three roads. Hence there are twelve light
D8
displays in total at the intersection. By using a common
control logic, the system is designed in such a way that,
certain light displays operate in the same manner. This D9
simplifies the design with ten light displays. Each of these
light displays have the provision to show red, green and
yellow signals. The red signal specifies to stop, the green
signal allows the flow of traffic and the yellow signal B. State assignment
specifies that the flow of traffic will be stopped in few Based on the 10 light displays and according to the
seconds. The proposed system helps to prevent vehicle movement of the vehicles, 12 different states are used for
collisions at the intersection by use of ‘safe’ states. The red, traffic control. The assignment of states is given in Fig. 1.
yellow and green signals of each of the light displays are
modeled as individual output LEDs. So a total of thirty
output LEDs are used. A state diagram and a state table are
constructed based upon the simplified logic to model a finite
state machine for the proposed traffic light controller system.
D5
D6
D7
Authorized licensed use limited to: SASTRA. Downloaded on January 25,2024 at 13:12:46 UTC from IEEE Xplore. Restrictions apply.
IV. RESULTS
The proposed system is designed as a Moore FSM using
Xilinx Vivado and Verilog HDL. Simulation, synthesis,
implementation and generation of bit stream were done and
no DRC violations were found.
A. Simulation
Fig. 3 displays the result of behavioral simulation
showing the waveform of the Traffic light controller system
for the test bench applied using Verilog HDL.
Authorized licensed use limited to: SASTRA. Downloaded on January 25,2024 at 13:12:46 UTC from IEEE Xplore. Restrictions apply.
Fig. 6. Utilization report of the system
E. Power report
It was observed that the power report generated during
synthesis matched with the power report generated during
implementation. The obtained power report is shown in Fig.
7. Fig. 9. Device layout of the system
REFERENCES
[1] Shabarinath B B and Swetha Reddy K (2017) “Timing
and Synchronisation for explicit FSM based Traffic Light
Controller”, IEEE 7th International Advance Computing
Conference.
[2] Boon Kiat Koay and Maryam Mohd. Isa (2009) “Traffic
Fig. 8. Technology schematic of the system Light System Design on FPGA”, Proceedings of 2009 IEEE
Student Conference on Research and Development
G. Device layout after implementation (SCOReD 2009), 16-18 Nov. 2009, UPM Serdang,
Fig. 9 shows the device layout obtained after Malaysia.
implementation. [3] Venkata Kishore S (2017) “FPGA based Traffic Light
Controller”, International Conference on Trends in
Electronics (ICEI).
[4] D.Bhavana, D.Ravi Tej, Priyanshi Jain, G.Mounika,
R.Mohini, Bhavana (2015) “Traffic Light Controller Using
Fpga”, International Journal of Engineering Research and
Applications (IJERA).
Authorized licensed use limited to: SASTRA. Downloaded on January 25,2024 at 13:12:46 UTC from IEEE Xplore. Restrictions apply.
[5] Medany W M E and Hussain (2007) “FPGA based [6] Nath S, Pal C, Sau S, Mukherjee A, Guchhait A and
Advanced Real Traffic Light Controller System Design”, Kandar D (2012) “Design of an intelligent Traffic Light
IEEE Workshop on Intelligent Data Acquisition Computing Controller with VHDL”, International Conference on Radar,
Systems: Technology and Applications, Germany. Communication and Computing, pp.92-97.
Authorized licensed use limited to: SASTRA. Downloaded on January 25,2024 at 13:12:46 UTC from IEEE Xplore. Restrictions apply.