Loading... Please wait...
Get Free Shipping On Orders Over $99!

Gadget Factory Blog

Snake Game Created With The Minimum FPGA Resources!

Posted by dhia.khaladi on

Hello FPGA and Arcade games fans! A couple of weeks ago we posted about how to play the Snake game on your FPGA in fore easy steps, our community member mkarlsson was not totally satisfied with the amount of FPGA resources the Verilog code uses and decided to rewrite the game to make it use less resources and now it even fits an LX9  based board like Papilio Pro or Duo with a VGA wing:

The GadgetFactory blog page has this story about the snake game written in Verilog so I decided to take a look at it.  Sadly to say it’s pretty much a textbook example of how not to write HDL code.  However, this idea seemed pretty cool so I decided to do an almost complete rewrite of the code (basically the only thing left from the original code is the VGA controller) while still keeping all the functionality of the original code.  The new version uses about a 1/4 of the FPGA resources compared to the original code when compiled for Spartan6 and it now fits an LX9.

Please visit the original forum thread here to share your thoughts about this project.

Source code is available on github.

By mkarlsson.

How To Make Simon Says Game With Your FPGA

Hi again FPGA people! Today I have another game for you to implement using your FPGA, Simon Says for 2 players. I know it´s a pretty old game but I promise you that it´s a very interesting project. In this project you will have to make use of your hand skills both for coding and for [...]

Read more


Protect Your Home With a FPGA-based Alarm System

Welcome back again FPGA addicts! Today we have a very interesting and useful project for you: Build your own alarm system with your FPGA. This work was carried out by a group of students and it could perfectly serve as a baseline for any alarm system. The project is developed in 6 easy steps. All you need [...]

Read more


Quick Guide: 4 Easy Steps To Play Snake on Your FPGA

Hello FPGA lovers. I am sure you are going to love today´s post: How to implement Snake Game on your FPGA. Maybe some of you are too young to remember this everlasting game that has been popular generation after generation on a wide variety of formats. And as it couldn´t be less, Snake Game deserves [...]

Read more



Back to Top