diff --git a/.github/scripts/build-examples.sh b/.github/scripts/build-examples.sh index 481da14..0a21277 100755 --- a/.github/scripts/build-examples.sh +++ b/.github/scripts/build-examples.sh @@ -47,7 +47,7 @@ shift examples="$@" if [ "$fpga_family" == "xc7" -a -z "$examples" ]; then - examples="counter picosoc litex litex_linux button_controller" + examples="counter picosoc litex litex_linux button_controller timer pulse_width_led" elif [ "$fpga_family" == "eos-s3" -a -z "$examples" ]; then examples="counter" fi @@ -55,7 +55,6 @@ fi # activate conda and enter example dir snippets="docs/building-examples.rst:export-install-dir,fpga-fam-$fpga_family,conda-prep-env-$fpga_family,conda-act-env,enter-dir-$fpga_family" -additionalDesigns="docs/building-examples.rst:export-install-dir,fpga-fam-$fpga_family,conda-prep-env-$fpga_family,conda-act-env,enter-dir-$fpga_family,additional_examples" # Xilinx 7-Series examples if [ "$fpga_family" = "xc7" ]; then @@ -78,6 +77,12 @@ if [ "$fpga_family" = "xc7" ]; then "button_controller") snippets="${additionalDesigns} xc7/additional_examples/button_controller/README.rst:example-debouncer-basys3" ;; + "pulse_width_led") + snippets="${snippets} xc7/pulse_width_led/README.rst:example-pulse-arty-35t" + ;; + "timer") + snippets="${snippets} xc7/timer/README.rst:example-watch-basys3" + ;; *) echo "ERROR: Unknown example name: $example" >&2 exit 1 diff --git a/docs/building-examples.rst b/docs/building-examples.rst index 8aed414..297df99 100644 --- a/docs/building-examples.rst +++ b/docs/building-examples.rst @@ -91,6 +91,14 @@ Enter the directory that contains examples for Xilinx 7-Series FPGAs: .. jinja:: xc7_linux_litex_demo :file: templates/example.jinja +.. jinja:: xc7_timer + :file: templates/example.jinja + +.. jinja:: xc7_pulse_width_led + :file: templates/example.jinja + + + Additional Examples ------------------- @@ -102,6 +110,7 @@ for the basys3 board in the additional_examples directory: cd additional_examples + QuickLogic EOS S3 -----------------