河海大学物联网工程学院Verilog HDL 项目设计报告题目 拔 河 游 戏 机 专业电子科学与技术 学号1562910123、1562910125 授课班号 6292758 学生 徐子豪、诗欣 指导老师 华迪、齐本胜 摘 要 和 关 键 字为了掌握数字系统的设计方法,掌握硬件描述语言——Verilog HDL,掌握模块化设计方法,掌握开发软件的使用方法。 选择 基于 FPGA 开发板设计的拔河游戏机,使用两个按键进行竞赛,利用按键按下的快慢作为模拟的双方选手拔河过程,led 灯的变化决定绳子的位置,led 灯到了一边以后竞赛终止,整个过程的难点在于,需要过滤信号,使按键产生的信号稳定,所以程序中需要有按键消抖模块,同时需标识符来控制竞赛的开始与结束。关键词 :verilog 拔河竞赛 消抖模块 标识符 In order to master the design method of digital system, we must master the hardware description language -- Verilog HDL, grasp the modular design method and master the way of developing software. ChoiceTug of war game FPGA development board based on the design, the use of two button game, using key press speed as both players tug of war of simulation, change led lamp decide the position of the rope, LED lights to the side after the end game, the difficulty lies in the whole process, need to filter the signal, the stable signal generated by the keys so, the procedure requires a key debounce module, also need to control the game's identifier and end start.Key words: Verilog tug shake-off module identifier. 一、系统设计1 . 实验要求设计拔河游戏电路,用按键与 LED 表示输入与输出。 (1)初始时,16 个 LED 中间的两个点亮,然后游戏双方不停按动按键,点亮的两个 LED 向按动按键慢的一方移动;(2)每按动一下按键,LED 向对方移动一格;(3)只要 LED 移动到头,游戏结束;(4)工作时钟 100Hz 即可;(5)完成全部流程:设计规文档、模块设计、代码输入、功能仿真、约束与综合、布局布线、时序仿真、下载验证等。2 . 方案对比 脉冲信号方案: 在选定一定的时间周期,检测按键 A 与按键 B 的产生的脉冲个数,进行比较,若 A...