diff --git a/setup.csh b/setup.csh index 82728f57c..62a99f376 100755 --- a/setup.csh +++ b/setup.csh @@ -5,48 +5,20 @@ echo "Executing Wally setup.csh" -# Path to Wally repository -setenv WALLY $PWD -echo '$WALLY set to ' ${WALLY} # Extend alias which makes extending PATH much easier. alias extend 'if (-d \!:2) if ("$\!:1" \!~ *"\!:2"*) setenv \!:1 ${\!:1}:\!:2;echo Added \!:2 to \!:1' alias prepend 'if (-d \!:2) if ("$\!:1" \!~ *"\!:2"*) setenv \!:1 "\!:2":${\!:1};echo Added \!:2 to \!:1' -# License servers and commercial CAD tool paths -# Must edit these based on your local environment. Ask your sysadmin. -setenv MGLS_LICENSE_FILE 27002@zircon.eng.hmc.edu # Change this to your Siemens license server -setenv SNPSLMD_LICENSE_FILE 27020@zircon.eng.hmc.edu # Change this to your Synopsys license server -setenv QUESTAPATH /cad/mentor/questa_sim-2022.4_2/questasim/bin # Change this for your path to Questa -setenv SNPSPATH /cad/synopsys/SYN/bin # Change this for your path to Design Compiler - # Path to RISC-V Tools setenv RISCV /opt/riscv # change this if you installed the tools in a different location -# Tools -# Questa and Synopsys -extend PATH $QUESTAPATH -extend PATH $SNPSPATH -# GCC -prepend LD_LIBRARY_PATH $RISCV/riscv-gnu-toolchain/lib -prepend LD_LIBRARY_PATH $RISCV/riscv-gnu-toolchain/riscv64-unknown-elf/lib -extend PATH $RISCV/riscv-gnu-toolchain/bin # GCC tools -extend PATH $RISCV/riscv-gnu-toolchain/riscv64-unknown-elf/bin # GCC tools -# Spike -extend LD_LIBRARY_PATH $RISCV/lib -extend PATH $RISCV/bin +# Path to Wally repository +setenv WALLY $PWD +echo '$WALLY set to ' ${WALLY} # utility functions in Wally repository extend PATH $WALLY/bin -# Verilator -extend PATH /usr/local/bin/verilator # Change this for your path to Verilator -# ModelSim/Questa (vsim) -# Note: 2022.1 complains on cache/sram1p1r1w about StoredData cannot be driven by multiple always_ff blocks. Ues 2021.2 for now -# Imperas; put this in if you are using it -#set path = ($RISCV/imperas-riscv-tests/riscv-ovpsim-plus/bin/Linux64 $path) -#setenv LD_LIBRARY_PATH $RISCV/imperas_riscv_tests/riscv-ovpsim-plus/bin/Linux64:$LD_LIBRARY_PATH # remove if no imperas - -# Verilator needs a larger stack to simulate CORE-V Wally -limit stacksize unlimited +source $RISCV/site-setup.csh echo "setup done" diff --git a/site-setup.csh b/site-setup.csh new file mode 100644 index 000000000..9c234b5d0 --- /dev/null +++ b/site-setup.csh @@ -0,0 +1,46 @@ +#!/bin/csh + +# site-setup.csh + +# License servers and commercial CAD tool paths +# Must edit these based on your local environment. Ask your sysadmin. +setenv MGLS_LICENSE_FILE 27002@zircon.eng.hmc.edu # Change this to your Siemens license server +setenv SNPSLMD_LICENSE_FILE 27020@zircon.eng.hmc.edu # Change this to your Synopsys license server +setenv QUESTAPATH /cad/mentor/questa_sim-2022.4_2/questasim/bin # Change this for your path to Questa +setenv SNPSPATH /cad/synopsys/SYN/bin # Change this for your path to Design Compiler + +# Tools +# Questa and Synopsys +extend PATH $QUESTAPATH +extend PATH $SNPSPATH + +# GCC +prepend LD_LIBRARY_PATH $RISCV/riscv-gnu-toolchain/lib +prepend LD_LIBRARY_PATH $RISCV/riscv-gnu-toolchain/riscv64-unknown-elf/lib +extend PATH $RISCV/riscv-gnu-toolchain/bin # GCC tools +extend PATH $RISCV/riscv-gnu-toolchain/riscv64-unknown-elf/bin # GCC tools + +# Spike +extend LD_LIBRARY_PATH $RISCV/lib +extend PATH $RISCV/bin + +# Verilator +extend PATH /usr/local/bin/verilator # Change this for your path to Verilator +# Verilator needs a larger stack to simulate CORE-V Wally +limit stacksize unlimited + +# Imperas; put this in if you are using it +#set path = ($RISCV/imperas-riscv-tests/riscv-ovpsim-plus/bin/Linux64 $path) +#setenv LD_LIBRARY_PATH $RISCV/imperas_riscv_tests/riscv-ovpsim-plus/bin/Linux64:$LD_LIBRARY_PATH # remove if no imperas + +setenv IDV $RISCV/ImperasDV-OpenHW +if ($?IDV) then +# echo "Imperas exists" + setenv IMPERAS_HOME $IDV/Imperas + setenv IMPERAS_PERSONALITY CPUMAN_DV_ASYNC + setenv ROOTDIR=~/ + setenv ${IMPERAS_HOME}/bin/setup.sh + setupImperas ${IMPERAS_HOME} + extend PATH $IDV/scripts/cvw +endfi +