Car Garage

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 11

System Description

For
Car Garage

Team Member:
1- )6 ‫دعاء محمود محمد احمد جادهللا (سيكشن‬
2- )01 ‫علياء هشام عبدالمنعم عبدالحميد (سيكشن‬

Submitted to : Dr. Fatma Saqr , Eng.Aya Essam


Date : 1/5/2023
Contents:
1- Abstract.
2- Overview.
3- Structure.
4- Results.
1.Abstract:
Our project is a car garage that keeps up with how many cars are inside it, its maximum capacity is 50, and
there is a display of how many cars are in until it is full it displays “F F”.
When a car enters count increase, when it out count decreases.
The garage has an alarm on when the count is 50 -or tries to be more -or 0 - or tries to be less-

2.Overview:
a-System icon:

Button_up_down Display
reset Car Garage
Switch Alarm

b-System Block Diagram:

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 .

------- 7-seg decoder module


Decoder transform the binary output from the decoder to decimal numbers shown
on the 7-segment .
We got two numbers to display on two 7-segments so the first output for the first
7-seg come from the counter-output%10 this would generate a 4 bit string that
determines which leds will be on at the first 7-segment
And the second output for the second 7-seg come from the same counter-
output/10 this would generate a 4 bit string that determines which leds will be on
at the second 7-segment NOTE : when the second 7-seg reach to 5 both segments
would display “ff” as if it is full
4.Results
a. test strategy
button switch Reset delay count alarm Seg2 Seg1
X 000 000 000 0000 111 1110
X 1 100 0
1 000 001 000 0000 011 0000
1 0 0
1 000 010 000 0000 110 1101
1 0 0
1 000 011 000 0000 111 1001
1 0 0
1 000 100 000 0000 011 1001
1 0 1500 0
1 000 101 000 0000 101 1011
1 0 0
1 000 110 000 0000 101 1111
1 0 0
1 000 111 000 0000 111 0000
1 0 0
1 000 110 000 0000 101 1111
0 0 0
1 000 101 000 0000 101 1011
0 0 500 0
1 000 110 000 0000 101 1111
1 0 0
1 000 111 000 0000 111 0000
1 0 600 0
1 001 000 000 0000 111 1111
1 0 0
1 000 111 000 0000 111 0000
0 0 0
1 000 110 000 0000 101 1111
0 0 0
1 000 101 000 0000 101 1011
0 0 150 0
1 000 100 000 0000 011 1001
0 0 0
1 000 011 000 0000 111 1001
0 0 0
1 000 010 000 0000 110 1101
0 0 0
1 000 001 000 0000 011 0000
0 0 0
1 000 000 000 0000 111 1110
0 0 1
1 000 000 000 0000 111 1110
0 0 1
1 000 000 000 0000 111 1110
0 0 1
b. simulation results

You might also like