东华理工大学毕业(论文)
摘要
摘
要
本课题是基于VerilogHDL语言的小型自动售货机。采用VerilogHDL在ModelsimSE62B软件平台进行编译和仿真。在此次设计中,主要采用有限状态机(FSM)的设计,在投币选货状态和找零状态在这两个状态间进行转移。从而实现货物的选择、货币运算、出货控制、余额显示以及找零等功能。该售货机系统能够识别两种硬币,两种纸币。有五种不同价格的商品可供选择,并且通过显示译码电路,可在LED显示器显示余额,同时具备找零、机器存有硬币不足LED亮起报警、缺货LED亮起报警等功能。现代的自动售货机有使用方便快捷,可以全天候24小时工作,占地少,成本低,维护简单等优点,有着广阔的前景。采用FPGA方式用VerilogHDL硬件描述语言,设计简易的自动售货机,其编程简单,开发周期短,硬件运行速度快,开发成本低,稳定性高等优点。关键词:自动售货机;VerilogHDL;有限状态机;Modelsim;
I
f东华理工大学毕业(论文)
ABSTRACT
ABSTRACT
Thistopicdesig
asimpleve
di
gmachi
eisbasedo
theFPGAchipEP2C35chipa
dDE2developme
tboardforthehardwareplatformtheuseofVerilogHDLtocompilea
dsimulatio
i
theQuartusⅡsoftwareplatforma
dthroughtheDE2developme
tachievethebasicfu
ctio
sofaSimpleve
di
gmachi
eboardbytodow
loadcodetothechipI
thisdesig
itusedoffi
itestatemachi
eFSMdesig
choiceofgoodsstateshipme
tstatusa
dgivecha
gecoi
statei
thethreei
terstatetra
sferi
ordertoachievethechoiceofgoodsmo
etaryoperatio
sthecargoco
trolfeaturessuchasdisplaya
dgivecha
geTheve
di
gmachi
esystemtoide
tifythreeki
dsofcoi
stherearefiveki
dsofgoodsatdiffere
tpricestochoosefroma
dbyshowi
gdecodi
gcircuiti
DE2o
boardLEDdisplayshowsthebala
cebothfu
ctio
sgivecha
geModer
ve
di
gmachi
esareco
ve
ie
titca
work24hoursadaycoversa
areaofsmalllowcostsimplemai
te
a
cetherearebroadprospectsMa
erwiththeuseofFPGAhardwaredescriptio
la
guageVerilogHDLdesig
simpleve
di
gmachi
etheprogrammi
gissimpleshortdevelopme
tcyclesfasthardwarethedevelopme
toflowcosthighstability
Keywordsve
di
gmachi
esVerilogHDLFi
itestatemachi
eFPGADE2developme
tboard
II
f东华理工大学毕业(论文)
目录
目
录
绪论..............................................................1第一章系统方案设计................................r