Home

Awesome

surf-tutorial

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.

<!--- ######################################################## -->

Clone the GIT repository

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

<!--- ######################################################## -->

System Requirements

There are two methods for running this tutorial:

System Install Method

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

Python Virtual Environment

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

Docker Container Method

Please refer to the docker README.md

<!--- ######################################################## -->

Summary of SURF Tutorial labs

This project provides different labs to help users get familiar with the SURF framework

The intent of this repo is to add more labs in the future. Feel free to reach out and make requests.

<!--- ######################################################## -->