f4pga-examples/xc7/stop_watch
Joshua Fife 96bbace913 Added completed pwm and stop watch examples. Partially complete debouncer and uart_tx
Signed-off-by: Joshua Fife <jpfife17@gmail.com>
2021-07-21 15:27:08 -06:00
..
Makefile Added completed pwm and stop watch examples. Partially complete debouncer and uart_tx 2021-07-21 15:27:08 -06:00
README.rst Added completed pwm and stop watch examples. Partially complete debouncer and uart_tx 2021-07-21 15:27:08 -06:00
SevenSegmentControl.sv Added completed pwm and stop watch examples. Partially complete debouncer and uart_tx 2021-07-21 15:27:08 -06:00
basys3.xdc Added completed pwm and stop watch examples. Partially complete debouncer and uart_tx 2021-07-21 15:27:08 -06:00
mod_counter.sv Added completed pwm and stop watch examples. Partially complete debouncer and uart_tx 2021-07-21 15:27:08 -06:00
stopwatch.sv Added completed pwm and stop watch examples. Partially complete debouncer and uart_tx 2021-07-21 15:27:08 -06:00
stopwatch_top.sv Added completed pwm and stop watch examples. Partially complete debouncer and uart_tx 2021-07-21 15:27:08 -06:00
timer.sv Added completed pwm and stop watch examples. Partially complete debouncer and uart_tx 2021-07-21 15:27:08 -06:00

README.rst

Stop Watch
~~~~~~~~~~~~

This example is built specifically for the basys3 and demonstrates a greater variety of I/O 
then previous designs. It also demonstrates symbiflow's support for Code written in System Verilog 
as well as its support of dictionaries in XDCs. To build this example run the following commands:

.. code-block:: bash
   :name: example-watch-basys3

   make -C stop_watch


At completion, the bitstream is located in the build directory:

.. code-block:: bash

   cd stop_watch/build/basys3

Now, you can upload the design with:

.. code-block:: bash

   openocd -f ${INSTALL_DIR}/${FPGA_FAM}/conda/envs/${FPGA_FAM}/share/openocd/scripts/board/digilent_arty.cfg -c "init; pld load 0 top.bit; exit"

After downloading the bitstream you can start and stop the watch by toggling switch 0 on the board.
Press the center button to reset the counter. The following gives an example:

.. image:: ../../docs/images/stop-watch.gif
   :align: center
   :width: 50%