Skip to content

Computer Architecture Project for deploying a simple Number Guessing Game using Verilog on a FPGA Board

License

Notifications You must be signed in to change notification settings

asarraf/Guessing-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Guessing Game

NAME : Ankit Sarraf
PROJECT 2 (CSE 590) : Guessing Game
PROGRAMMNING LANGUAGE : Verilog
DESCRIPTION : Number Guessing Game developed using Verilog
SCHOOL : State University of New York at Buffalo (SUNY Buffalo)

Test Flow:

  1. Switch on the FPGA Board
  2. Install the program on the Board
  3. 7 Segments displays = "PL 1"
  4. Select Slider Switches 0-3 to set corresponding Anodes on 7 Segments
  • Button 0 => 1
  • Button 1 => 2
  • Button 2 => 4
  • Button 3 => 8
  1. Set Seven Segment to "8421"
  2. Push the Slider Switch 4 = 1
  3. "PL 2" displayed on 7 Segment
  4. Player 2's turn
  5. Set 7 Segment to "8420"
  6. Put Slider Switch 6 = 1 to record the guess attempt number
  7. Put slider switch 6 = 0
  8. Put Slider switch 5 = 1 to compare with the player 1 input
  9. It will show the " 2LO" on the 7 Segment display
  10. Put the Slider Switch 5 = 0
  11. Change the Slider 0-3 and Button 0-3 according to new input
  12. Set the Slider Switch to "8422"
  13. Put Slider Switch 6 = 1 to record the guess attempt number
  14. Put slider switch 6 = 0
  15. Put Slider switch 5 = 1 to compare with the player 1 input
  16. It will show the " 2HI" on the 7 Segment display
  17. Put the Slider Switch 5 = 0
  18. Change the Slider 0-3 and Button 0-3 according to new input
  19. Make the new input to "8421" (Correct input)
  20. Make the slider Switch 6 = 1 -> Increments the attempt number
  21. Put slider switch 6 = 0
  22. Put Slider switch 5 = 1 to compare with the player 1 input
  23. Leds Blink. Seven segments displays " 3" (Total number of Inputs)
  24. Now a new game can be started by changing the (Only when the Player 1 finishes the first game)
  • slider switch 5 = 0
  • slider switch 4 = 0
    (Required to be done in order)

NOTE: Push Buttons might be required to be pressed mulltiple times to set the seven segment to particular value

About

Computer Architecture Project for deploying a simple Number Guessing Game using Verilog on a FPGA Board

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published