You are on page 1of 17

ABSTRACT

Car Garage System


MANAR MOSTAFA
MENNA AHMED
MARWAN AYMAN
[Computer Architecture]

[CAR GARAGE SYSTEM]

Submitted to: [Eng/Esraa elgamal]


Date: [03/05/2023]
System Description for:
[Car Garage]
Under supervision:

[Dr. Fatma Saqr]

Submitted to:

[Eng: Eng/Esraa elgamal]

Date: [03/05/2023]

Team member:
NAME SCETION
Manar mostafa abdelazim 16
Menna ahmed Mohamed fouad 16
Marwan ayman abdel-ati Fourth year
Contents
1. Abstract ............................................................................................................................. 4
2. Overview ............................................................................................................................ 4
3. Structure ............................................................................................................................ 4
4. Results ............................................................................................................................... 4
1. Abstract
a. Introduction about our project

2. Overview
a. System Block Diagram
b. Inputs and Outputs Table

3. Structure
a. FSM Diagram
b. Description of Each Module

4. Results
a. Test Strategy
b. Simulation Results
1.Abstract

Car Garage System Is the System Which aims to help eliminate


congestion in Garages by Automating the Doors Each Garage Can set
The Maximum Cars Which can be obtained , the doors of Garage
Opens/closed automatically when car get into and get out
respectively, When The Garage Is Full The Doors Doesn’t Open And
Display That The Garage is Full To Help The Customer To know Before
Getting Into The Garage and Looking For Place This Feature Can Save
Time of Customers, Outside The Garage There is a Screen Which
Display the Numbers of the Cars Inside.
Most of the time, the car garage is full, and the absence of evidence
of that makes things sometimes worse. Therefore, the aim of the
project is to help eliminate congestion. The detailed Specification of
CAR SYSTEM is as follow:
❖ there's a button to open and close garage
❖ there's a counter that increment when car enter garage and
decrement when car leave garage
❖ the maximum number of cars can enter garage is 50
❖ if the existing cars greater than 50 then garage will not open and
display GARAGE IS FULL otherwise car enter garage.
❖ when garage not full display the count of cars otherwise display
GARAGE IS FULL
2.Overview:

1. System Block Diagram:

2. Inputs and Outputs Table:

Inputs Description
Car in Represent entering the car
Car out Represent the exit of a car

Outputs Description
Alarm It turns on when the
garage is full
Y The number of existing
cars
Led_1 &led_2 It displays the state of the
garage and view the
number of existing cars
3.Structure:

a) Binary Encoding

S0=2'b00, // Reset (Empty)


S1=2'b01, // increment
S2=2'b10, // decrement
S3=2'b11; // Full

b) FSM Diagram
c)Description of modules
in our project we used three of famous modules:
1- 7-Segment
2- FSM counter
3- Testbenches

MODULES description:
A)7-Segment:
it’s a Module Which takes 4-Inputs (A, B, C and D) and returns a Vector Port [6:0]
Which Represent the LEDs of the 7-Segment which Describe the Decimal Number
equivalent to the 4-bits Binary Number
The 7-segment display module is an essential component for any car garage project.
It is a simple and effective way to display important information such as the number
of available parking spaces, the status of a particular parking spot, or the time limit
for parking.
In a car garage project, the 7-segment display can be used to show the number of
available parking spaces. For example, if there are “50” parking spots in the garage
and “15” of them are currently available, the display can show the number "15" using
the seven segments.
Overall, the 7-segment display is a versatile and useful component for any car garage
project. It provides a simple and effective way to communicate important things.

information to drivers and can be easily integrated with other


components such as sensors and microcontrollers.

(Figure a:7-Segement)
B) FSM Counter:
It’s a Module Which takes 3- Inputs (Car In, Car Out and Reset) and Returns Alarm
and the value of Up/Down Counter Which controlled by the Finite State Machine
(FSM)
The FSM Counter consists of two main components: the state machine and the
counter. The state machine is responsible for determining the current state of the
system, while the counter keeps track of the number of cars.
The state machine has two main states: "Entry" and "Exit". When a car enters the
garage, the state machine transitions to the "Entry" state and increments the counter.
When a car exits the garage, the state machine transitions to the "Exit" state and
decreases the counter.
The counter is implemented using digital logic circuits and is incremented or
decreased depending on the current state of the system. The counter can be
displayed using a 7-segment display or other types of displays.
The FSM Counter is usually controlled by a microcontroller or an Arduino board. The
microcontroller sends signals to the state machine to transition between states and
to the counter to increment or decrement the counter.

(Figure B: FSM counter)


C)Testbenches:
it’s Module Which We Put the Tests That We Want to Test the Accuracy of the
Outputs of Modules.
Testbenches are an essential component in any car garage project as they are used to
simulate and test various scenarios and functionalities of the system. Testbenches are
used to ensure that the system operates as expected and to identify and debug any
errors or issues.
A testbench is essentially a set of input values and expected output values. It is used
to stimulate the system under test and verify that the output values match the
expected values. In a car garage project, the testbenches are designed to simulate
various scenarios such as a car entering or exiting the garage, a car parking in a
specific spot, or the availability of parking spaces.
Testbenches can be designed using various techniques such as manual testing,
automated testing, or a combination of both. Manual testing involves a person
manually entering input values and comparing the output values with the expected
values. Automated testing involves using software tools and scripts to automatically
generate input values and compare the output values with the expected values.
The testbenches can be designed using various tools such as simulation software,
scripting languages, or specialized testing. Overall, testbenches are a critical
component of any car garage project. They are used to ensure the system operates as
expected, to identify and debug any issues, and to evaluate the system's performance
under various conditions. By designing and implementing effective testbenches, the
system can be thoroughly tested and validated to ensure a reliable and seamless
.parking experience for drivers

Comment (We will show test in detail next in specific table)


4. Results
a) tests strategy:
e test strategy is an essential component of any car garage project. It provides a roadmap for
the testing activities, helps to ensure that testing is executed in a systematic and organized
manner, and facilitates collaboration and communication among the project stakeholders.
Objectives and goals: The primary objective of the testing effort is to ensure the reliability,
functionality, and usability of the car garage system. The test strategy outlines the specific
goals and objectives that the testing team should strive to achieve.

Up counting:
Up counting is a method of counting the number of cars that enter a car garage in a car
garage project. It involves incrementing a counter each time a car enters the garage,
resulting in an increasing count of the number of cars that have entered. Once a car is
detected entering the garage, the counter is incremented by one, and the new count is
stored in the system's memory. This count can then be used to determine the number of
parking spaces available in the garage and to track the utilization of the parking spaces over
time.
Up counting can also be used to generate reports on the number of cars that have entered
the garage over a specific period, such as a day, a week, or a month.

Down counting:
Down counting is a method of counting the number of cars that exit a car garage in a car
garage project. It involves decrementing a counter each time a car exits the garage, resulting
in a decreasing count of the number of cars that have exited.
In a car garage project, down counting can be implemented using various methods such as
using a sensor to detect when a car exits the garage, or by monitoring the signal from the
gate or barrier that controls exit from the garage.
Once a car is detected exiting the garage, the counter is decremented by one, and the new
count is stored in the system's memory. This count can then be used to determine the
number of parking spaces available in the garage and to track the utilization of the parking
spaces over time.
Down counting can also be used to generate reports on the number of cars that have exited
the garage over a specific period, such as a day, a week, or a month. down counting is an
essential component of a car garage project as it provides valuable information on the usage
and utilization of the garage. It helps to ensure that the system operates efficiently and that
parking spaces are utilized effectively, resulting in a seamless parking experience for drivers.
Tables to explain Up& down counting:
a) Up counting

Car in Car out Output alarm


1 0 1 0
1 0 2 0
1 0 3 0
1 0 4 0
1 0 5 0
1 0 6 0
… … … …
1 0 46 0
1 0 47 0
1 0 48 0
1 0 49 0
1 0 50 1
1 0 Garage is 1
full
1 0 Garage is 1
full
b) Down counting:

Car in Car out Output alarm


0 1 49 0
0 1 48 0
0 1 47 0
0 1 46 0
0 1 45 0
… 1 44 0
0 … … …
0 1 5 0
0 1 4 0
0 1 3 0
0 1 2 0
0 1 1 1
0 1 Garage is 0
empty
0 1 Garage is 0
empty
c)Up Down Counting:

Car in Car out Output alarm


1 0 46 0
1 0 47 0
1 0 48 0
1 0 49 0
1 0 50 1
1 0 Garage full 1
0 1 49 0
0 1 48 0
0 1 47 0
0 1 46 0
1 1 No change 0
(46)
0 0 Delay 0
Simulation results:
A) Up Counting: Wave & result
B) Down Counting: Wave & result
C)Up Down Counting: Wave & result

You might also like