2021-12-05 04:25:33 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-03-04 05:00:07 +00:00
|
|
|
# setup.sh
|
2021-12-05 04:25:33 +00:00
|
|
|
# David_Harris@hmc.edu and kekim@hmc.edu 1 December 2021
|
2023-01-23 13:00:11 +00:00
|
|
|
# Set up tools for rvw
|
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
|
|
|
|
2022-01-24 23:21:09 +00:00
|
|
|
echo "Executing Wally setup.sh"
|
2021-12-05 04:25:33 +00:00
|
|
|
|
2022-03-04 05:00:07 +00:00
|
|
|
# Path to Wally repository
|
2022-03-06 21:12:20 +00:00
|
|
|
WALLY=$(dirname ${BASH_SOURCE[0]:-$0})
|
2022-03-04 05:00:07 +00:00
|
|
|
export WALLY=$(cd "$WALLY" && pwd)
|
|
|
|
echo \$WALLY set to ${WALLY}
|
|
|
|
|
2023-01-16 04:27:12 +00:00
|
|
|
# License servers and commercial CAD tool paths
|
|
|
|
# Must edit these based on your local environment. Ask your sysadmin.
|
2023-01-30 19:00:41 +00:00
|
|
|
export MGLS_LICENSE_FILE=27002@zircon.eng.hmc.edu # Change this to your Siemens license server
|
2023-01-20 18:13:20 +00:00
|
|
|
export SNPSLMD_LICENSE_FILE=27020@zircon.eng.hmc.edu # Change this to your Synopsys license server
|
2023-01-30 19:00:41 +00:00
|
|
|
export QUESTAPATH=/cad/mentor/questa_sim-2022.4_2/questasim/bin # Change this for your path to Questa
|
2023-01-23 13:00:11 +00:00
|
|
|
export SNPSPATH=/cad/synopsys/SYN/bin # Change this for your path to Design Compiler
|
2023-01-16 04:27:12 +00:00
|
|
|
|
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
|
2023-01-23 13:00:11 +00:00
|
|
|
# Questa and Synopsys
|
|
|
|
export PATH=$QUESTAPATH:$SNPSPATH:$PATH
|
2022-03-08 23:21:06 +00:00
|
|
|
# GCC
|
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
|
2022-03-04 05:00:07 +00:00
|
|
|
# utility functions in Wally repository
|
|
|
|
export PATH=$WALLY/bin:$PATH
|
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)
|
2022-05-03 15:31:54 +00:00
|
|
|
# Note: 2022.1 complains on cache/sram1p1r1w about StoredData cannot be driven by multiple always_ff blocks. Ues 2021.2 for now
|
2021-12-05 04:25:33 +00:00
|
|
|
|
2022-03-04 05:00:07 +00:00
|
|
|
# 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
|
2022-12-24 06:53:39 +00:00
|
|
|
|
|
|
|
echo "setup done"
|