Snake game


Recommended Posts

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. 

The complete project can be found at and should be easy to adapt to any LX9 based board like Papilio Pro or Duo with a VGA wing.





Link to comment
Share on other sites

Here is a version for Papilio_Pro with LogicStart Megawing. 

The joystick controls the snake movement and switch 7 (the rightmost switch) is the run/stop input.
Complete project (including bit file in the ise directory) can be downloaded here:

(Unfortunately my upload allowance is maxed out so I can't post the project here)


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.