A machine setup script

This commit is contained in:
Jenny Huang 2023-06-06 22:43:53 -07:00
parent dd92f0748e
commit 2a33c414ef
1 changed files with 28 additions and 0 deletions

28
scripts/hls-setup-a-machine.sh Executable file
View File

@ -0,0 +1,28 @@
#!/bin/bash
# Run this script on a fresh clone to initialize any patches or tweaks needed
# This assumes you've already fully set up firesim normally (at least run build-setup.sh)
# go to top-level dir
pushd $(git rev-parse --show-toplevel)
export RDIR=$(git rev-parse --show-toplevel)/../../
# modify the pk source code to enable pk for custom instructions
pushd $RDIR/toolchains/riscv-tools/riscv-pk
git apply $RDIR/tools/centrifuge/patches/riscv-pk.patch
popd
if [ -d /ecad/tools ]; then
#source /ecad/tools/fpga.bashrc
#source /ecad/tools/xilinx/Vivado/2017.1/settings64.sh > /dev/null
source /ecad/tools/vlsi.bashrc
export VCS_HOME=/ecad/tools/synopsys/vcs/P-2019.06
export VCS_LIC_EXPIRE_WARNING=0
export XILINXD_LICENSE_FILE="2200@sunv40z-1.eecs.berkeley.edu"
fi
# Setup all the auxiliary makefiles for RISC-V baremetal compilation for print statement and etc.
pushd $RDIR/tools/centrifuge/scripts/sw_aux/bm_linker_scripts
make
popd