

During the movement of the light through the LEDs, there should not be any change in the behavior of the system if the Begin button is pressed. In this case, the ball disap LEDs turn on and off repeatedly (game over) pears and all 4 At any point, when the Reset button is pressed (synchronous reset) the state machine goes back to the initial state where all lights are off and the FSM waits for the Begin button to be pressed to start a new game Begin button works only when the FSM is in the initial state.

Pressing the Play button too soon or too late means missing the ball. When the light is again at the starting position (LD3), the player must press the Play button to reverse the direction of the shift (simulate hitting the ball). The single light (ball) continue shifting to the right until it reaches the rightmost position (LDO-Wall), and then the ball returns to the player by reversing the direction of the shift of the moving light. See Figure 1 (on the next page) for the input/output setup on the Nexys4 board. The Begin button starts the game by turning on LD3 (placing the ball) and the ball starts moving to the right. 1) Draw FSM of the button synchronizer (see for details) 2) Write Verilog code and testbench for the button synchronizer 3) Draw FSM of the light pattern generator (see -4 for details) 4) Write Verilog code for the light pattern generator Lab Overview The purpose of the lab is to create a digital ping-pong game by using LEDs to illustrate the ball movement and a push button for the paddle The circuit is first initialized with the Reset button.

Transcribed image text: Lab 3: Sequential Logic Design (Ping-Pong Game) Objectives: - Design and implement Button Synchronizer FSM - Design and implement light pattern generator FSM -Practice writing testbench for sequential circuits and use testbench to validate the designed circuit Connect the button synchronizer with the light pattern generator to implement a simple Ping-Pong game Understand the timing issues when coupling two state machines - Show the pre-lab to your TA during the first 30 mins of your lab session.
