Professional Documents
Culture Documents
Car Garage
Car Garage
Car Garage
For
Car Garage
Team Member:
1- )6 دعاء محمود محمد احمد جادهللا (سيكشن
2- )01 علياء هشام عبدالمنعم عبدالحميد (سيكشن
2.Overview:
a-System icon:
Button_up_down Display
reset Car Garage
Switch Alarm
switch
Count_out display
button
counter decoder 7-seg
reset
alarm
c. Input and Output table :
Input Output
button switch Count
0 X NC
1 0 --
1 1 ++
count alarm
000 000 1
110 010 1
x 0
3. Structure
a. FSM Diagrams
Counter FSM
Car garage FSM
b. Description of each module :
------- counter module
Counter gets a signal from its up-down button to determine that there is an a car
after that it receives input signal from the switch that determines that if the car is going in or
getting out .
If the car is going in or out the counter checks how many cars are in the garage if it is greater
than 0 and less than 50 cars are allowed to get in or out with displaying the number , BUT
1. If the number of cars reached to 50 no cars allowed to get in with displaying FF( full)with
an alarm
2. If the number of cars in is 0 no cars it would have an alarm and would do no subtraction
on the number of the cars
3. If the number of cars between 0 -50 counter counts cars that enter and exit
NOTE: counter takes an reset input if it is 1 them counter start from 000 000 if it is not thn it
count depending on the others input .