Design a digital system to simulate the scoring of a single game in tennis between two players: Player A and Player B.
In tennis, a player must win at least 4 points and be ahead by at least 2 points to win the game.
The point progression is as follows:
Points: 0 → 15 → 30 → 40 → Win
If both players reach 40, the game enters deuce. From deuce, if one player scores, they gain advantage. If the other player scores next, the game returns to deuce. Whichever player is currently in an advantage, and the same player scores, they win the game.
The system must take two inputs:
A: Active-high pulse when Player A scores a point
B: Active-high pulse when Player B scores a point
Only one of A or B will be high at a time
The system has a 2-bit output:
00 → Game is ongoing (no winner yet)
01 → Player A wins the game
10 → Plaver B wins the game
Leave a Reply