Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Finite State Machines Lab 6 In this lab, we will design a simple state machine that imitates a traffic light. The state machine should do

Finite State Machines Lab 6
In this lab, we will design a simple state machine that imitates a traffic light. The state machine should do the following:
Start in the "green" state.
Once switch S1 is pressed (or switched) the state machine should transition to the "yellow" state for 1 clock cycle.
After 1 clock cycle, the state machine should transition to the "red" state and stay there until switch S1 is pressed (or switched).
From the "red" state, after S1 is pressed, the state should transition to the "green" state.
Design the state diagram. Once you have the state diagram, create the truth table. From the truth table, use a K map to design the circuit.
Use a D flip flop to store the state.
Use 3 different output indicators to indicate the red, yellow, and green states.
Use a switch or push button switch to change the state.
Use the function generator for the clock.
Simulate the state diagram and the circuit using appropriate simulators.
For online students, you will need to move wires back and forth from +5 and ground to imitate the clock. I forget how many LEDs had you order, but you may need to move the connection to the LED between outputs. ALWAYS MAKE SURE YOU USE A RESISTOR IN SERIES WITH YOUR LED!!!
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 Security XI Status And Prospects

Authors: T.Y. Lin, Shelly Qian

1st Edition

0412820900, 978-0412820908

More Books

Students also viewed these Databases questions

Question

Develop an audience and use profile to guide your design

Answered: 1 week ago