[1] Design a Finite State Machine (FSM) to control the traffic lights at an intersection of...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
[1] Design a Finite State Machine (FSM) to control the traffic lights at an intersection of a north-south road with an east-west road, as shown in the illustration below. Car det 1000 000 ●00 Car det OOO carew rst cik FSM 6 lights The FSM takes an input carew that indicates that a car is waiting on the east-west road. The FSM takes a second input, rst, that resets the FSM to a known state. There are six lights to control, green, yellow, and red, for both the north-south road and the east-west road. Consequently, the FSM outputs six control signals, one for each of the lights. An English-language description of the FSM is given below: (1) Reset to a state where the light is green in the NS direction and red in the EW direction. (2) When a car is detected in the EW direction (carew= 1), go through a sequence that makes the light go green in the EW direction and then return to green in the NS 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. [2] Consider the traffic light controller designed in problem 3. Implement the FSM as a synchronous sequential logic circuit. Choose the Binary Code state assignment (i.e. 00, 01, 10, 11). Show the state table/ state assigned table. Show K-maps for the next-state variables and output variables. Derive expressions for the next-state logic and the output logic. Draw the sequential logic circuit, including the combinational logic circuits for the next- state and output, and the state register. 3. [1] Modify the traffic-light controller FSM (from problem 1) so that it takes an additional input, carns, that indicates when there is a car waiting in the NS direction. Change the logic so that, once the light has changed to EW, it stays with EW green until a car waiting in the NS direction is detected. Draw the state diagram. [1] Design a Finite State Machine (FSM) to control the traffic lights at an intersection of a north-south road with an east-west road, as shown in the illustration below. Car det 1000 000 ●00 Car det OOO carew rst cik FSM 6 lights The FSM takes an input carew that indicates that a car is waiting on the east-west road. The FSM takes a second input, rst, that resets the FSM to a known state. There are six lights to control, green, yellow, and red, for both the north-south road and the east-west road. Consequently, the FSM outputs six control signals, one for each of the lights. An English-language description of the FSM is given below: (1) Reset to a state where the light is green in the NS direction and red in the EW direction. (2) When a car is detected in the EW direction (carew= 1), go through a sequence that makes the light go green in the EW direction and then return to green in the NS 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. [2] Consider the traffic light controller designed in problem 3. Implement the FSM as a synchronous sequential logic circuit. Choose the Binary Code state assignment (i.e. 00, 01, 10, 11). Show the state table/ state assigned table. Show K-maps for the next-state variables and output variables. Derive expressions for the next-state logic and the output logic. Draw the sequential logic circuit, including the combinational logic circuits for the next- state and output, and the state register. 3. [1] Modify the traffic-light controller FSM (from problem 1) so that it takes an additional input, carns, that indicates when there is a car waiting in the NS direction. Change the logic so that, once the light has changed to EW, it stays with EW green until a car waiting in the NS direction is detected. Draw the state diagram.
Expert Answer:
Related Book For
Fundamental Accounting
ISBN: 9781485112112
7th Edition
Authors: David Flynn, Carolina Koornhof, Ronald Arendse, Anna C. E. Coetzee, Edwardo Muriro, Louise Christel Posthumus, Louise Mancy Smit
Posted Date:
Students also viewed these chemistry questions
-
On July 1, 2019, Bazaarist Inc. issued a $1000 trade note to a supplier to purchase inventory. The trade note bears a stated interest rate of 8% and matures on December 31, 2019. Record the journal...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
In this exercise, we will explore the control unit for a cache controller for a processor with a write buffer. Use the finite state machine found in Figure 5.40 as a starting point for designing your...
-
Randy, Inc., can issue 3-month commercial paper with a face value of $1,500,000 for $1,450,000. Transaction costs will be $1,500. The effective annualized percentage cost of the financing, based on a...
-
1. Find the probability that a person chosen at random has a democratic style and medium productivity. 2. Find the probability that an individual chosen at random has high productivity or an...
-
Beech Corporation is a merchandising company that is preparing a master budget for the third quarter of the calendar year. The companys balance sheet as of June 30th is shown below: Beechs managers...
-
What is the As-Verified Configuration, and when is it established?
-
Dane Cosmetics is evaluating a new fragrancemixing machine. The machine requires an initial investment of $24,000 and will generate after-tax cash inflows of $5,000 per year for 8 years. For each of...
-
Mark Down Han Golf Emporium sells golf balls for $27.95 per dozen. The emporium's overhead expenses are 49% of cost and Nahee, the owner, requires a profit of 22% of cost. What is the break-even...
-
The Scottsville Textile Mill1 produces five different fabrics. Each fabric can be woven on one or more of the mills 38 looms. The sales departments forecast of demand for the next month is shown in...
-
3. (8 points) An analyst has collected data about Conyers Inc. and a world market index. Analysts estimate that the firms beta calculated with respect to U.S. markets is equal to 1.2 and the domestic...
-
Trade secret theft can cause significant harm to a business. At the same time, businesses sometimes intentionally suppress information that might harm sales if publicly known. Suppose an employee of...
-
Thomas Walsh was the Chief Administrative Officer of the Virginia Commonwealth University (VCU) School of Medicine. When concerns were raised about the financial management of Walshs department, VCU...
-
In a complaint filed by the Securities and Exchange Commission (SEC) against Thomas P. Flanagan and Patrick T. Flanagan in the U.S. District Court Northern District of Illinois Eastern Division, the...
-
An increasing number of electronic files are secured by encryption measures for added levels of protection. Such measures may make it difficult for law enforcement officials to access computer hard...
-
Given the following code snippet, which values of x will allow the call divide(x) to compile and provide predictable results at runtime? (Choose two.) A. Set.of(1f,2f,3f,4f).stream() B....
-
A zebra can run at a constant speed of 0.6 miles per minute. How far can a zebra run in 30 minutes?
-
1. Using the information from Problem 16-4B, prepare a statement of cash flows for Lim Garden Supplies Inc. using the direct method of presenting cash flows from operating activities. 2. How does Lim...
-
A treasurer of a tennis club has prepared this draft statement of receipts and payments. The club committee, however, wants the financial statements for 20x3 (and subsequent years) to be in the form...
-
Record the transactions in Question 4.9 in the three primary accounts of Jumpa Taxis. Balance all three accounts. Data from Question 4.9. Record the amounts resulting from these transactions on the...
-
These balances appeared, among others, in the records of Nazira Fashions on 1 July 20x3: Transactions for July 20x3: 2 M. Tsoai paid R810 and C. Clarke paid R1 620 in full settlement of their...
-
Assume that you have shorted the call option in Problem 2. PROBLEM 2 You own a call option on Intuit stock with a strike price of \($40.\) The option will expire in exactly three months. a. If the...
-
Redo Problem 14, but assume that Kay must pay a corporate tax rate of 21%, and that investors pay no taxes. Problem 14. Chen Brothers, Inc., sold 4 million shares in its IPO, at a price of \($18.50\)...
-
When is an employee able to participate in a SEP? A. In the current year, if employee attains age 18 by December B. If the employee performed services for the employer in at least 3 of any 5...
Human Population Dynamics Cross Disciplinary Perspectives 1st Edition - ISBN: 0521004683 - Free Book
Study smarter with the SolutionInn App