摘要
本文采用VHDL硬件描述语言作为描述手段,设计了自动售货机控制模块,实现了硬件设计软件化。在QuartusⅡ软件平台上进行编译和仿真,最后将生成的目标文件下载到FPGA芯片,并进行了硬件测试和验证。最终完成的自动售货机控制模块具有投币处理、商品选择、确认取消、退币闪烁、出货及计算存货等主要功能,整个模块的开发体现了在QuartusⅡ软件平台上用VHDL设计数字电路的实用性。
The control module of vending machine was designed based VHDL in this paper. The hardware design was finished by HDL. The complication and simulation were completed in Quartus II. The configuration file was downloaded to FPGA. Finally hardware testing was carried out in special experiment plat. The control module of vending machine included five parts: drop processing, commodity choosing, confirm and cancel, coin returning, shipment and computing inventory. The development of the whole module showed that it was practical to design digital circuit in the Quartus II with VHDL