This document presents a project on modeling and implementing a retail process for a vending machine using Verilog. It contains an introduction to finite state machines and discusses their use in modeling the vending machine's operations. The document outlines the vending machine's flow chart and state diagram. It also presents the simulation results and concludes the vending machine was successfully designed to dispense three products at different price points and return correct change.
2. FSM BASED MODELLING AND IMPLEMENTATION OF RETAIL PROCESS
ON VENDING MACHINE USING VERILOG
PRESENTED BY
K.SUSMITHA (167Q1A0415)
G.RAVINDAR REDDY(167Q1A0412)
MD.AHFAQ AMER(167Q1A0427)
CH.MAYURI(167Q1A0434)
UNDER THE GUDENCE OF
D.SRINIVASA REDDY(ASSOC.PROF)
DEPT.OF ECE
3. CONTENTS
ABSTRACT
OVER VIEW OF FSM
INTRODUCTION
MEALY AND MOORE MACHINE MODEL
HISTORY
FLOW CHART
STATE DIAGRAM
ADVANTAGES
SIMULATION RESULT
CONCLUSION
4. ABSTRACT
The vending machine is an automated machine that dispenses various products
such as snacks, beverages, newspapers, tickets etc.
To customers when money or credit card is inserted. Vending machines are
more accessible and practical than the convention purchasing method Now,
vending machine market is a big business with huge annual revenue for
leading nations like The USA, Japan.
5. OVERVIEW OF FSM
It is a mathematical model of
computation used to design both
computer programs sequential logic
circuits.
The machine is only one state at a
time; the state it is in at any given time
is called current state.
logic circuits.
6. The Vending Machine is an automatic machine that sells
food such as canned soups and packaged sandwiches,
snacks such as potato chips, chocolate bars, and candy);
hot drinks (coffee, tea, and hot chocolate); cold drinks .
Then, a button needs to be pushed, or a lever pulled. If
there is enough money, the selected item will be dropped
to a tray.
INTRODUCTION
7. MEALY:-
Output depends on the present state as well as on the input.
input output
The out put depends on the only present state.
output
Next state
logic
Current
state
logic
Output
logic
MOORE:-
Next
state
logic
Current
state
logic
Output
logic
input
8. HISTORY
The earliest known references to
vending machine is in the work of
hero of Alexandria, a first century
engineer and mathematician. His
machine accepted a coin and than
dispended holy water.
The first modern coin-operated
vending machine is introduced in
London, England in the early 1880s,
dispending post cards
9. FLOW CHART
START
SELECT THE PRODUCT
INSERT COINS
INCREMENT
COUNT
can
cel
Mo
ney
=pri
ce
Mo
ney
>pr
ice
Return money
Decrement count
Give product
Give product and
change
Decrement count
STOP
11. ADVANTAGES
Vending machines give the Clients free choice to purchase the
products at any time of the day.
Reduction of overhead costs by not hiring of staff only increases
the profit margin for the owners making it a success bound
venture.
The machine can always moved to other areas if need arises and it
will continue delivering the services usual .
13. CONCLUSION
The vending machine was successful in dispensing three products
A, B and C of prices Rs.5/-, Rs.10/- and Rs-20/- respectively, with
the additional features of dispensing product along with returning
change when higher denomination coin is inserted and returning
total money when request is cancelled. The vending machine is
successful in meeting the specifications laid out prior to the
design.