aditya-167 / SuperPong-FPGA

Course Project (ECE 532) - Classiscal Pong Game on Xillinx FPGA

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SuperPong-FPGA

Description

Course Project (ECE 532) - Classiscal Pong Game on Xillinx FPGA that uses a camera to control the position of the players' racquets.

Authors

Aditya Srichandan Haoran Wei Harsimrat Singh Wadhawan Yashraj Singh Dhillon

Videos

Click Here

Repository Overview

Brief Overview

Software stored in the sw directory. Hardware stored in the hw directory. Image Processing project stored in the img directory.

Structure

assets - Static images.

game_source_pc - SDL based Pong game source for PC.

hw - HDMI system hardware project.

img - Image processing system hardware project.

repo - Directory used by Vivado for caching and databasing.

src - Main HDMI system and game source code.

.gitignore - Contains various ignored files to stop this repository from being populated with large synthesized caches.

Requirements

1. Vivado 2016.4
2. Xilinx SDK 2016.4

Optional Requirements

SDL Game Simulation

  1. MinGW 7.3.0 (Minimalist GNU for Windows 7.3.0 i686-posix-dwarf-rev0) Click Here to Download

How to build the SDL game

  1. Clone this repository to a suitable location.
  2. CD into the game_source_pc directory of this repository.
  3. Open a terminal in the game_source_pc directory.
  4. In the terminal, execute the following command: gcc -Isrc/include -Lsrc/lib -o main main.c -lmingw32 -lSDL2main -lSDL2
  5. An application called main.exe will be generated which can be executed to play the game.

How to setup the Vivado project (Hardware)

Open the hw/HDMI.xpr file in Vivado 2016.4 for modifying the hardware project.

How to setup the Xilinx SDK project (Software)

  1. Clone this repository to a suitable location on your PC.
  2. Open the Xilinx SDK.
  3. Create a new workspace at a suitable location on your PC.
  4. Click on File > Import > Existing Projects into Workspace. Fig. 1
  5. Enter the location of the sw directory in the root directory textbox. Fig. 1
  6. Click Finish.

Running the project on the board.

  1. Click on Xilinx Tools > Program FPGA.
  2. Choose hdmi_wrapper_hw_platform_0 for the hardware platform. Fig. 1
  3. Click Program.
  4. Run the program by creating a debug configuraation by clicking on the green play button.
  5. Connect to the Nexys Video board using a terminal.
  6. Enter '1' into the terminal to launch the game.

About

Course Project (ECE 532) - Classiscal Pong Game on Xillinx FPGA


Languages

Language:VHDL 75.8%Language:Verilog 14.5%Language:C 8.2%Language:V 0.4%Language:C++ 0.4%Language:SystemVerilog 0.3%Language:Tcl 0.3%Language:HTML 0.1%Language:Assembly 0.0%Language:JavaScript 0.0%Language:Shell 0.0%Language:C# 0.0%Language:Makefile 0.0%Language:Stata 0.0%Language:Objective-C 0.0%Language:Batchfile 0.0%Language:CartoCSS 0.0%Language:Pascal 0.0%Language:1C Enterprise 0.0%