用Verilog实现的贪吃蛇游戏(基于FPGA开发板)

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

Embedded LSI Architecture
1. INTRODUCTION
1.1 Tools and Environment
Project name: Greedy Snake Game Evaluation board: Spartan-3 (XC35200 / FT256AFQ0413) Development environment: Xilinx ISE Language: Verilog HDL
4.2.1 Device Utilization Summary .............................................................................14 4.2.2 HDL Synthesis Report......................................................................................14 4.2.3 Advanced HDL Synthesis Report.....................................................................15 4.2.4 Timing Summary ..............................................................................................16
How did the game be designed will be introduced in detail in this report, including the modules’ organization and implementation. Analyses of the program such as timing and area are also concluded.
3.2.1 Store of Snake....................................................................................................5 3.2.2 Movement of snake............................................................................................5 3.2.3 Changing direction .............................................................................................6 3.2.4 Judgment of death .............................................................................................6 3.2.5 Display................................................................................................................6 3.3 Snake_eating_apple.....................................................................................................7 3.3.1 Generating apple................................................................................................7 3.3.2 Eating apple .......................................................................................................7 3.4 VGA_control .................................................................................................................7 3.5 Key................................................................................................................................9 3.6 On-Board Display .........................................................................................................9 3.6.1 7SEG LED (module Seg_display) .....................................................................9 3.6.2 LED ..................................................................................................................10
3. MODULES ..................................................................................................... 4
3.1 Game_ctrl_unit .............................................................................................................4 3.2 Snake............................................................................................................................5
1.2 Introduction of the Game
The Greedy Snake is a traditional game, and my program implemented it almost fully. There’s a moving snake in the game, whose moving direction can be controlled by players using up/down/left/right key. There’s also a random-occurred apple on the screen. When the head of the snake touches the apple, the snake grows a little longer and a new apple appears. If the snake hits wall or its body, it dies.
2. DESIGN OVERVIEW ..................................................................................... 3
2.1 Top View .......................................................................................................................3 2.2 Control Unit and Data Path ..........................................................................................3
1.1 Tools and Environment.................................................................................................1 1.2 Introduction of the Game..............................................................................................1
批注本地保存成功开通会员云端永久保存去开通
Embedded LSI Architecture
Embedded LSI Architecture FPGA Application Report Version 1.0
By: HAO Cong
2010-11
Document Language: English
4. ANALYZE REPORT..................................................................................... 10
4.1 Synthesis Schematics ................................................................................................10 4.2 Resources ..................................................................................................................14
Embedded LSI Architecture
Table of Contents
1. INTRODUCTION............................................................................................ 1
5. IMPROVEMENT........................................................................................... 16
6. SUMMARY ................................................................................................... 17
Key Words
Verilog HDL FPAG Application Spartan-3
Abstract
Based on Spartan-3 evaluation board, I designed a FPGA Application named Greedy Snake Game, which is implemented by Verilog Hardware Description Language. The Game has both input from keys and output to screen. Users can play the game freely and easily.
Revision History
Date 2010-11-21
Veபைடு நூலகம்sion
Description
<1.0>
Finish the 1st edition of FPGA application report
Author HAO Cong
Final date <x.x>
<details>
<name>
Embedded LSI Architecture
相关文档
最新文档