Setting Up Chipyard - BWRC
Note:
This tutorial only applies for UC Berkeley students who has access to UC Berkeley BWRC Computer Clusters. For external users, please follow the tutorial to set up Chipyard on other platforms, including Ubuntu 2X.04 and Windows 10 with WSL.
System Environment
On BWRC login servers
1. Set up conda environment
Run the following commands to activate the base conda environment
2. Install conda-lock
If this is the first time conda is activated on the user environment, we need to install conda-lock
.
3. Clone Chipyard
Open terminal in the working directory. Here, we will use the directory /tools/C/chiyufeng/tapeout/
as an example. In the terminal, execute the following command.
Set chipyard path to an environment variable. We will be referencing this path for our script locations from now on.
4. Configure Chipyard
By default, chipyard setup script initializes/installs things in the following order:
Conda environment
Chipyard submodules
Toolchain collateral (Spike, PK, tests, libgloss)
Ctags
Chipyard pre-compile sources
FireSim
FireSim pre-compile sources
FireMarshal
FireMarshal pre-compile default buildroot Linux sources
Runs repository clean-up
To execute the setup script, run the following command.
The script will prompt the following message. Enter "y" and press Enter key to continue.
Alternatively, the release check prompt can be skipped by passing the "--force" flag.
5. On New Terminal
Finally, for every new terminal, run the following script to set up all the environment variables required by Chipyard.
6. Dealing with Failed Setups
If the setup script fails to compile, try running
Worst case, run this to re-link the submodules
Last updated