f4pga-examples/eos-s3
Adam Jeliński c5d93c1506 eos-s3: Use Conda packages from LiteX-Hub channel
`quicklogic-vtr` had to stay at the same version because newer versions
failed at building `btn_counter` example with the current quicklogic
toolchain used.

Other packages are in the versions built from their latest source
commits.

Signed-off-by: Adam Jeliński <ajelinski@antmicro.com>
2020-11-27 16:09:29 +01:00
..
btn_counter Update README.md files 2020-09-07 12:36:46 +02:00
README.rst travis: Use toolchain name directly. 2020-09-28 07:15:43 -07:00
environment.yml eos-s3: Use Conda packages from LiteX-Hub channel 2020-11-27 16:09:29 +01:00
requirements.txt Update README.md files 2020-09-07 12:36:46 +02:00

README.rst

SymbiFlow Toolchain Examples for QuickLogic EOS S3
==================================================

#. ``btn_counter`` - simple 4-bit counter driving LEDs. The design targets the `EOS S3 FPGA <https://www.quicklogic.com/products/eos-s3/>`__.

Clone this repository
---------------------
If you have not already done so, clone this repository and `cd` into it:

.. code:: bash

    sudo apt install git
    git clone https://github.com/SymbiFlow/symbiflow-examples.git && cd symbiflow-examples


Setting up the toolchain
------------------------

Choose the installation directory (see the `README <../README.rst>`_ one level up for details):


.. code:: bash

    export INSTALL_DIR=~/opt/symbiflow    # or somewhere else you choose


.. toolchain_include_begin_label

.. code:: bash
        :name: eos-s3-setup-toolchain

        bash conda_installer.sh -b -p $INSTALL_DIR/eos-s3/conda
        source "$INSTALL_DIR/eos-s3/conda/etc/profile.d/conda.sh"
        conda env create -f eos-s3/environment.yml
        conda activate eos-s3
        wget -qO- https://quicklogic-my.sharepoint.com/:u:/p/kkumar/EWuqtXJmalROpI2L5XeewMIBRYVCY8H4yc10nlli-Xq79g?download=1 | tar -xJ -C $INSTALL_DIR/eos-s3/
        conda deactivate

.. toolchain_include_end_label

Building the examples
---------------------

.. build_examples_include_begin_label

Before building any example, set the installation directory to match what you set it to earlier,

.. code:: bash

    export INSTALL_DIR=~/opt/symbiflow

and prepare the environment:

.. code:: bash
        :name: eos-s3-prepare-env

        export PATH="$INSTALL_DIR/eos-s3/install/bin:$PATH"
        source "$INSTALL_DIR/eos-s3/conda/etc/profile.d/conda.sh"
        conda activate eos-s3

To build the example, run the following command:

.. code:: bash
        :name: eos-s3-counter

        pushd eos-s3/btn_counter && make && popd

.. build_examples_include_end_label