Search for question
Question

Operation

• Elevator initial state:

• Floor 1, Door Closed, Motor Off (UP-DOWN=0)

Elevator remains on last floor visited:

• Floor 1 or 2 or 3, Door Closed, Motor Off

• On Elevator Call (N1, N2, N3), either

If current Floor!=n: Motor UP or DOWN until FSn, Door Open (10s), Reset N

• Else: Door Open (10s), Reset N

If Elevator going up to Floor 3 and at Floor 2:

• Get N1 then go up to Floor 3 before down to Floor 1

Elevator cannot move unless Door Closed/nDesign the Elevator Control Circuit

Pin/Bus 1/0 Size

Input 1-bit

Input 1-bit

Input

1-bit

Input

1-bit

Input

1-bit

Input

1-bit

Input

1-bit

Output 1-bit

N1

N2

N3

FS1

FS2

FS3

DC

R1

R2

R3

UP

Output 1-bit

DOWN

Output 1-bit

DO

Output 1-bit

FLOOR

Output 7-bits

CLOCK Input 1-bit

Floor 1 Call (1=call to floor 1)

Floor 2 Call (1=call to floor 2)

Floor 3 Call (1=call to floor 3)

Floor 1 Sensor (1=at floor 1)

Floor 2 Sensor (1=at floor 2)

Floor 3 Sensor (1=at floor 3)

Door is closed (1=closed)

Reset Floor 1 Call when arrive at Floor 1 after call (1=reset)

Reset Floor 2 Call when arrive at Floor 2 after call (1=reset)

Reset Floor 2 Call when arrive at Floor 2 after call (1=reset)

Motor Up (1=on)

Motor Down (1=on)

Open door (1=open)

7-Segment display of current floor

Manual Clock (falling-edge)

RESET Input 1-bit Manual Reset (0=reset)

Name

Output 1-bit

Output 1-bit

DE1

SW9

SW8

SW7

SWO

SW1

SW2

SW3

LED9

LED8

LED7

LEDO

LED1

LED2

HEXO

PBO

PB1

Comment/nProject Description

• Design a Moore sequential state machine

• Minimize the number of states

Show the state graph and state tables (state transition, output)

• Create a VHDL implementation and simulate in Modelsim

Upload to DE1 board and demonstrate operation

Comment

• Extra Credit:

Display 'u' and 'd' on 7-segment Hex1 to indicate UP or DOWN

• Add a FIRE input that clears all calls and returns elevator to Floor 1 with Door

Open

Fig: 1

Fig: 2

Fig: 3