摘要
本课题是基于Verilog HDL语言的小型自动售货机。采用Verilog 。在此次设计中,主要采用有限状态机(FSM)的设计,在投币选货状态和找零状态在这两个状态间进行转移。从而实现货物的选择、货币运算、出货控制、余额显示以及找零等功能。该售货机系统能够识别两种硬币,两种纸币。有五种不同价格的商品可供选择,并且通过显示译码电路,可在LED显示器显示余额,同时具备找零、机器存有硬币不足LED亮起报警、缺货LED亮起报警等功能。现代的自动售货机有使用方便快捷,可以全天候24小时工作,占地少,成本低,维护简单等优点,有着广阔的前景。采用FPGA方式用Verilog HDL硬件描述语言,设计简易的自动售货机,其编程简单,开发周期短,硬件运行速度快,开发成本低,稳定性高等优点。
关键词:自动售货机; Verilog HDL; 有限状态机;Modelsim;
ABSTRACT
This topic design a simple vending machine is based on the FPGA chip. EP2C35 chip, and DE2 development board for the hardware platform, the use of Verilog HDL pile and simulation in the Quartus Ⅱ software platform, and through the DE2 development achieve the basic functions of a Simple vending by to download code to the chip. In this design,it used of finite state machine (FSM) design, choice of goods state, shipment status and give change coin state in the three inter-state transfer, in order to achieve the choice of goods, ary operations, the cargo control, features such as display and give change. The vending machine system to identify three kinds of coins, there are five kinds of goods at different prices to choose from, and by showing decoding circuit, in DE2 onboard LED display shows the balance, both functions give change. Modern vending machines are convenient, it can work 24 hours a day, covers an area of small, low cost, simple maintenance, there are broad prospects. Manner with the use of FPGA hardware description language Verilog HDL, design simple vending machine, the programming is simple, short development cycles, fast hardware, the development of low cost, high stability.
Key words: vending machines; Verilog HDL; Finite state machine; FPGA; DE2 development board;
目录
绪论..............................................................1
第一章系统方案设计...............................................3
人机交换界面设计..........................................3
系统方案设计..............................................4
系统方案确定
基于FPGA自动售货机 来自淘豆网m.daumloan.com转载请标明出处.