Setting up Chipyard - Windows Subsystem Linux
System Environment
Hardware: Framework Laptop i7-1165G7
Operating System: Windows 10 Pro 21H2 Build 19044.2486
Subsystem Linux: Ubuntu 22.04.1 LTS (WSL 2)
Chipyard version: 1.10.0
1. Install conda
Download conda from the miniforge release page.
Select the corresponding version and download the file ending with ".sh".
After download, we need to mark the script as executable. Enter the following command to set permissions to the file.
Then, execute the script.
Follow the installation prompt. The program will prompt you to input the installation location. Here, we are using /home/tk/Documents/mambaforge
.
2. Install conda-lock
Chipyard also requires the conda-lock
module. Install conda-lock
by executing the following commands.
Note: after installing conda, the
conda
path is not added to the PATH environment variable of the current terminal. If theconda: command not found
error occured, open a new terminal (or source~./bashrc
).
3. Clone Chipyard
Open terminal in a known location. Here, we will use the directory /home/tk/Desktop/
. In the terminal, execute the following command.
if you are a Chipyard developer, use the ssh url instead:
3. 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.
4. On New Terminal
Finally, for every new terminal, run the following script to set up all the environment variables required by Chipyard.
Last updated