Open terminal in a known location. Here, we will use the directory /home/tk/Desktop/. In the terminal, execute the following command.
gitclonegit@github.com:ucb-bar/chipyard.git
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.
./build-setup.shriscv-tools--use-lean-conda
On older chipyard versions, do this instead:
./build-setup.shriscv-tools-s6-s7-s8-s9--force
The --force flag is used to skip the confirmation prompt, which is buggy on some terminals.
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.
Running RTL Simulation
Step 1. Preparing the Environment
On Ubuntu, we will use the open-source Verilator to simulate.
We don't need to do anything special to use Verilator. Just remember to source the env.sh script.
source $chipyard/env.sh
Use the following script to source vcs and other related tools.
source/ecad/tools/vlsi.bashrc
On BWRC machine, we need to source the VCS simulator path. This can be done by executing the following commands.