contents.gifindex.gif

Blackjack Machine Description

This design is the combination of more than one basic logic design. Design specification, methods, and complete source files are provided here for all parts of the blackjack machine example, which contains the following logic designs:

webpack00090000.gif Multiplexer

webpack00090000.gif 5-bit adder

webpack00090000.gif Binary to BCD converter

webpack00090000.gif State machine

This example is a classic blackjack machine based on C.R. Clare`s design in Designing Logic systems Using State Machines (McGraw Hill, 1972). The blackjack machine plays the dealer`s hand, using typical dealer strategies to decide, after each round of play, whether to draw another card or to stand.

The blackjack machine consists of these functions:

Card Reader - Reads each card as it is drawn. (Neither the card reader nor the physical design is discussed here. Assume that the card reader provides a binary value representing the card read.)

Control Logic - Tells it how to play each hand (based on the total point value of the cards presently held).

Display Logic - Displays scores and states on the machine`s four LED displays.


Note: For this design, the two 7-segment displays have built-in 7-segment decoders.