233 Final Project: Dance Dance Revolution

by JustinY36 in Circuits > Microcontrollers

1434 Views, 2 Favorites, 0 Comments

233 Final Project: Dance Dance Revolution

Screen Shot 2019-03-19 at 12.52.51 AM.png
Screen Shot 2019-03-19 at 12.53.00 AM.png

Amy La

Catherine Wei

Kayla Davis

Justin Youn

CPE 233 Callenes

Dance Dance Revolution is a popular game from arcades worldwide and was a big part in many of our childhoods. We decided to try to implement our own version of Dance Dance Revolution using the OTTER(Our two Thirty Three Engineered RISC) architecture made with SystemVerilog.

Materials Needed

basys3image.jpg
VGAImage.jpg

The Following Materials are needed to make this Dance Dance Revolution Game:

  • Xilinx Vivado Design Suite Software
  • Digilent Basys3 FPGA Board
  • USB to Micro USB Cable
  • VGA to VGA Cable
  • Monitor with VGA input

Implement OTTER

Screen Shot 2019-03-19 at 12.55.21 AM.png
Screen Shot 2019-03-19 at 12.56.18 AM.png
  • In your respective CPE 233 course create a completed OTTER(Our two Thirty Three Engineered RISC) ISA(Instruction Set Architecture).
  • The OTTER architecture will implement the RISC-V ISA that will be the primary focus of our project.

Setting Up the VGA

Screen Shot 2019-03-19 at 2.17.38 AM.png

  • In order to connect the VGA to the OTTER architecture, use the attached zip file which contains the VGA driver module.
  • Also attached is the VGA driver module document which explains how the VGA module works.

Using the Risc-V Assembly Code

  • Attached is the text file that contains the starter code for outputting to the VGA using Memory-Mapped I/O.
  • This connects the Software of the OTTER to the VGA

Downloads

Implementing Our Own Dance Dance Revolution Via Starter Code

DDR233.png
  • Attached below is the full file of our assembly code for the Dance Dance Revolution Game.
  • This generates 4 types of arrows: left, down, up, and right.
  • The arrows at the top are the stationary arrows that are the reference arrows.
  • The moving arrows spawn at the bottom.

Playing the Game!

IMG_0009.jpg
keyboardimage233.png
  • How To play the game:
    • Wait for the moving arrows to line up with the stationery arrows and press the arrow key that corresponds with the arrow's orientation.
    • The Points are calculated based on distance from the Stationery Arrow.
      • The further away the moving arrow is, the less points received.
    • The goal is to get as many points as possible.
    • Compete with your friends to see who can get the most points!
    • Included below is a link to the furthest we got our game to operate.

Issues

issuesimage233.jpg
  • While developing our project we came across a lot of bugs, particularly with the VGA module. It took some time to get the VGA module itself to be fully functional.
  • Another issue was when attempting to randomly generate arrows, only the left arrow would be generated and none of the other three types.

Improvements

thoughtbubleimage.jpg

Due to time, we weren't able to fully accomplish everything that we wanted to do with our game.

Some things we would have liked to add are:

  • Fully generate random moving arrows using the random function.
  • Utilize the keyboard module to enable user input to play the game.
  • Output the score of the game onto the Seven Segment Display.
  • Generate songs that correspond to the moving arrows.