EDA设计基础实验课程论文题目基于Verilog语言的简单自动售货机学院通信学院专业班级通信111班学生姓名大彬哥指导教师大力会2013年6月12日EDA设计基础实验课程论文I摘要本设计是以现场可编程逻辑器件(FPGA)为核心的自动售货机,利用QuartusⅡ软件编写VerilogHDL硬件描述语言程序以实现自动售货功能。本设计主要以程序为主,硬件方面则使用实验箱,将程序各变量端口与实验箱管脚进行相应的配置,用八个开关分别代表商品价格、所投钱币价格及确认付款找零操作。当选择好商品并投币后,数码管显示所选商品价格及投入钱币价格;按下确认付款开关,数码管显示应该找多少钱,蜂鸣器响,对应商品LED灯亮。若所投钱币不足所选商品价格,对应警告钱币不足的LED灯亮。关键字:现场可编程逻辑器件VerilogHDL自动售货机QuartusⅡEDA设计基础实验课程论文IIAbstractThisdesignisanauto-vendingmachinebasedonfieldprogrammablelogicdevices(FPGA).WeuseQuartusⅡtowriteprocedureinverilogHDLwhichisalanguagetodescribehardware.Theprocedurewillrealizethefunctionofauto-vendingmachine.Thisdesignismainlyaboutprocedure.Forthehardware,weuseexperimentalbox.Weallocateallvariablequantitiesintheproceduretothefeetinexperimentalbox.Weuseeightswitchrespectivelyrepresentcommoditypricesandthrowmoneypriceandconfirmpaymentchangeoperation.Whenchoosinggoodcommoditiesandcoin,digitalpipedisplayselectedcommoditypricesandmoneyprice.Whenpressingconfirmpaymentswitch,digitalpipedisplayshouldfindhowmuchmoney,buzzersounded,correspondingcommodityLEDlights.Ifthrowmoneyshortageselectedcommodityprices,correspondingwarningmoneyshortageofLEDlights.Keywords:FPGAVerilogHDLauto-vendingmachineQuartusⅡEDA设计基础实验课程论文III目录摘要·······································································································IAbstract·····································································································II第1章绪论·····························································································11.1概述······························································································11.2课题的背景、目的············································································11.3课题设计环境··················································································21.3.1EDA的应用及发展趋势·······························································51.3.2QuartusII简介···········································································31.3.3FPGA介绍···············································································4第2章系统设计·······················································································52.1系统设计························································································52.2系统设计方案比较············································································52.2.1总体设计·················································································52.2.2设计方案比较···········································································5第3章详细设计·······················································································73.1自动售货机状态描述·········································································73.2设计思路及原理···············································································73.2.1模块描述与实现········································································73.2.2电路原理图··············································································93.3自动售货机状态描述········································································1134详细状态描述··················································································113.4.1初始状态················································································113.4.2选商品状态·············································································113.4.3投币状态················································································113.4.4找零状态················································································11第4章软件设计······················································································134.1分析与设计思路··············································································134.2框图·····························································································144.3程序总流程图·················································································154.4程序·····························································································15第5章结果与讨论···················································································22EDA设计基础实验课程论文IV5.1实验调试·······················································································225.1.1调试步骤························································错误!未定义书签。25.1.2实验现象················································································235.2结果与分析····················································································23结论········································································································24参考文献··································································································25附录········································································································26致谢········································································································27EDA设计基础实验课程论文1第1章绪论1.1概述随着电子技术的发展,现场可编程门阵列FPGA和复杂可编程逻辑器件CPLD的出现,使得电子系统的设计者利用与器件相应的电子CAD软件,在实验室里就可以设计自己的专用集成电路ASIC器件。这种可编程