This tutorial is designed for users learning how to use SURF framework.
Everything in this tutorial is open source
!!!
So there are no "pay barriers" or licensing required to get started.
Install git large filesystems (git-lfs) in your .gitconfig (1-time step per unix environment)
$ git lfs install
Clone the git repo with git-lfs enabled
$ git clone --recursive https://github.com/slaclab/surf-tutorial.git
Note: recursive flag
used to initialize all submodules within the clone
There are two methods for running this tutorial:
- system install of the required tools
- Run in a docker container
It is recommend to use Ubuntu 2022.04 LTS (or later Ubuntu release) for these labs:
Here are the Unix packages to install:
# Install the apt packages
sudo apt install \
python3 \
python3-dev \
python3-pip \
git \
git-lfs \
build-essential \
tclsh \
gtkwave \
ghdl \
locales
A Python virtual environemnt is recommended to preserve system flexibility.
# Create a virtual environment called surf-venv
python3 -m venv surf-venv
# Activate the virtual environment
./surf-venv/bin/activate
# Upgrade pip
pip install --upgrade pip
# Install the required python packages in the virtual environment
python3 -m pip install -r ../surf-tutorial/pip_requirements.txt
# Deactivate with
deactivate
If you don't want to use a Python virtual environment, you can install the Python packages to your system with:
sudo pip install -r requirements.txt
Please refer to the docker README.md
This project provides different labs to help users get familiar with the SURF framework
labs/01-AXI-Lite_register_endpoint
: demonstrates how to use the SURF AXI-Lite helper function procedures to quickly make an endpointlabs/02-AXI-stream_module
: demonstrates how to use the SURF's AXI stream frame work for both a sourcing and sinking a stream
The intent of this repo is to add more labs in the future. Feel free to reach out and make requests.