I am currently working on almost similar project right now, although I am working on Xilinx board, I know how to work with FPGa's, so you wont have to worry about your code being run on DE2 board. I have done lots of projects on DE 2 board during my Post Graduation.
I have written the code myself, and will explain the whole project to you.