18-01-2012, 11:54 AM
Digital Design Laboratory
[attachment=16209]
Problem statement and specifications
Your task is to design a digital circuit that emulates a dice game for two players. Each player has two dice that s/he throws simultaneously. The players roll the dice in sequence, one player after the other, until one of the players win. The game is played according to the following rules.
Pre-lab assignments
As with any complex digital system, the electronic dice game can be designed by using a modular and hierarchical design strategy. A common way to partition a system is into a datapath and a control unit. The datapath performs operations on the data and consists of registers (for storage, shift, counters), and combinational circuits (add, subtract, etc). The control unit determines the type of operation and the right sequence in which the datapath executes the operations. A schematic block diagram of such a partitioning is shown in Fig. 1 below
Control Unit
The Control Unit initiates the game after it receives a signal from one of the Roll Dice push buttons. It goes through a sequence of states, depending on the status signals (TestA and TestB) from the Test Logic, which provides information about the value of the dice and the contents of the point registers. Based on the signals it generates, at the proper time, the control signals ST (Start counting or rolling the dice), LD1 (Load Register1), LD2 (Load Register2), and PL (player) determine the operation to be performed by the datapath.