Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Project Description: The aim of this project is to design and simulate a traffic controller for a T - intersection. The controller has a single

Project Description:
The aim of this project is to design and simulate a traffic controller for a T-intersection. The controller has a single input and four outputs.
The intersection shown in Figure 1, has traffic coming from three different directions (A, B, and C).
Traffic coming from directions B and C has a single traffic light each, while traffic coming from direction A has 2 traffic lights as follows:
A1: Controls whether the traffic proceeds forward or not.
A2: Controls whether the traffic is allowed to go left or not.
In addition, the intersection has a push button (I) for pedestrians, when pressed it stops all traffic and allows pedestrians to cross.
Figure 1. Intersection Diagram
Design Requirements:
The traffic lights at this intersection operate with only two signals: 1 for Green and 0 for Red. (i.e., no Yellow).
The traffic at this intersection has 4 modes (mode 0, mode 1, mode 2 and mode 3).
The sequence of traffic lights should follow (mode 1, mode 2, mode 3, mode 1, mode 2.... etc)
When the pedestrian button is pressed, the controller should transition to mode 0 after completing the current mode time.
Once the time for mode 0 has elapsed, the controller will resume with mode 1, mode 2, mode 3...etc.
The details of the different modes are shown in Figure 2
The period of each mode is defined as follows:
\table[[Mode,Period],[Mode 0,30 seconds],[Mode 1,30 seconds],[Mode 2,10 seconds],[Mode 3,20 seconds]]
Assume that the system runs at a 1 Hz clock.
If you need to create a counter, then it should be designed structurally.
i need all of cases by verloge code
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions