Question: Design and implement a finite state machine which controls the operation of an elevator in a 2-story building. The finite state machine (FSM) has 1

Design and implement a finite state machine which controls the operation of an elevator in a 2-story building.

The finite state machine (FSM) has 1 input: enable (enables operation of elevator)

The FSM has three outputs:

door (if door == 0, door is closed if door == 1, door is open)

Current floor number (Use an LED, the two states (ON/OFF) of the LED represents the two floors).

Moving (display that the elevator is moving)

The operation of the elevator is as follows:

The elevator must begin in an idle state (on one of the two valid floors) with the door closed.

The user should set/reset the enable input

When the user sets the enable input, the elevator should perform the following sequence:

1) Open the door for 4 seconds

2) Close the door

3) Move the elevator to the destination floor in 4 seconds and display the current floor number using an LED

4) Open the door for 4 seconds

5) Close the door

6)nGo to Idle state

Remain in the same floor if enable input is reset. Repeat the sequence if the enable input is set.

The elevator will complete the sequence if enable signal is reset in the middle of the sequence.

Assume that the clock frequency is 4 Hz

I NEED the state diagram and state table please!!!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!