Show state-transition table for the traffic light

Assignment Help Basic Computer Science
Reference no: EM131322915

This problem concerns a traffic light placed on a stretch of road where there is no cross traffic, but where pedestrians often cross. There are two sets of lights, one facing each direction of traffic, and two pedestrian buttons, one on each side of the road. Pushing either button while the light is green causes the light to turn yellow for 10 seconds, then red for 120 seconds, and back to green. Pushing buttons while the light is yellow or while the light has been red for 10 seconds or less has no effect. Pushing a button while the light has less than 10 seconds to go before it turns green will cause the light to stay red for at least 10 seconds more than it would otherwise. We want to design a sequential circuit for the traffic light controller.

A. Show a state-transition diagram and a state-transition table for the traffic light. Let the input be the state of the buttons (1 if either button has been pushed, 0 otherwise), and assume that a clock pulse occurs once every 10 seconds. (In other words, no state transition can occur except at 10-second intervals; every 10 seconds, the input is examined and a state transition, if called for, is made.)

B. How many D flip-flops will you need to represent the states you have defined? Indicate the correspondence you have made between states in your answer to part A and the states of your set of D flip-flops. Show truth tables and Boolean equations describing the next state of each flip-flop, based on the current state of the circuit and any other appropriate inputs.

C. Draw the circuit. Assume that two input lines are available: a clock line, which gives a short pulse once every 10 seconds, and a button line, which is high if a button is pushed. Your circuit should have three output lines controlling the lights; label the lines "red," "yellow," and "green."

D. It would be nice if the pedestrian did not have to lean on the button until a transition occurred. Your circuit currently has this property, unless you have departed from the clocked sequential-machine synthesis procedure suggested in the previous steps and described in the text. Give a modification of your circuit that solves this problem, and explain why it works.

Reference no: EM131322915

Questions Cloud

If difference between two means is not significant : If the difference between two means is not statistically significant, how certain are you that the independent variable really does not affect the dependent variable?
Collect the voice of the customer : Investigate on the internet the various ways (interviews, focus groups, surveys, etc.) to collect the voice of the customer, and discuss the advantages and disadvantages of each method.
Analyze the leadership teams reaction to the failure : Analyze the leadership team's reaction to the failure, and indicate whether the leadership took sufficient measures to deal with various stakeholder groups impacted by the failure. Provide support for the rationale.Take a position on whether the ..
Develop a price index and going back three years : For this basket he asked his assistant to develop a price index, going back three years, starting with a base of 100.0 (see Exhibit 2).
Show state-transition table for the traffic light : Show a state-transition diagram and a state-transition table for the traffic light. Let the input be the state of the buttons (1 if either button has been pushed, 0 otherwise), and assume that a clock pulse occurs once every 10 seconds. (In other ..
Assumption of risk play a part in the type of contract used : How did assumption of risk play a part in the type of contract used? What type of contract was finally settled upon in this situation? Was this type of contract appropriate for this situation or was there a better type that should have been used?
Find out the all india cable demand for the year 2004 : Find out the all India cable demand for the year 2004 and monthly estimated sales of Bengal cables Company - The price factor was not considered important in forecasting all India demand for cables. Will the same be true in estimating demand for ..
Enterprise risk management-strategy execution-history-role : 1. Review the company mission. Determine what is necessary to achieve this mission of a company. What are internal and external considerations for achievement? 2. Identify the risks to the considerations for achivement. In regard to assets, evaluat..
Concerned about making a type i error than a type ii error : Generally, researchers are more concerned about making a Type I error than a Type II error. Can you think of any instances in which you might be more concerned about making a Type II error?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Write program reads in the length and width of a rectangular

Write a program that reads in the length and width of a rectangular yard (in meters) and the length and width of a rectangular house (in meters) placed in the yard. Your program should compute the time (in minutes) required to cut the lawn around ..

  Formulate one or more problem statements

Formulate one or more problem statements

  Happens to the money multiplier in a financial crisis

1. What do you think happens to the money multiplier in a financial crisis (like the one we had in year 2008), and why? 2. What is the role of the central bank and commercial banks in the process of money multiplication?

  Design a mathematical model

If each shakes the hand of every other person, how many handshakes were there in all? Design a mathematical model to solve the handshake queston. Explain the solution.

  What is the effect of the following statements

what is the effect of the following statements?

  Explain the importance of lubrication for a pump

Explain the importance of lubrication for a pump, compressor, or turbine.

  Determine whether the expression is balanced

Given a sequence consisting of parentheses, determine whether the expression is balanced

  Create a student class which will contain the following

Demonstrate the correct working of your classes by reading in a collection of student records from a file, sort the records, and print them. If a name is "EOF" it will mark the end of the file.

  Which dim statement would correctly declare an array

Which Dim statement would correctly declare an array of this structure for elements having subscripts from 0 through 30

  Outputs the monthly paycheck information

Write a program that calculates and outputs the monthly paycheckinformation for an employee, including all the amounts deductedfrom an employee's gross pay, and the net pay that is due to theemployee. The user of your program will know the employe..

  Show that a deadlock cannot occur

N processes share M resource units that can be reserved and released only one at a time. The maximum need of each process does not exceed M, and the sum of all maximum needs is less than M + N. Show that a deadlock cannot occur.

  Scanning for open wireless networks

Law and ethics are often both considerations when determining the reaction to a computer security incident. For instance, scanning for open wireless networks is not illegal unless the scanner connects to the network without permission. Discuss thi..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd