From 564ad12266c1297d4a47908bad7d8ffcf6a98570 Mon Sep 17 00:00:00 2001 From: Filip Kokosinski Date: Tue, 8 Dec 2020 13:15:18 +0100 Subject: [PATCH] xc7: Add README for counter_test Signed-off-by: Filip Kokosinski --- xc7/counter_test/README.rst | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 xc7/counter_test/README.rst diff --git a/xc7/counter_test/README.rst b/xc7/counter_test/README.rst new file mode 100644 index 0000000..533fb07 --- /dev/null +++ b/xc7/counter_test/README.rst @@ -0,0 +1,35 @@ +Counter test +~~~~~~~~~~~~ + +This example design features a simple 4-bit counter driving LEDs. To build the +counter example, depending on your hardware, run: + +.. code-block:: bash + :name: example-counter-a35t-group + + TARGET="arty_35" make -C counter_test + + +.. code-block:: bash + :name: example-counter-a100t-group + + TARGET="arty_100" make -C counter_test + + +.. code-block:: bash + :name: example-counter-basys3-group + + TARGET="basys3" make -C counter_test + +Now you can upload the design with: + +.. code-block:: bash + + openocd -f ${INSTALL_DIR}/conda/share/openocd/scripts/board/digilent_arty.cfg -c "init; pld load 0 top.bit; exit" + + +The result should be as follows: + +.. image:: ../../docs/images/counter-example-arty.gif + :align: center + :width: 50%