mirror of
https://github.com/openhwgroup/cvw
synced 2025-01-23 04:54:29 +00:00
37 lines
1.5 KiB
Bash
Executable File
37 lines
1.5 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# setup.sh
|
|
# David_Harris@hmc.edu and kekim@hmc.edu 1 December 2021
|
|
# Set up tools for riscv-wally
|
|
|
|
echo "Executing Wally setup.sh"
|
|
|
|
# Path to Wally repository
|
|
WALLY=$(dirname ${BASH_SOURCE})
|
|
export WALLY=$(cd "$WALLY" && pwd)
|
|
echo \$WALLY set to ${WALLY}
|
|
|
|
# Path to RISC-V Tools
|
|
export RISCV=/opt/riscv # change this if you installed the tools in a different location
|
|
|
|
# Tools
|
|
# GCCZ
|
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$RISCV/riscv-gnu-toolchain/lib:$RISCV/riscv-gnu-toolchain/riscv64-unknown-elf/lib
|
|
export PATH=$PATH:$RISCV/riscv-gnu-toolchain/bin:$RISCV/riscv-gnu-toolchain/riscv64-unknown-elf/bin # GCC tools
|
|
# Spike
|
|
export LD_LIBRARY_PATH=$RISCV/lib:$LD_LIBRARY_PATH
|
|
export PATH=$PATH:$RISCV/bin
|
|
# utility functions in Wally repository
|
|
export PATH=$WALLY/bin:$PATH
|
|
# Verilator
|
|
export PATH=/usr/local/bin/verilator:$PATH # Change this for your path to Verilator
|
|
# ModelSim/Questa (vsim)
|
|
export PATH=/cad/mentor/questa_sim-2021.2_1/questasim/bin:$PATH # Change this for your path to Modelsim
|
|
export MGLS_LICENSE_FILE=1717@solidworks.eng.hmc.edu # Change this to your Siemens license server
|
|
export PATH=/cad/synopsys/SYN/bin:$PATH # Change this for your path to Design Compiler
|
|
export SNPSLMD_LICENSE_FILE=27020@134.173.38.214
|
|
|
|
# Imperas; put this in if you are using it
|
|
#export PATH=$RISCV/imperas-riscv-tests/riscv-ovpsim-plus/bin/Linux64:$PATH
|
|
#export LD_LIBRARY_PATH=$RISCV/imperas_riscv_tests/riscv-ovpsim-plus/bin/Linux64:$LD_LIBRARY_PATH # remove if no imperas
|