140 likes | 254 Views
Hi Low. By Jai Henwood Florida Tech ECE 5572 Summer 2003 Dr. Veton Këpuska. Idea. Project: to implement a design on our FPGA’s and present it to the class. Idea: To make a game called Hi Low. Hi Low is a card game. You guess to see if the next card will be high or low.
E N D
Hi Low • By Jai Henwood • Florida Tech • ECE 5572 • Summer 2003 • Dr. Veton Këpuska
Idea • Project: to implement a design on our FPGA’s and present it to the class. • Idea: To make a game called Hi Low. Hi Low is a card game. You guess to see if the next card will be high or low. • You can turn this into a drinking game… But I don’t know anything about that.
The State Machine Resetstate WaitState Push button B0 Push button B1 CheckAnswerH CheckAnswerL right wrong right wrong Done TotalRight
State Machine • ResetState: HILO is displayed and next state is set to waitforinput • WaitForInput: waits for button B0 or B1 to be pushed. If B1 is push you guessed that the random number would be less so go to state checkanswerL.
State Machine • CheckAnswerL: checks your answer to see if its less. It then displays ‘HOHO’ and turns on the 4 green LEDs if you got it right. If you are right you go to TotalRight state. If you got it wrong go to Done state and ‘8888’ is displayed as well as the 8 red LEDs. • TotalRight: displays ‘HOHO’ if you got it right. Wait for push button BA to be pushed and go to Done.
State Machine • Done: wait for push button BB to be pushed and go back to ResetState. LEDs have different Values for reach state to help you follow the code Done to ResetState Display ‘HILO’ TotalRight to Done Display ‘HOHO’ Guess Lower Guess Higher
To be done • Make more games. • Display directions for the games in the LCD.