Introduction: Pong Game Using Fpga Kit
hello every one. here i shared the project "pong game using fpga kit". fpga is field programmable gate array. it is a technology that we can design any digital device by programming. that means the fpga kit act as any digital device that based on our program. the fpga has separate programming languages verilog and vhdl. These two are hardware description language used for only to program FPGA. In this project i used altera cyclone iii fpga kit. here i used vhdl language.so here the kit act as mini cpu to run the game it self. the pong game achieved using vhdl language. Let us see how to build this project.
Step 1: Watch the Video
Step 2: Coding and Software:
For program the fpga kit we need software quartus II. To download quartus ii software visit the link bellow:
To download coding for this project coding file click the link bellow:
steps to program the fpga kit:
- Download the quartus ii software and install it in your computer.
- Then download the coding for this project. it is zip folder so extract it.
Step 3: Run Quartus Ii
- Then click the extracted folder right click the game.qpf and select properties.
- change the file is openable by quartus ii exe file.
Step 4: View the Prject
- when you open the project file it look like above image.
Step 5: Compile Project
- After opening the project first thing we have to do is compile it. so click on the violet triangle shown in the image.
- And the compilation take few minutes.
Note: The project file you downloaded for this project is only work with DE0 cyclone iii kit alone. if you want to use this code with other altera company kit you need to do following things.
Step 6: Pin Configuration
If you use cyclone iii kit means no problem
- click assignment -> pins.
- a new window will be opened as shown in the above image. then click processing - > enable live IO pins.Then close the pin planner window.
- then follow the step "programmer" skip the next step.
If you use want to use other altera kits like DE2 board , DE1 board,etc. then follow the next step.
Step 7: Change the Device and Pin Configuration:
If you use other devices then click project - > add/remove Files in project.
- Then a new window will be open "setting".
- After that click the "device" in left category panel.
- then a option will be show like above image.
- then change the device setting based on your fpga kit. like family,package,pin count,speed grade.
- then click ok.
After changing device you need to change the pin assignment
- click assignment -> pins.
- a new window will be opened as shown in the name of "pin planner".
- along with your kit you got an user manual pdf file . open it and search the input and output pins name used in the project like vga pins , push button pins, silde switches.
for button_l and button_r select push buttons
for reset and start select slide switches.
for other outputs select vga outputs.
Note: after programming the kit make the reset slide switch as high to working of project . if the reset switch is low then it will continuously resetting we can't see the output.
- then type the names in appropriate io pin in the pin planner window.
- then click processing - > enable live IO pins.
- then close the pin planner window.
Step 8: Programmer
connect the kit to computer.turn on the kit.
Then click the tools -> programmer.
a new window will be open as shown in the above image.
for program the kit click the start button in the programmer window.
Step 9: Output
connect the kit to monitor you can see that game showing in the monitor play it using push buttons in the fpga kit that you assigned previously.
Thank you for watching