This creates a stop watch type of behavior. It was originally written and verified on the Basys 3 board. The Inc Switch controls whether the timer increments or decrements when the increment buttons are pressed. When the timer is running it can be paused by pressing the stop button. The timer can be reset by pressing the soft reset button.
Provide a 7 segment display, some buttons, and a switch to control the behavior and see the output
7 Segement Display (Common Anode Segments), Active Low top and Bottom
# | Input | Output | Bidirectional |
---|---|---|---|
0 | start button | segment a | anode 1 |
1 | stop button | segment b | anode 2 |
2 | soft reset button | segment c | anode 3 |
3 | inc minute button | segment d | anode 4 |
4 | inc second button | segment e | |
5 | inc switch | segment f | |
6 | mode switch | segment g | |
7 |