Skip to content

Commit

Permalink
ci: test ice40/spectrum
Browse files Browse the repository at this point in the history
Signed-off-by: Unai Martinez-Corral <[email protected]>
  • Loading branch information
umarcor committed Aug 1, 2022
1 parent 4b6f475 commit f983a7b
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/scripts/build-examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,14 @@ case "$fpga_family" in
esac
done
;;
ice40) for example in $examples; do
case $example in
"spectrum") tuttest_exec ${snippets} ice40/spectrum/README.rst:ice40-spectrum ;;
*) echo "ERROR: Unknown example name: $example" >&2
exit 1 ;;
esac
done
;;
*) echo "ERROR: Unknown fpga_family: $fpga_family" >&2
exit 1
;;
Expand Down
10 changes: 10 additions & 0 deletions .github/scripts/generate_job_matrices.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,16 @@ def get_jobs(
'surelog': "-parse -DSYNTHESIS" if usesSurelog else ""
} for osver in osvers])

jobs.extend([{
'name': "Surelog" if usesSurelog else "Default",
'runs-on': runs_on,
'fpga-fam': "ice40",
'os': osver[0],
'os-version': osver[1],
'example': "spectrum",
'surelog': "-parse -DSYNTHESIS" if usesSurelog else ""
} for osver in osvers])

return jobs

for distribution in ['debian', 'ubuntu', 'fedora', 'centos']:
Expand Down
23 changes: 21 additions & 2 deletions docs/building-examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,21 @@ Select your FPGA family:
.. code-block:: bash
:name: fpga-fam-xc7
FPGA_FAM="xc7"
export FPGA_FAM=xc7
.. group-tab:: EOS S3

.. code-block:: bash
:name: fpga-fam-eos-s3
FPGA_FAM="eos-s3"
export FPGA_FAM=eos-s3
.. group-tab:: ICE40

.. code-block:: bash
:name: fpga-fam-ice40
export FPGA_FAM=ice40
Next, prepare the environment:

Expand Down Expand Up @@ -104,3 +111,15 @@ Enter the directory that contains examples for QuickLogic EOS S3:
.. jinja:: eos-s3_btn_counter
:file: templates/example.jinja


Lattice ICE40
=============

.. code-block:: bash
:name: enter-dir-ice40
cd ice40
.. jinja:: ice40-spectrum
:file: templates/example.jinja

0 comments on commit f983a7b

Please sign in to comment.