Question: Design a six ( decimal ) digit stopwatch using a Nios 2 coding language with start / resume , stop, and reset control buttons. The

Design a six (decimal) digit stopwatch using a Nios 2 coding language with start/resume, stop, and reset control buttons. The functions for each of the input buttons are as follows:
1. START_RESUME- This button is used to trigger (start) the counting on the stopwatch, from an initial state of 00:00:00. When this input is activated, the stopwatch advances every centi-second counting up and displaying the elapsed time from a minimum of 00:00:00up to a maximum of 99:59:99(99minutes, 59seconds and 99hundredths of a second) and then looping back to 00:00:00. The counting process should continue running until any other input (SET or RESET) is activated. A second press of the START_RESUME button should not affect the current clock (time count). If the START_RESUME input is activated from a previous steady display on the stopwatch, then the stopwatch resumes counting from the displayed value.
2. ET- This button is used to stop the stopwatch counting and to hold the display. When this button is pressed the stopwatch stops counting at the very instance and displays the lap time (in minutes) continuously, until any other input (RESUME or RESET) is pressed. The difference between a regular pause of the stopwatch and using the lap time is that for the lap time, the stopwatch is still counting while displaying the lap time, even though the time displayed does not change. While the stopwatch is in SETmode there should be an L displayed on HEX0
3.RESET-This button is used to reset the stopwatch display to 00:00:00. When this button is pressed, your stopwatch is reset to zero (the display should read 00:00:00), irrespective of the state of your counter, and should hold this state until the START_RESUMEbutton is activated. While the stopwatch is in RESETmode there should be an R displayed on HEX0.
4. GENERAL- The current clock count MUST ALWAYS be displayed on the 18 red LEDs LEDR0-17. KEY0 MUST NOT be used because it is reserved for use as a reset mechanism for the DE2-115 Media Computer.
INPUT-OUTPUT INTERFACE
1. Use the push buttons, KEY1-3, and the 7-segment display LEDs HEX2-7, available on the DE2-115 board as indicated in TABLE 1 below.
2. How to Track Time? - Use the 50 MHz internal clock on the DE2-115 board as the reference for computing time. Hint: If I have a clock running at 50 MHz, how many clock cycles will I observe in 1/100 second? The intellectual challenge here is to do the necessary clock division within your NIOS2 assembly code to increment the counter every 1/100 second.
Table 1 describes the functionality of digits, push buttons and input/output devices on the stopwatch. Figure 1 shows the stopwatch display from the top-level design.
TABLE 1: Function(s) of digits, push buttons and IO Devices - the table image is attach
Design a six ( decimal ) digit stopwatch using a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!