Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1.Reset State: Green light in N-S direction, red in EW direction. 2.When a car is detected in the east-west direction (eastwestwaiting = 1) go through

image text in transcribed

1.Reset State: Green light in N-S direction, red in EW direction.

2.When a car is detected in the east-west direction (eastwestwaiting = 1) go through a sequence that makes the light green in the east-west direction and then return to green in the north-south direction.

3.A direction with a green light must first transition to a state where the light is yellow before going to a state where the light goes red.

4.A direction can have a green light only if the light in the other direction is red.

The state transition table is given as follows (Reset is notshown. ) :

image text in transcribed

A) Name the states using binary encoding

B) Create the truth table for next state logic and calculate the combinational Boolean logic statements.

C) Create the truth table for output logic and calculate the combinational Boolean logic statements.

D) Draw the curcuit diagram .

E) Implement the fsm in verilog.

ar detector Car Detector eastwestwaiting rst cik S Problem 1 (40) The traffic lights: Design a finite state machine to control the traffic lights at an intersection of a north-south road with an east-west road. The spefications are as follows: There are six lights to control green, yellow, and red for the north-south road, and for the east-west road. input signal eastwestwaiting that indicates that a car is waiting on the east-west road. A second input, rst, resets the FSM to a known state. The procedure of the lights are as follows: rst eastwestwaiting gns yns gew yew 100 001 010 001 001 100 001 010 state output gyr gyr ns ew

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

Distributed Relational Database Architecture Connectivity Guide

Authors: Teresa Hopper

4th Edition

0133983064, 978-0133983067

More Books

Students also viewed these Databases questions

Question

How do you add two harmonic motions having different frequencies?

Answered: 1 week ago

Question

denigration of emotional outbursts; being reserved;

Answered: 1 week ago