Elevator
Elevator
Display
logic
7- segment
floor
Control display
D2/X2 logic
UP1/X1
Inputs Outputs
UP0/X0
OPEN
CLOSE
ASM chart of the Controller
The flow chart is composed of:
n State box – Represents the state in which the
system is in.
n Decision box – Describes the effect of an input
on the control sudsystem.
n Conditional box – Within the box are one or
two register operations which take place
during the next raising clock edge.
State GRD
n CLOSE=1; counter is cleared and the door
is closed
n OPEN=1; counter continues to count while
the door is open
n UP0 or X0=1; system remains in State
GRD
n UP1 or D1 or X1=1; System goes to state
FIR
n D2 or X2=1; system goes to state SEC
State FIR
n CLOSE=1; counter is cleared and the door
is closed
n OPEN=1; counter continues to count while
the door is open
n UP0 or X0=1; system goes to State GRD
n UP1 or D1 or X1=1; System remains in
state FIR
n D2 or X2=1; system goes to state SEC
State SEC
n CLOSE=1; counter is cleared and the door
is closed
n OPEN=1; counter continues to count while
the door is open
n UP0 or X0=1; system goes to State GRD
n UP1 or D1 or X1=1; System goes to state
FIR
n D2 or X2=1; system remains in state SEC
Timing Sequence
n Timing in all the flip-flops in the controller
is controlled by a clock.
n Each block in the ASM chart describes the
state of the system during one clock pulse
interval.
n Change from one state to the next is
performed in the control logic.
ASM chart for the Controller
Datapath
Performs the data processing operation.
The requirements for the design of the Datapath
are specified inside the;
Ø State boxes
Ø Conditional boxes
0 0 1 X X X 0 0 0 0 0 0 0 1 0 0 1
0 1 0 1 1 1 0 0 0 0 0 0 0 1 0 1 0
1 0 0 1 1 1 0 0 0 0 0 0 0 1 1 0 0
0 0 1 1 0 0 1 1 1 0 0 0 1 0 0 0 1
0 1 0 X 0 0 X X X 0 0 0 1 0 0 1 0
1 0 0 1 0 0 1 1 1 0 0 0 1 0 1 0 0
0 0 1 1 0 0 0 0 0 1 1 1 0 0 0 0 1
0 1 0 1 0 0 0 0 0 1 1 1 0 0 0 1 0
1 0 0 X 0 0 0 0 0 X X 1 0 0 1 0 0
Control logic
By inspecting the state table, the next
states are equal to the inputs. Thus the
input equations are taken directly from the
state table.
D flip-flops were used in the design due to
ease in formulating the design equations.
Display logic
A decoder was used to produce the outputs
to a 7-segment display.
Control logic diagram
Results and Discussion
n The simulation software used was Circuit
maker pro which has most of SSI and MSI
components.
n Push buttons were simulated as logic
switches and the output indicators used
were;
Ø Logic displays
Ø Seven-segment display
Tabulated results for the controller
Present
State Inputs Outputs
Q3 Q2 Q1 X0,UP0,X1,UP1,D1,X2,D2 Q3 Q2 Q1 Details
Elevator remains on
0 0 1 X0 or UP0 0 0 1 ground floor
Elevator is raised to
0 0 1 X1 or UP1 or D1 0 1 0 immediate floor up
0 0 1 Display a “0”
0 1 0
Display a “1”
1 0 0 Display a “2”
Conclusion
Ø Adopting the ASM procedure simplified
the design.
Ø Design with D flip-flop proved simple and
clear.
Ø The results obtained from simulation
agreed with the theoretical expectation.
Recommendations for further work.