Setting up Chipyard - Ubuntu
Note:
The following tutorial content is tested on Ubuntu 20.04 and Ubuntu 22.04 systems with Chipyard release 1.10.1
Step 1. Install conda
Chipyard uses Conda to manage the development environment and packages.
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.
To do this, right click the file and select "Properties..." option. In the Properties window, go to "Permissions" tab. Check the "Allow executing file as program" selection.
Open terminal in the download folder and execute the ".sh" script.
Follow the installation prompt. The program will prompt you to input the installation location. Here, we are using /home/tk/Documents/mambaforge
.
After installation, it will ask whether to execute conda init
. Enter "yes" to the prompt.
Conda is now installed on the system.
Note:
After installing conda, the conda
path is not added to the PATH environment variable of the current terminal.
If the conda: command not found
error occured, open a new terminal (or source ~./bashrc
).
Step 2. Install conda-lock
Chipyard also requires the conda-lock
module. Install conda-lock
by executing the following commands.
Step 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:
For convenience, we will export the chipyard path as an environment variable on the terminal.
Now, we go to the chipyard directory and check out to the correct version.
Step 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.
The set up process will take around 10-30 minutes, depending on the system configuration. After the script is finished, Chipyard is initialized and is ready to be used.
Step 5. On New Terminal
Finally, for every new terminal, run the following script to set up all the environment variables required by Chipyard.
Next Step
Next, we can try to run some simple RTL simulation.
pageRunning Chipyard RTL Simulation - Ubuntu or BWRCOr, we can start with FPGA prototyping.
Last updated