This is basically a 12 hour clock (that displays minutes and hours) with an AM/PM indicator. This works by incrementing in seconds (which is not an output) and checking when to turn over the minute/hour.
To test, you have to have a clock signal, reset signal, and ena signal going in where ena is pulsing every second. These signals are ui_in[7:5] so they are manually going in so that there is more flexibility.
List external hardware used in your project (e.g. PMOD, LED display, etc), if any There isn't any notable external hardware unless you want to connect it to an LED display to see the time/output.
# | Input | Output | Bidirectional |
---|---|---|---|
0 | Hour | Minute | |
1 | Hour | Minute | |
2 | Hour | Minute | |
3 | Hour | Minute | |
4 | Hour | Minute | |
5 | ena (when the clock should increment - every second) | Hour | Minute |
6 | reset (whether or not to restart the clock) | Hour | Minute |
7 | clk | AM/PM | Minute |