---------------------------------
restart
vector datain s1 s0 lpad rpad score restart
vector dataout sl ba bb bc bd be bf bg sr
| play using fastest speed
clock clk 0 1 0 1 0 1 0 1
assign datain 110000
watch sl ba bb bc bd be bf bg sr
| reset every thing
l gr
sim 1000
h gr
|might be needed
h restart
cycle
l restart
You should run the above to intialize your design and then:
1) check for normal play (i.e. check for ball going from left to
right and back)
2) check for left player making two errors (swings too late and
swings too early). Check the score now. It should be 2-0 for
the right player.
3) check for right player making two errors. The score should be
2-2.
4) make either of the players win the game. For example , the
following sequence will force the right player to win the game
h rpad
l lpad
cycle 100
5) you should be able to play again if and only if RESTART is
pushed high and then low again. Check for that..
--
-- M. M. Khellah
+---------------------------------------------------------------------------+