M
Marwan Naji
Guest
VHDL Group Project
Work in a group of three members design a dual-function digital timer using VHDL. The digital timer
can function as a stopwatch or a count-down timer. In the stopwatch mode, it is capable of recording
the time up to hundredths of a second accuracy. In the count-down mode, it is capable of counting down
from a maximum of 24 hours. It has three buttons (B1, B2 and B3) that are used to change the mode,
set the time, start and stop the stopwatch or the timer functions, and etc.
Pushing button B1 changes the mode from Stopwatch to Countdown Timer and back to Stopwatch.
The function of the buttons B2 and B3 vary depending on the mode and are explained in the following:
Operation in Stopwatch mode:
Display indicates stopwatch time in the format of mm:ss.cc (where cc is hundredths of a second).
Pressing B2 starts the time counter, pressing B2 again stops it, and then pressing B2 again will resume
the time counter and so on. Pressing B3 resets the time. Once the stopwatch is started, it will keep
running even when it is in the Countdown Timer mode.
Operation in Countdown Timer mode:
Display indicates the time in the format of hh:mm. Pushing B2 cycles the state to Set Hours, then to Set
Minutes, to start the timer, and to stop the timer. When in the Set Hours or Set Minutes state, each press
of B3 advances the hours and minutes by 1. Similarly, once the countdown timer is started, it will keep
running even when it is in the Stopwatch mode. In short, the dual function timer can run both operations
in parallel.
Assume that the system clock is at 50 MHz. You should try to include any of the concepts in designfor-test
and low power design techniques to improve the testability of the design, and better manage
the power consumption of your design, respectively
Work in a group of three members design a dual-function digital timer using VHDL. The digital timer
can function as a stopwatch or a count-down timer. In the stopwatch mode, it is capable of recording
the time up to hundredths of a second accuracy. In the count-down mode, it is capable of counting down
from a maximum of 24 hours. It has three buttons (B1, B2 and B3) that are used to change the mode,
set the time, start and stop the stopwatch or the timer functions, and etc.
Pushing button B1 changes the mode from Stopwatch to Countdown Timer and back to Stopwatch.
The function of the buttons B2 and B3 vary depending on the mode and are explained in the following:
Operation in Stopwatch mode:
Display indicates stopwatch time in the format of mm:ss.cc (where cc is hundredths of a second).
Pressing B2 starts the time counter, pressing B2 again stops it, and then pressing B2 again will resume
the time counter and so on. Pressing B3 resets the time. Once the stopwatch is started, it will keep
running even when it is in the Countdown Timer mode.
Operation in Countdown Timer mode:
Display indicates the time in the format of hh:mm. Pushing B2 cycles the state to Set Hours, then to Set
Minutes, to start the timer, and to stop the timer. When in the Set Hours or Set Minutes state, each press
of B3 advances the hours and minutes by 1. Similarly, once the countdown timer is started, it will keep
running even when it is in the Stopwatch mode. In short, the dual function timer can run both operations
in parallel.
Assume that the system clock is at 50 MHz. You should try to include any of the concepts in designfor-test
and low power design techniques to improve the testability of the design, and better manage
the power consumption of your design, respectively