Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The details of the different modes are shown in Figure 2 The period of each mode is defined as follows: M o d e P

The details of the different modes are shown in Figure 2
The period of each mode is defined as follows:
ModePeriodMode030secondsMode130secondsMode210secondsMode320seconds
Assume that the system runs at a 1Hz clock.
If you need to create a counter, then it should be designed structurally.
Project Deliverables:
All Verilog Files and test benches.
You need to create at least two testbenches:
One that shows normal operation (No pedestrians).
A test bench when a pedestrian pushes the button.
The test bench should display input/output values for every mode, as shown in the figure:
Mode 0:I=1,A1=0,A2=0,B=0,C=0
Mode 1: I=0,A1=1,A2=,B=,C=1
Mode 2: I=0,A1=1,A2=1,B=,C=0
Mode 3: I=0,A1=0,A2=0,B=1,C=0
A Renort detailino the desion (Includino all the desion diaorams/states) Project Description: verloge code
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.
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

Database Marketing The Ultimate Marketing Tool

Authors: Edward L. Nash

1st Edition

0070460639, 978-0070460638

More Books

Students also viewed these Databases questions