Skip to content

Examples designs for showing different ways to use SymbiFlow toolchains.

License

Notifications You must be signed in to change notification settings

tcal-x/symbiflow-examples

 
 

Repository files navigation

SymbiFlow examples

https://github.com/symbiflow/symbiflow-examples/workflows/doc-test/badge.svg?branch=master Documentation Status

This repository provides example FPGA designs that can be built using the SymbiFlow open source toolchain. These examples target the Xilinx 7-Series and the QuickLogic EOS S3 devices.

The repository includes:

  • xc7/ and eos-s3/ - Examples for Xilinx 7-Series and EOS-S3 devices, including:
    • Verilog code
    • Pin constraints files
    • Timing constraints files
    • Makefiles for running the SymbiFlow toolchain
  • docs/ - Guide on how to get started with SymbiFlow and build provided examples
  • .github/ - Directory with CI configuration and scripts

Please refer to the project documentation for a proper guide on how to run these examples. The examples provided by this repository are automatically built by extracting necessary code snippets with tuttest.

Building those docs

To build Sphinx documentation, you need at least Python 3.6. You will also need to install Sphinx v3.3.0 and additional dependencies, which you can get with pip:

pip install -r docs/requirements.txt

Next, just run:

make -C docs html

The output will be found in the docs/_build/html directory.

Running "CI" locally

The CI uses a bunch of scripts in the .github/scripts/ directory to execute the needed tests. You can use the same scripts locally to test without having to wait for the online CIs to pass if you want to quickly test stuff.

For this, you will need tuttest, which you can install with:

pip install git+https://github.com/antmicro/tuttest
  • <fpga-family> is one of {eos-s3, xc7} (the two currently covered platforms - EOS-S3 and Xilinx series 7).
  • <os> is one of {ubuntu, debian, centos} (currently supported operating systems).

To install the toolchain (just the first time), run:

.github/scripts/install-toolchain.sh <fpga-family> <os> | bash -c "$(cat /dev/stdin)"

To build all the examples locally, just run:

.github/scripts/build-examples.sh <fpga-family>  | bash -c "$(cat /dev/stdin)"

About

Examples designs for showing different ways to use SymbiFlow toolchains.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Verilog 98.9%
  • Other 1.1%