1、 存档编号 基于 FPGA 的乒乓球游戏 机设计 系 别: 数信系 届 别: 专 业: 电子信息工程 学 号: 姓 名: 指导老师: xx 完成日期: 2013、5、6 目目 录录 内容摘要 . 1 关键词 . 1 Abstract. 1 Key words 1 1 引言 2 2 开发工具简介 2 2.1 硬件描述语言VHDL 概述 3 2.1.1VHDL 语言的特点 3 2.1.2 基于 VHDL 的自顶向下设计 . 4 2.2 Quartus II 开发软件概述 . 5 2.3 本章小结 . 6 3 基于 FPGA 的乒乓球游戏机设计与实现 6 3.1 总体设计 6 3.2 电路总原理图
2、7 3.3 时钟分频设计 9 3.4 状态机设计 9 3.4.1 状态机的 7 种状态及状态转移 9 3.4.2 状态机/球台控制程序 10 3.5 记分牌显示电路设计 . 13 3.6 按键消抖、乒乓球路径显示电路设计 . 14 3.7 顶层实体的描述 . 15 3.8 本章小结 . 16 4 系统的调试、仿真、下载、测试 . 16 4.1 调试 FPGA . 16 4.2 系统的编译、仿真 . 16 4.2.1 系统编译 . 16 4.2.2 系统仿真 . 18 4.3 系统的适配、编程下载 . 19 4.4 本章小结 . 21 5 结论 . 21 参考文献 22 致谢 23 附件 1:硬
3、件实物图 . 24 附件 2:程序清单 . 25 1 内容摘要:内容摘要:随着电子设计自动化技术的不断发展和应用领域的扩大与深 入,EDA 技术在电子信息、通信、自动控制及计算机应用领域的重要性日益 突出。本文设计了基于 FPGA 的乒乓球游戏机设计。用 VHDL 语言编程, VHDL 是甚高速集成电路硬件描述语言。目前,VHDL 已成为许多设计自动 化工具普遍采用的标准化硬件描述语言。VHDL 语言功能性强,覆盖面广, 灵活性高,具有很好的实用性。本文详细的简述了乒乓球游戏机的工作原理, 此乒乓球游戏机由状态机、记分器、译码显示器与按键去抖等部分所组成。 通过对各部分编写 VHDL 程序,在
4、 Quartus软件上进行编译、仿真,最终在 Altera公司的EP开发板上成功实现下载和调试。 经过仿真和验证的结果表明, 实现乒乓游戏机的基本功能,结果达到了设计的要求。 关键词:关键词:FPGA VHDL 乒乓游戏机 状态机 Abstract:As electronic design automation technology continues to develop and expand the field of application, EDA technology in electronic information, communication, increasing the im
5、portance of the field of automatic control and computer applications. This design of the table tennis game design based on FPGA . Programming in VHDL language, VHDL is the very high speed integrated circuit hardware description language . At present, the VHDL design automation tool widely used by ma
6、ny standardized hardware description language. VHDL language feature is strong, wide coverage, high flexibility, good practicality. This article gave a detailed summary of table tennis video game works, the table tennis game by the state machine, a device, decoding machine parts such as monitor and press the key to shaking up. The sections written by VHDL program, compiled in the Quartus II software, simulation, final EP o