Skip to content

AdamI75/tutorials_devel

 
 

Repository files navigation

These tutorials serve as an introduction to CASPER's Toolflow, Software, and Hardware.

Downloading

You can download these libraries by cloning this repository and initializing a mlib_devel library version appropriate for your hardware platform.

# Clone this repository from github
git clone https://github.com/casper-astro/tutorials_devel

# Go into the repository directory
cd tutorials_devel

# Download libraries for your chosen platform.
# <platform> should be one of: "roach2", "snap", "skarab", "red_pitaya"
# For example, to download the libraries for the SNAP board, you should run:
#
# ./activate_platform snap
#
./activate_platform <platform>

Installing Dependencies

ROACH

For ROACH, you need Python 2.7 and python-pip. If you don't have these, you can probably install them with:

apt install python2.7
apt-install python-pip

Once you have these, you can install all the dependencies you need with the following commands, run from the root directory of your repository (i.e., the mlib_devel directory):

# Install casperfpga dependencies
cd casperfpga
pip install -r requirements.txt

# Go back to the root of the repository
cd ..

# Install the requirements for your chosen platform
cd <your_platform_of_choice>/mlib_devel
pip install -r requirements.txt

For non-ROACH platforms

For platforms newer than ROACH, you need Python 3 and python3-pip. If you don't have these, you can probably install them with:

apt install python3
apt-install python3-pip

Once you have these, you can install all the dependencies you need with the following commands, run from the root directory of your repository (i.e., the mlib_devel directory):

# Install casperfpga dependencies
cd casperfpga
pip3 install -r requirements.txt

# Go back to the root of the repository
cd ..

# Install the requirements for your chosen platform
cd <your_platform_of_choice>/mlib_devel
pip3 install -r requirements.txt

Local Configuration

You will need a startsg.local script in your chosen platform directory (eg. snap/startsg.local for the SNAP board) before you can start the toolflow. See The Toolflow Documentation for details about what this script should contain.

Once you've downloaded the appropriate libraries, you can move to your chosen platform's directory and start the toolflow --

# Enter the directory for your chosen platform.
# Eg. for SNAP:
cd snap/

# Start the toolflow's MATLAB frontend
./startsg your.startsg.local.file

Documentation

Documentation for these tutorials can be found here

Packages

No packages published

Languages

  • Python 99.1%
  • Shell 0.9%