cvw/setup.sh

33 lines
798 B
Bash
Raw Normal View History

2021-12-05 04:25:33 +00:00
#!/bin/bash
# setup.sh
2021-12-05 04:25:33 +00:00
# David_Harris@hmc.edu and kekim@hmc.edu 1 December 2021
# Set up tools for cvw
# optionally have .bashrc or .bash_profile source this file with
#if [ -f ~/cvw/setup.sh ]; then
# source ~/cvw/setup.sh
#fi
2023-02-04 12:29:27 +00:00
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1
2021-12-05 04:25:33 +00:00
echo "Executing Wally setup.sh"
2021-12-05 04:25:33 +00:00
# Path to RISC-V Tools
export RISCV=/opt/riscv # change this if you installed the tools in a different location
# Path to Wally repository
WALLY=$(dirname ${BASH_SOURCE[0]:-$0})
export WALLY=$(cd "$WALLY" && pwd)
echo \$WALLY set to ${WALLY}
# utility functions in Wally repository
export PATH=$WALLY/bin:$PATH
2023-03-03 23:54:35 +00:00
# Verilator needs a larger stack to simulate CORE-V Wally
ulimit -s 100000
2023-03-03 23:54:35 +00:00
# load site licenses and tool locations
source $RISCV/site-setup.sh
echo "setup done"