2 Star 2 Fork 0

该学了 / FPGA-MIPS-based-CPU-APP-Flappy-Bird

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

FPGA MIPS-based CPU APP Flappy Bird

Project for computer organization and design course, implementing a simple popular game flappy bird in FPGA. It takes me one week to learn about bus, VRAM and write program and I've learned a lot. start512x480


System Organization

The system is logically divided into two parts: hardware (three base parts of computer: IO, CPU, memory) and software (assemble game flappy bird based on MIPS).

Hardware

The hardware environment is built step by step during 13 exps. However, in order to meet interaction needs of this game, some extra modules and functions have been added.

Simply speaking, there are five major modules: input, output, control, data path and memory.

  • Input: enable to input data through keyboard, buttons, switches Keyboard is based on PS/2.

  • Output: enable to output info into 7-segs, monitor, LEDs

    Monitor is 640x480.

  • Control & Data Path: decode and implement instructions

    Instructions have been implemented by now are listed below: add, sub, or, xor, nor, and, slt, addi, ori, xori, nori, lw, sw, beq, bne, slti, j, jal, jr, jalr, lui, sll

  • Memory: store assemble program, pictures, or be used as VRAM.

Software

Based on supported instructions above, an assemble program is written to run flappy bird. 1 25


Build project

You can directly use project file in folder ISEproject or build new project with folder modules and coe.

In modules are all hardware modules. Most of them are in Verilog HDL and you can modify them free, while some are hard cores involved in IO function.

In coe are initlization file for RAM. Some pictures can be find at folder picture and original assemble program is flappybird_final.asm. If you already have built a hardware project, you can write you own application like tank war or whatever else by easily changing coes.


Performace

Only support single player. Player can manipulate bird by switches or keyboard. Score is displayed in 7-segs. 41 42

There is a splash screen problem when playing since I write all four pillars and then erase pixels to process openings. I haven't change the algorithm because otherwise it will be much more complex and believe current process method is enough.

空文件

简介

Project for computer organization and design course, implementing a simple popular game flappy bird in FPGA. 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
VHDL
1
https://gitee.com/qj893183107/FPGA-MIPS-based-CPU-APP-Flappy-Bird.git
git@gitee.com:qj893183107/FPGA-MIPS-based-CPU-APP-Flappy-Bird.git
qj893183107
FPGA-MIPS-based-CPU-APP-Flappy-Bird
FPGA-MIPS-based-CPU-APP-Flappy-Bird
master

搜索帮助

14c37bed 8189591 565d56ea 8189591