2021-12-05 04:25:33 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# wally-setup.sh
|
|
|
|
# David_Harris@hmc.edu and kekim@hmc.edu 1 December 2021
|
|
|
|
# Set up tools for riscv-wally
|
|
|
|
|
2022-01-24 23:21:09 +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
|
|
|
|
|
|
|
|
# Tools
|
2021-12-21 05:08:34 +00:00
|
|
|
# GCCZ
|
2022-01-07 04:07:04 +00:00
|
|
|
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
|
2021-12-21 05:08:34 +00:00
|
|
|
# Spike
|
|
|
|
export LD_LIBRARY_PATH=$RISCV/lib:$LD_LIBRARY_PATH
|
2022-01-07 04:07:04 +00:00
|
|
|
export PATH=$PATH:$RISCV/bin
|
2021-12-21 05:08:34 +00:00
|
|
|
# exe2memfile
|
2021-12-05 04:25:33 +00:00
|
|
|
export PATH=~/riscv-wally/bin:$PATH # exe2memfile; change this if riscv-wally isn't at your home directory
|
2021-12-21 05:08:34 +00:00
|
|
|
# Verilator
|
2021-12-05 04:25:33 +00:00
|
|
|
export PATH=/usr/local/bin/verilator:$PATH # Change this for your path to Verilator
|
2021-12-21 05:08:34 +00:00
|
|
|
# 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
|
2022-01-27 14:37:58 +00:00
|
|
|
export PATH=/cad/synopsys/SYN/bin:$PATH # Change this for your path to Design Compiler
|
|
|
|
# *** license
|
2021-12-05 04:25:33 +00:00
|
|
|
|
2022-01-04 19:47:41 +00:00
|
|
|
# Imperas; *** remove if not using; *** fix paths
|
|
|
|
export PATH=$RISCV/imperas-riscv-tests/riscv-ovpsim-plus/bin/Linux64:$PATH # *** maybe take this out based on Imperas
|
|
|
|
export LD_LIBRARY_PATH=$RISCV/imperas_riscv_tests/riscv-ovpsim-plus/bin/Linux64:$LD_LIBRARY_PATH # remove if no imperas
|