2020-09-09 03:38:20 -04:00
|
|
|
SymbiFlow examples
|
|
|
|
==================
|
|
|
|
|
|
|
|
This repository provides example FPGA designs that can be built using the SymbiFlow open source toolchain.
|
|
|
|
The examples target the Xilinx Artix-7 and the QuickLogic EOS S3 devices.
|
|
|
|
|
|
|
|
The repository includes:
|
|
|
|
|
|
|
|
* `eos-s3 </eos-s3>`_ - Example FPGA designs for the QuickLogic EOS S3 series of parts:
|
|
|
|
|
|
|
|
* Verilog code
|
|
|
|
* Pin constraints files
|
|
|
|
* Timing constraints files
|
|
|
|
* Makefiles for running the SymbiFlow toolchain
|
|
|
|
|
|
|
|
* `xc7 </xc7>`_ - Example FPGA designs for the Xilinx 7 series of parts:
|
|
|
|
|
|
|
|
* Verilog code
|
|
|
|
* Pin constraints files
|
|
|
|
* Timing constraints files
|
|
|
|
* Makefiles for running the SymbiFlow toolchain
|
|
|
|
|
|
|
|
* `.travis.yml <.travis.yml>`_ - Travis CI configuration file
|
|
|
|
|
2020-09-18 01:54:05 -04:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
2020-09-09 03:38:20 -04:00
|
|
|
Toolchain installation
|
|
|
|
----------------------
|
|
|
|
|
2020-09-18 01:54:05 -04:00
|
|
|
This section describes how to install the toolchain. This procedure is divided in three steps:
|
2020-09-09 03:38:20 -04:00
|
|
|
|
|
|
|
- Installing the Conda package manager
|
2020-09-18 01:54:05 -04:00
|
|
|
- Choosing an installation directory
|
2020-09-09 03:38:20 -04:00
|
|
|
- Downloading the architecture definitions and installing the toolchain
|
|
|
|
|
2020-09-18 01:54:05 -04:00
|
|
|
1. Conda
|
2020-09-09 03:38:20 -04:00
|
|
|
|
|
|
|
.. code:: bash
|
2020-09-18 01:54:05 -04:00
|
|
|
:name: wget-conda
|
|
|
|
|
|
|
|
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O conda_installer.sh
|
2020-09-09 03:38:20 -04:00
|
|
|
|
2020-09-18 01:54:05 -04:00
|
|
|
2. Choose the install directory
|
2020-09-09 03:38:20 -04:00
|
|
|
|
2020-09-18 01:54:05 -04:00
|
|
|
The install directory can either be in your home directory
|
2020-09-23 17:31:51 -04:00
|
|
|
such as ``~/opt/symbiflow`` or in a system directory such as ``/opt/symbiflow``.
|
2020-09-18 01:54:05 -04:00
|
|
|
If you choose a system directory, you will need root permission to perform the installation,
|
2020-09-23 17:31:51 -04:00
|
|
|
and so you will need to add some ``sudo`` commands to the instructions below.
|
2020-09-18 01:54:05 -04:00
|
|
|
|
|
|
|
.. code:: bash
|
|
|
|
|
|
|
|
INSTALL_DIR=~/opt/symbiflow
|
|
|
|
|
|
|
|
3. Toolchain
|
2020-09-09 03:38:20 -04:00
|
|
|
|
|
|
|
* For the Artix-7 devices:
|
|
|
|
|
|
|
|
.. include:: xc7/README.rst
|
|
|
|
:start-after:.. toolchain_include_begin_label
|
|
|
|
:end-before:.. toolchain_include_end_label
|
|
|
|
|
|
|
|
|
|
|
|
* For the EOS S3 devices:
|
|
|
|
|
|
|
|
.. include:: eos-s3/README.rst
|
|
|
|
:start-after:.. toolchain_include_begin_label
|
|
|
|
:end-before:.. toolchain_include_end_label
|
|
|
|
|
2020-09-18 01:54:05 -04:00
|
|
|
|
2020-09-09 03:38:20 -04:00
|
|
|
Build Example Designs
|
|
|
|
---------------------
|
|
|
|
|
|
|
|
With the toolchain installed, you can build the example designs.
|
|
|
|
The example designs are provided in separate directories:
|
|
|
|
|
|
|
|
* ``xc7`` directory for the Artix-7 devices
|
|
|
|
* ``eos-s3`` directory for the EOS S3 devices
|
|
|
|
|
2020-09-18 01:54:05 -04:00
|
|
|
|
|
|
|
|
2020-09-09 03:38:20 -04:00
|
|
|
Example designs for the Artix-7 devices:
|
|
|
|
****************************************
|
|
|
|
|
|
|
|
.. include:: xc7/README.rst
|
|
|
|
:start-after:.. build_examples_include_begin_label
|
|
|
|
:end-before:.. build_examples_include_end_label
|
|
|
|
|
2020-09-18 01:54:05 -04:00
|
|
|
|
2020-09-09 03:38:20 -04:00
|
|
|
Example design for the EOS S3 devices:
|
|
|
|
**************************************
|
|
|
|
|
|
|
|
.. include:: eos-s3/README.rst
|
|
|
|
:start-after:.. build_examples_include_begin_label
|
|
|
|
:end-before:.. build_examples_include_end_label
|
|
|
|
|