摘要
本系统采用了Altera的开发软件的QuartsII。该软件平台进行数字电路设计和仿真的方法;阐述了VHDL(VeryHighSpeedI
tegratedCircuitHardwareDescriptio
La
guage)语言的一些特点及语法结构;介绍了自动售货机系统的基本原理、系统组成和主要功能;并分析讨论了用VHDL语言开发自动售货机系统的设计流程。本设计利用Altera公司的开发软件QuartusII平台,采用VHDL硬件描述语言编程的设计方法设计系统核心电路的硬件程序,在QuartusII软件平台上进行编译和电路仿真,最后生成的目标文件下载到实验台内的FPGA芯片以实现该系统,并在实验台上对设计进行了验证。
最终完成的自动售货机系统具有投币处理、商品选择、购货撤销、异常退币、计算存货等主要功能,整个系统的开发体现了在QuartusII软件平台上用VHDL设计数字控制系统的实用性。
关键词:FPGA,EDA,VHDL,QuartsII,Altera,自动售货机
fAbstract
ThissystemusesaAlteradevelopme
tsoftwareQuartsIIItexplai
sthecharactersa
dprogramstructureofVHDLVeryHighSpeedI
tegratedCircuitHardwareDescriptio
La
guagethebasicpri
ciplea
dmai
fu
ctio
softheautomatsystema
dthedesig
schemebasedo
VHDLla
guageThecorecircuitoftheautomatsystemisimpleme
tedbyVHDLprogramcompileda
demulateo
QuarusIIplatformofAlteraFi
allythroughtheobjectcodesofthecorecircuitaredow
loadedi
totesti
strume
ttheautomatsystemisrealizedcompletelya
dthevalidityofsystemdesig
isverafiwdbythetestplatform
Thefi
ishedautomatsystemhasthemai
fu
ctio
sofprocessi
gthethrow
coi
goodschoicepurchasesabolishi
gdrawi
gbackthecoi
calculati
ggoodsi
stocka
dsoo
Thewholesystemdevelopme
tma
ifeststhepracticabilityofdesig
i
gthe
umericalco
trolsystemo
theQuartusIIsoftwareplatformwithVHDL
KeyWords:FPGA,EDA,VHDL,QuartsII,Altera,Vedi
gmachi
e
f目录
1引言12硬件系统的设计1
21芯片的选择122时钟发生器123电源电路124键盘的设计225显示器设计r