A wristwatch display can show one of four items: the time, the alarm, the stopwatch, or the
Question:
A wristwatch display can show one of four items: the time, the alarm, the stopwatch, or the date, controlled by two signals s1 and so (00 displays the time, 01 the alarm, 10 the stopwatch, and 11 the date—assume s1 and s0 control an N-bit mux that passes through the appropriate register). Pressing a button B (which sets B = 1) sequences the display to the next item. For example, if the presently displayed item is the date, the next item is the current time. Create a state diagram for an FSM describing this sequencing behavior, having an input bit B, and two output bits stand s0. Be sure to only sequence forward by one item each time the button is pressed, regardless of how long the button is pressed—in other words, be sure to wait for the button to be released after sequencing forward one item. Use short but descriptive names for each state. Make displaying the time be the initial state.