1、 i 目录目录 1 引言 . 1 2 VHDL 简介 . 2 2.1 VHDL 的特点及优点 2 2.2 设计流图 3 3 模块设计 . 6 3.1 七段数码管显示译码器 7 3.2 按键去抖电路 9 3.3 状态机设计 .11 3.3.1 状态机的 6 种状态及状态转移 11 3.3.2 状态机/球台控制程序 12 3.4 记分器设计 17 4 系统硬件测试 . 20 4.1 GW48 系统的主要性能和特点 20 4.2 FPGA 目标芯片管脚图. 20 4.3 系统的编译、综合、适配 22 4.4 系统的有关仿真 24 4.5 系统的编程配置 26 5 结论 . 28 参考文献 29 致谢
2、 30 ii 摘 要 VHDL 是甚高速集成电路硬件描述语言。目前,VHDL 已成为许多设计自动化工具 普遍采用的标准化硬件描述语言。VHDL 语言功能性强,覆盖面广,灵活性高,具有很 好的实用性。本文设计一个基于 VHDL 的乒乓游戏机,乒乓游戏机由状态机、记分器、 译码显示器与按键去抖等部分所组成。通过对各部分编写 VHDL 程序,然后进行编译、 仿真、 逻辑综合、 逻辑适配, 最后进行编程下载, 并且通过 GW48 型 EDA 实验箱的验证, 实现乒乓游戏机的基本功能。 关键词关键词:VHDL;GW48;乒乓游戏机 iii Abstract VHDL is high speed IC h
3、ardware describe language. VHDL already becomes the language of normalizing hardware describe that a lot of design automation implement adopts commonly at present. The VHDL language function is strong. The face covering is broad, flexibility high and have the very good pragmatism. One main body of t
4、he book is designed waits for what part group is accomplished owing to that VHDL table tennis game machine, table tennis game machine go to tremble from state machine, marker, decoding display and button. By compiling and composing VHDL procedure to every part, then compiling, simulate, logic synthesis, logic fitting. Carry out programming time be loaded with finally. Then verification and by GW48 type EDA experiment box, realize table tennis game machines fundamental function. Key words: VHDL;