Guest User

Untitled

a guest
Apr 13th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 1.  Introduction:
  2.     The purpose of this project was to use our knowledge of hardware components, and of the programming language Verilog to create something creative in hardware. The motivation comes from the fact that at the end of the course we are required to create something from scratch to show what we have learned about hardware throughout the progression of the course.
  3.     Our project was to create a simple game in which a character on the screen dodges projectiles coming towards it. The user of the game would use the keys on the DE2 educational keyboard in order to move the character in three different positions on the screen. These positions are the up position, the middle position, and the down position. The character on the screen will be in the middle position by default. Therefore, if the user let go of all the keys, or the game was reset, the character would be in the middle of the screen.  The projectiles are thrown at the character from the other end of the screen, and are thrown randomly at the top, middle, or bottom positions. If the character gets hit by the projectile he loses. If not he continues to play, and his score increases every time he dodges a projectile.
  4. 2.  We had an FSM which controlled the movement of the character. The FSM had three states. One for the top position, one for the middle position, and one for the bottom position. The middle position state was the state the character was set to by default (when the game was reset). The state for the top position would be triggered if the user pressed the key 0 on the DE2 board. Similarly, if the user pressed the key1 on the DE2 board, the state for the bottom position would be triggered. Based on these states, the drawing part of our code would draw the player in the appropriate position.
  5. 3.  For the most part our project was successful in that we ended up creating a fully functional movement system. We were also able to get the player moving on the screen as we wanted (up, middle, and down). Furthermore, we physically displayed the background and the character on the screen using the VGA display.
  6. The parts we were unsuccessful at was getting projectiles on the screen, and getting them to move and hit the character on the screen. We speculate the projectile did not work because it was hard to get the projectile to appear in a random position on the screen each time (either top, middle, or bottom).
  7.   4.
  8.     If we had to do it all over again we would have tried to understand the VGA display from day one. This is because a lot of our trouble came directly from the fact that we did not understand how to use the VGA display despite looking at the tutorials. Since we were confused about how to even display stuff on the screen,  we spent a huge chunk of our time just trying to figure it out.  Therefore, if we could do it all over again, we would have needed to contact the professor, or needed to meet with the TA in order to get the VGA display working right away before we began anything else.
Add Comment
Please, Sign In to add comment