mkarlsson Posted April 12, 2016 Report Share Posted April 12, 2016 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 https://github.com/Saanlima/Pepino/tree/master/Projects/Snake and should be easy to adapt to any LX9 based board like Papilio Pro or Duo with a VGA wing. Magnus Quote Link to comment Share on other sites More sharing options...
Jack Gassett Posted April 18, 2016 Report Share Posted April 18, 2016 Awesome! Thank you Magnus, I'll get this posted to the blog. Jack. Quote Link to comment Share on other sites More sharing options...
mkarlsson Posted April 25, 2016 Author Report Share Posted April 25, 2016 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: http://www.saanlima.com/download/Papilio_Pro/snake_papilio_pro.zip (Unfortunately my upload allowance is maxed out so I can't post the project here) Magnus Quote Link to comment Share on other sites More sharing options...
Jack Gassett Posted April 26, 2016 Report Share Posted April 26, 2016 Thank you! I'm downloading it now. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.