After configuring the XC4003E with the Watch design, the functionality can be manually tested and observed on the LED Displays. The Watch design implements the functionality of a stopwatch.
The stopwatch counts up to 1 minute and starts over displaying tens of seconds, seconds, and tenths of a second. The stopwatch waits for a start command, counts until a stop command, holds the value that it was stopped at, and can either start again from that value or be reset.
The FPGA demonstration board has a row of eight rocker switches (SW3) and two buttons (RESET and SPARE) that provide input to the design.
Watch Design Signal | Demo Board Switch/Button |
---|---|
CLK_SELECT | SW3-8 |
RESET | SW3-7 |
GRST | RESET |
STRTSTOP | SPARE |
In the Watch design, the SW3-7 selects the clock source, SW3-8 is a synchronous state machine reset, the RESET button is a global asynchronous reset, and the SPARE button starts and stops the stopwatch.
To operate the stopwatch function, follow these steps.