Simulation of a Test Bench Depicting Major Features SIMULATION FOR BENCH:!JustCoders main tb.vhd For seeing all the outputs and signals in the simulation, add the signal is open from the door controller for door1, door2, door3, door4 and door5 from uut in the simulation window. The elevator is assumed to be on the first floor initially when the system starts. Also it is assumed that the elevator can bear at the most 400 Kg for its normal functioning. 1. The button on the first floor for going up is pressed. 2. People with weight summing to 350 Kg get inside and the button for going to the 4th floor is pressed. 3. Lift starts going up and reaches the 2nd floor. 4. Simultaneously there is a request to go down from the 5th floor. 5. While continuing its upward motion, it reaches the 3rd floor and simultaneously a request for going down from the 2nd floor comes. 6. The elevator then reaches the 4th floor where all the people (who got in at the first floor) get out. 7. The elevator then moves to the 5th floor to find people weighing 600 Kg are waiting. 8. Due to the weight restrictions, only some people weighing 400 Kg get inside, leaving the others one waiting for the lift to come back again. 9. The people inside the elevator press the button to go down to the 1st floor. 10. After the lift starts moving down, the people waiting on the 5th floor press the button to go down again. 11. The lift goes down to the 2nd floor and the door opens, but since the elevator is already operating at full load no person is able to get inside and the door closes. 12. The elevator then goes to the 1st floor and all the people get down. 13. The people who couldnt get on the elevator on the 2nd floor press the down button on the 2nd floor again. 14. The elevator then starts moving upwards and then reaches the 5th floor without stopping anywhere in between. 15. The people who were waiting at the 5th floor, weighing 200 Kg get in. 16. The elevator then goes down directly to the 2nd floor and opens there. 17. People weighing 100 Kg get in and the elevator starts moving down reaching the 1st floor. 18. Everyone gets out on the 1st floor and the lift then remains idle for some time. 19. After some time there is a call for the elevator at the 2nd floor to go up, leading the elevator to go up to the 2nd floor from its idle state at the 1st floor. 20. The elevator then reaches the 2nd floor and people weighing 200 Kg get inside. Being caught in an emergency they press the OVERRIDE button and the button for the 5th floor simultaneously, making the elevator spring into the Override state. 1
21. The elevator moves upwards reaching the 3rd floor and simultaneously there is a request for going up from the 4th floor. 22. The elevator, continuing its upward motion reaches the 4th floor but the door doesnt open even though there is a request for going up at the 4th floor due to the overriding of the normal elevator floor scheduling algorithm 23. The elevator reaches the 5th floor finally and all the people get out. 24. The elevator is then called at the 3rd floor. 25. It then moves to the 3rd floor and opens but no one gets inside. 26. It remains idle for some time. Thereafter simultaneously two requests come from the 5th floor to go down and from the 2nd floor to go up. 27. The elevator first goes to the 2nd floor with a person weighing 50 Kg getting in. 28. The person inside the lift presses the button to go to the 5th floor. 29. The elevator reaches the 5th floor directly with the person inside getting out and another one weighing 125 Kg getting in. 30. The person presses the in-lift button for the 3rd floor. 31. The elevator then goes to the 3rd floor and the person gets out. 32. The lift is idle for some time. 33. The button outside floor 3 is pressed by some person to open the lift. 34. People weighing 200 Kg get in and press the button for the 5th floor. 35. The elevator starts its upward journey and the Fire Alarm goes High when the lift is between the 4th and the 5th floor. 36. The elevator aborts its upward motion and goes down to the 4th floor 37. The elevator then opens on the 4th floor for the safety of the people travelling inside it and the door is open till the lift is reset. 2
Figure 1: Full TestBench Simulation Preview Figure 2: TestBench Preview for 0-1800 ns 3
Figure 3: TestBench Preview for 1800-3600 ns Figure 4: TestBench Preview for 3600-5400 ns 4
Figure 5: TestBench Preview for 5400-7200 ns Figure 6: TestBench Preview for 7200-9000 ns 5
Figure 7: TestBench Preview for 9000-10800 ns Figure 8: TestBench Preview for 10800-12600 ns 6
Figure 9: TestBench Preview for 12600-14400 ns Figure 10: TestBench Preview for 14400-16200 ns 7
Figure 11: TestBench Preview for 16200-18000 ns Figure 12: TestBench Preview for 18000ns-end 8