Simple Blackjack Game on FPGA

Thread Starter

cfendley

Joined Nov 16, 2015
1
Hello,

I am currently working on a project to implement a simplified blackjack game in verilog onto an FPGA, In this simplified version, there are only 4 different cards(Fives, Sixes, Jacks, and Aces) within the deck. Jacks count as 10, and Aces can either count as low(1) or high (11).

- I want to use 4 switches as the inputs( one for each card), and a push button reset.
- Display an "H" for hit on a 7-seg display if the value of your cards are 16 or below, or display an "S" for stay if the value is greater than 16.

I'm having trouble trying to come up with a state diagram for this.
I'm not sure if I should have a state for each card that is drawn.
Ex.
State 1 = 0 cards
State 2 = 1 cards
State 3 = 2 cards
State 4 = 3 cards

or if I should make each possible card combination a state.
Ex.
State 1 = Ace State 2 = Jack
State 3 = five State 4 = six
State 5 = Ace, Five State 6 = Ace, Jack
... and so on.

Any help on this would be greatly appreciated.
 
Top