contents.gifindex.gif

Blackjack Machine Implementation

The blackjack machine is implemented in four modules:

The blackjack Top Level design, (BJTOPX) which ties together the lower level modules into one design.

A multiplexer-adder-comparator, (MUXADD) which adds the value of the newly drawn card to the existing hand and indicates an ace to the state machine.

A binary-coded-decimal (BCD) converter, (BINBCD) which takes in the 5-bit binary score and converts it to two digits of BCD for the digital display.

The blackjack controller, (BJACK) which is a state machine that contains the game logic. This logic includes instructions that determine when to add a card value, when to count an ace as 1, and when to count an ace as 11.