This is a 2 players game where every player has an active low pushbutton assigned (req1_in and req2_in inputs to top level). After applying reset to the circuit, a countdown will be displayed at the output ports (ideally connected to some LEDs). Then, when the last LED stops toggling, the players will press the buttons. The first player to press the button wins and this will be displayed in output LEDs.
2 active low pushbuttons for players + 1 active low pushbutton for reset. 4 LEDs connected to outputs.
# | Input | Output |
---|---|---|
0 | clk | leds_out[0] / segment a |
1 | rst_in_n (active low) | leds_out[1] / segment b |
2 | req1_in (active low) | leds_out[2] / segment c |
3 | req2_in (active low) | leds_out[3] / segment d |
4 | ||
5 | ||
6 | ||
7 |