摘要目前市场上各式各样的自动售货机因为其便利性而受到广大消费者的青睐。本课题采用Quartus IIEDA开发平台,以FPGA为主控芯片,通过Verilog HDL硬件描述语言进行程序设计,并在Quartus II软件上进行编译与仿真,最终下载到FPGA实验箱中验证该系统的实用性。通过EDA设计方法中的状态机对自动售货机各模块按照顺序进行操作设计。各模块主要有分频模块、投币模块、显示模块和找零模块。自动售货机能够提供四种商品供顾客选择,并能接受三类钱币,出货阶段的找零余额在七段数码管上显示。当投币金额小于商品单价LED灯亮发出警告,并直接退出钱币。基于FPGA的设计,具有开发周期短、成本低廉、硬件运行速度快及稳定性高的优势。84507
本系统最终实现功能有:接受投币、商品选择、显示余额、送出商品、找出零钱。整个系统的开发体现了EDA技术开发数字系统的灵活性及实用性。
毕业论文关键词:EDA;FPGA; Quartus II;自动售货机
Abstract Currently on the market a wide range of vending machines are favored by the vast number of consumers because of its convenience。 This topic use Quartus II EDA development platform, using FPGA as its main control chip, by Verilog HDL hardware description language program design, and in the Quartus II software compile and simulation。 Finally the file is downloaded to FPGA experimental box verify the practicability of the system。 According to the EDA design method, the state machine is designed according to the order of each module of the vending machine。 The frequency piding module, coin module, display module and the dispenser module are the most important modules。 Vending machines can provide four commodities for customers to choose, and can accept three types of coins, the change in the balance of shipment stage on seven-segment LED display。 When the amount is less than coin commodity price LED warning lights, exit and withdraw coins。 The design bases on FPGA, with a short development cycle, low cost, fast hardware operating speed and high stability of the advantages。
This system ultimately function is: to accept coin, merchandise selection, display the balance, sending commodity to find change。 Development of the system reflects the flexibility and practicality of EDA technology development digital systems。
Keywords:EDA;FPGA;Quartus II;Vending Machine
目 录
第一章 绪论 1
1。1概述 1
1。2 发展现状 2
1。2。1 自动售货机的发展现状 2
1。2。2 EDA发展及应用趋势 3
1。3 课题设计任务 4
第二章 总体方案设计 5
2。1 总体框图设计 5
2。2 方案选择 5
2。3 EDA技术 7
2。4 可编程逻辑器件FPGA 7
2。5 Verilog HDL硬件描述语言 8
2。6 Quartus II简介 9
第三章 硬件设计 11
3。1 硬件设计结构图 11
3。2 芯片的选择 11
3。3 按键输入电路的设计 12
3。4 显示模块的设计 13
3。5 时钟电路的设计 13
第四章 软件设计 基于FPGA的自动售货机设计+源程序:http://www.youerw.com/zidonghua/lunwen_100322.html