Course Project (ECE 532) - Classiscal Pong Game on Xillinx FPGA that uses a camera to control the position of the players' racquets.
Aditya Srichandan Haoran Wei Harsimrat Singh Wadhawan Yashraj Singh Dhillon
Software stored in the sw directory. Hardware stored in the hw directory. Image Processing project stored in the img directory.
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.
1. Vivado 2016.4
2. Xilinx SDK 2016.4
- MinGW 7.3.0 (Minimalist GNU for Windows 7.3.0 i686-posix-dwarf-rev0) Click Here to Download
- Clone this repository to a suitable location.
- CD into the game_source_pc directory of this repository.
- Open a terminal in the game_source_pc directory.
- In the terminal, execute the following command:
gcc -Isrc/include -Lsrc/lib -o main main.c -lmingw32 -lSDL2main -lSDL2
- An application called main.exe will be generated which can be executed to play the game.
Open the hw/HDMI.xpr file in Vivado 2016.4 for modifying the hardware project.
- Clone this repository to a suitable location on your PC.
- Open the Xilinx SDK.
- Create a new workspace at a suitable location on your PC.
- Click on File > Import > Existing Projects into Workspace.
- Enter the location of the sw directory in the root directory textbox.
- Click Finish.
- Click on Xilinx Tools > Program FPGA.
- Choose hdmi_wrapper_hw_platform_0 for the hardware platform.
- Click Program.
- Run the program by creating a debug configuraation by clicking on the green play button.
- Connect to the Nexys Video board using a terminal.
- Enter '1' into the terminal to launch the game.