For this project, you will need to use Quartus Prime to program your FPGA board. You will be programming a game that allows you to guess the number between 0 and 99.
Project Requirements:
1. Include a finite state machine.
2. Game rules:
a. User gets Z tries to guess the number between 0 and 99. (Recommend: Z between 5-8)
b. To make a guess the user will:
i. Use the switches to select the most significant digit. For example SW[0] indicates 0X. SW[1] would indicate 1X, and SW[2] would indicate 2X.
ii. KEY1 should be used to increment the least significant digit (X) from 0 to 9 in a looping fashion.
iii. KEY0 should be used to make the number selection.
c. After each guess, the 7 seg displays must give a clue whether the guess was higher, lower, or correct.
i. Suggested words:
1. Big
2. Tiny
3. Yay (for win)
ii. Note: may need to use a combination of upper and lower case to get the best readability on the 7 seg displays.
d. After a little time, the 7 seg display should indicate how many guesses are left and wait for the user to guess again.
3. When the user is guessing, the number should be updating as keys are pressed or different switches are selected.
4. An error message should be used if multiple switches are selected to indicate an invalid guess. The message should remain until the user can make a valid selection.
5. To make the game fun, the LEDs should scroll when the user wins.