Skip to content

Commit

Permalink
Merge branch 'workshop2019' of https://github.com/casper-astro/tutori…
Browse files Browse the repository at this point in the history
…als_devel into workshop2019
  • Loading branch information
casper-workshop committed Aug 5, 2019
2 parents 626269d + 9b2f211 commit 95a0df5
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,56 @@ cd tutorials_devel
./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:

```bash
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):

```bash
# 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:

```bash
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):

```bash
# 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](https://casper-toolflow.readthedocs.io/en/latest/src/Configuring-the-Toolflow.html#specifying-local-details) 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 --
Expand Down

0 comments on commit 95a0df5

Please sign in to comment.