Top Banner
4-WAY TRAFFIC LIGHT CONTROL PRESENTATION BY:- ASHUTOSH SHARMA UTKARSH DE SHRAWAN RAWAT LALIT KUMAR SHUBHAM SHARMA
30

Four way traffic light conrol using Verilog

Apr 15, 2017

Download

Engineering

Utkarsh De
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Four way traffic light conrol using Verilog

4-WAY TRAFFIC LIGHT CONTROL

PRESENTATION BY:- ASHUTOSH SHARMA UTKARSH DE SHRAWAN RAWAT LALIT KUMAR SHUBHAM SHARMA

Page 2: Four way traffic light conrol using Verilog

INTRODUCTIONTRAFFIC LIGHTSHISTORY

VERILOGFOUR WAY TLC

TRAFFIC LIGHT STATE DIAGRAMOUR TRAFFIC LIGHTSTATE TABLESTATE DIAGRAMWAVEFORMCODING OVERVIEW

FUTURE SCOPECONCLUSION

CONTENT

Page 3: Four way traffic light conrol using Verilog

HISTORY

Traffic light which is one of the vital public facilities that plays an important role to the road users. Traffic lights were first installed in 1868 in London, United Kingdom, outside the British Houses of Parliament in London, by the railway engineer J. P. Knight and constructed by the railway signal engineers of Saxby & Farmer.

INTRODUCTION

Page 4: Four way traffic light conrol using Verilog

The design combined three semaphore arms with red and green gas lamps for night-time use, on a pillar, operated by a police constable. The gas lantern was turned with a lever at its base so that the appropriate light faced traffic. Although it was said to be successful at controlling traffic, its operational life was brief. It exploded on 2 January 1869, as a result of a leak in one of the gas lines underneath the pavement, injuring and killing the policeman who was operating it. With doubts about its safety, the concept was abandoned until electric signals became available

INTRODUCTION (contd.).

Page 5: Four way traffic light conrol using Verilog

Traffic lights, also known as traffic signals, traffic lamps, signal lights, stop lights and also known technically as traffic control signals are signalling devices positioned at road intersections, pedestrian crossings and other locations to control competing flows of traffic.

What is Traffic light?

Page 6: Four way traffic light conrol using Verilog

Traffic lights alternate the right of way accorded to road users by displaying lights of a standard color (red, yellow, and green) following a universal color code.

The typical sequence of color phases are as follows:

INTRODUCTION (contd.)

Page 7: Four way traffic light conrol using Verilog

GREEN:- Allows traffic to proceed in the direction denoted.

YELLOW:- Provides warning that the signal will be

changing from green to red. RED:- Prohibits any traffic from

proceeding.

INTRODUCTION (contd.)

Page 8: Four way traffic light conrol using Verilog

1. Safe and efficient traffic light flow 2. Assign right of way to maximize capacity, minimize and reduce collision and conflict

Purpose of traffic light

Page 9: Four way traffic light conrol using Verilog

Verilog HDL is one of the two most common Hardware Description Languages (HDL) used by integrated circuit

(IC) designers. The other one is VHDL. HDL’s allows the design to be simulated

earlier in the design cycle in order to correct errors or experiment with different architectures. Designs described in HDL are technology-independent, easy to design and debug, and are

VERILOG

Page 10: Four way traffic light conrol using Verilog

usually more readable than schematics, particularly for large circuits.

Verilog can be used to describe designs at four levels of abstraction:

(i) Algorithmic level (much like c code with if, case and loop statements).

(ii) Register transfer level (RTL uses registers connected by Boolean equations).

(iii) Gate level (interconnected AND, NOR etc.). (iv) Switch level (the switches are MOS transistors

inside gates).

VERILOG(contd..)

Page 11: Four way traffic light conrol using Verilog

It is often useful to be able to sequence through an arbitrary number of states , staying in each state an arbitrary amount of time.

Consider the set of traffic lights shown in Figure.

4-WAY TRAFFIC LIGHT CONTROL

Page 12: Four way traffic light conrol using Verilog

4-WAY TRAFFIC LIGHT CONTROL

Page 13: Four way traffic light conrol using Verilog

The lights are assumed to be at a four-way intersection with one street going north-south and the other road going east-west.

4-WAY TRAFFIC LIGHT CONTROL (contd.)

Page 14: Four way traffic light conrol using Verilog

4-WAY TRAFFIC LIGHT CONTROL (contd.)

Page 15: Four way traffic light conrol using Verilog

To simulate these traffic lights we will use the red, yellow, and green LEDs which cycle through the six states shown in Table .

4-WAY TRAFFIC LIGHT CONTROL (contd.)

Page 16: Four way traffic light conrol using Verilog

4-WAY TRAFFIC LIGHT CONTROL (contd.)

Page 17: Four way traffic light conrol using Verilog

A state diagram for controlling these traffic lights is shown in Fig.

4-WAY TRAFFIC LIGHT CONTROL (contd.)

Page 18: Four way traffic light conrol using Verilog

4-WAY TRAFFIC LIGHT CONTROL (contd.)

Page 19: Four way traffic light conrol using Verilog

If we use a 3 Hz clock to drive this state diagram then a delay of 1 second is achieved by staying in a state for three clock cycles.

Similarly, a delay of 5 second is achieved by staying in a state for fifteen clock cycles.

4-WAY TRAFFIC LIGHT CONTROL (contd.)

Page 20: Four way traffic light conrol using Verilog

The count variable in fig will be reset to zero when moving to the next state after a timeout.

4-WAY TRAFFIC LIGHT CONTROL (contd.)

Page 21: Four way traffic light conrol using Verilog

case(state)S0: if(count < SEC5)

◦begin state <= S0; count <= count + 1;

◦end

CODING (overview)

Page 22: Four way traffic light conrol using Verilog

else◦begin state <= S1; count <= 0;

◦end

CODING (overview)

Page 23: Four way traffic light conrol using Verilog

S1: if(count < SEC1)◦begin state <= S1; count <= count + 1;

◦end

CODING (overview)

Page 24: Four way traffic light conrol using Verilog

else◦begin state <= S2; count <= 0;

◦end

CODING (overview)

Page 25: Four way traffic light conrol using Verilog

:

Simulation of verilog program:

Page 26: Four way traffic light conrol using Verilog

Development of Software of Intelligent Traffic Light Control and Monitoring System :

Assembler Assembler is used to convert the assembly

language code to machine code. A51 assembler is used for this purpose. Following Figure shows the A51 assembler GUI.

FUTURE SCOPE :

Page 27: Four way traffic light conrol using Verilog

FUTURE SCOPE (contd.) :

Page 28: Four way traffic light conrol using Verilog

The modern ways of multi-way traffic management improves the traffic condition up to a large extent. Advanced signaling controllers contribute to the improvement of the urban traffic which is proportional to the complexity of the controller. These more complex controllers can be well handled using states machines. Methods to reduce the states in the state machine also help in reducing the required hardware

CONCLUSION :

Page 29: Four way traffic light conrol using Verilog

leading to low power and area efficient design. In addition to the general procedure the Chip Scope Pro & VIO of Xilinx tool gives the flexibility in verification for the design with large number of inputs & outputs, also used for easy implementation of the design into the FPGA.

CONCLUSION (contd.) :

Page 30: Four way traffic light conrol using Verilog

THANK YOU