A 3-bit up/down counter with a reset signal, enable signal, load signal, and up/down signal.
When the rst is low, the output is set to 0. When the load_cnt signal is low, the input data is assigned to the output. When count_enb is high, counting occurs at every positive edge of the clock. updn_cnt controls whether the counter counts up or down.
Set signals and confirm counting.
7-segment disply and driver, resistors.
# | Input | Output | Bidirectional |
---|---|---|---|
0 | data_in[0] | data_out[0] | |
1 | data_in[1] | data_out[1] | |
2 | data_in[2] | data_out[2] | |
3 | rst_ | ||
4 | ld_cnt | ||
5 | updn_cnt | ||
6 | count_enb | ||
7 |