Title: ECE 551Semester Project Elevator Controller
1ECE 551-Semester Project Elevator Controller
-
- Depeng Yang, Saijun Zhang
- November 30, 2006
- Electrical Computer Engineering Department
- University of Tennessee
- Knoxville, TN 37996-2100
2Outline
- Design Flowchart
- System Requirements
- Input/Output description
- System Diagram
- Master FSM (finite states machine) description
- Slave FSM description
3Design Flowchart
4System Requirements
- This project is for controlling a four floors
elevator. The elevator should - 1) keep its direction unchanged when
it goes - 2) do not move until it gets the
request.
5Input/Output Assignment
Basic Input/output of Spartan3 Demo Board
8 switches4 push buttons 4 7-seg LEDs8 LEDs
6Input/Output Assignment (Input.)
- 1 6 switches (sw0 to sw5) that are in upper
stand for the request from each floor outside the
cars. When it are in down, it means no request. - 2 4 push buttons stand for the floor the people
inside the car want to go to. -
7Input/Output Assignment (output)
1 4 7-seg LEDs show which floor the car is
in. 4 LEDs show the different car condition,
respectively. The number displayed by LED0 shows
car1 condition and the number displayed by LED1
shows car2 condition.
2 four LEDs when it is on show which door is
open.
8System Diagram
9FSM Controller
- Master FSM deal with outside request
- Slave FSM deal with inside request
- Master FSM invokes slave FSM to meet the demand
of people
10Master FSM
- Function of master FSM Keep direction
11Master FSM Keep direction
12Slave FSM
- S1 car door is open. Passengers enter into the
elevator - S2 people in car press the button which
represents the floor they want to reach - S3 people press the button
- S4 people press the button
- S5 Car door is close. Car goes on.
13Master and Slave FSM
14Structure interlock signals
- case runfloor is
- when f1 gt fseg1lt"0001"
- car1lt"0001"
-
- if f1up'1' or
slavefsmfinish'1' then
- slavefsmlt'1'
- else
- slavefsmlt'0'
- if c1f2'1' or
c1f3'1' or c1f4'1' or f1up'1' or f2up'1' or
f2down'1' or f3up'1' then - runfloorltf2
- car1lt"0100"
- downuplt'1'
- end if
-
- end if
154 Cars different clocks
- 4 cars use different clocks to avoid conflict
- 4cars Share same outside request but independent
inside request
164 Cars elevator
17Simulation
18Simulation
19Resource Report
20Clock delays
21RTL Schematic
22RTL Schematic details
23RTL Schematic details
24Target Altera chip schematic
25Target Altera chip schematic
26Target Altera chip floor plan
27Lessons
- Think your project as simple as you can
- Always check your code in broad
- Keep working
28FPGA for Science Computation
- Accelerate computation in parallel using FPGA
- Pipelined computation
29(No Transcript)
30