2024-03-12 21:56:52 +00:00
|
|
|
#!/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
|
2024-06-28 22:21:30 +00:00
|
|
|
setenv VCSPATH /cad/synopsys/vcs/U-2023.03-SP2-4/bin # Change this for your path to Synopsys VCS
|
2024-03-12 21:56:52 +00:00
|
|
|
|
|
|
|
# Tools
|
|
|
|
# Questa and Synopsys
|
|
|
|
extend PATH $QUESTAPATH
|
|
|
|
extend PATH $SNPSPATH
|
2024-06-28 22:21:30 +00:00
|
|
|
extend PATH $VCSPATH
|
2024-03-12 21:56:52 +00:00
|
|
|
|
|
|
|
# GCC
|
2024-06-28 22:21:30 +00:00
|
|
|
extend LD_LIBRARY_PATH $RISCV/riscv64-unknown-elf/lib
|
2024-03-12 21:56:52 +00:00
|
|
|
|
2024-06-28 22:21:30 +00:00
|
|
|
# RISC-V Tools
|
2024-03-12 21:56:52 +00:00
|
|
|
extend LD_LIBRARY_PATH $RISCV/lib
|
2024-06-28 22:21:30 +00:00
|
|
|
extend LD_LIBRARY_PATH $RISCV/lib64
|
2024-03-12 21:56:52 +00:00
|
|
|
extend PATH $RISCV/bin
|
|
|
|
|
2024-06-28 22:21:30 +00:00
|
|
|
# Activate riscv-python Virtual Environment
|
2024-06-28 23:13:08 +00:00
|
|
|
source "$RISCV"/riscv-python/bin/activate.csh
|
2024-06-28 22:21:30 +00:00
|
|
|
|
|
|
|
# environment variables needed for RISCV-DV
|
2024-06-28 23:13:08 +00:00
|
|
|
setenv RISCV_GCC `which riscv64-unknown-elf-gcc` # Copy this as it is
|
|
|
|
setenv RISCV_OBJCOPY `which riscv64-unknown-elf-objcopy` # Copy this as it is
|
2024-06-28 22:21:30 +00:00
|
|
|
setenv SPIKE_PATH $RISCV/bin # Change this for your path to riscv-isa-sim (spike)
|
|
|
|
|
2024-03-12 21:56:52 +00:00
|
|
|
# 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
|
2024-03-12 22:06:29 +00:00
|
|
|
setenv ROOTDIR ~/
|
|
|
|
source ${IMPERAS_HOME}/bin/setup.sh
|
2024-03-12 21:56:52 +00:00
|
|
|
setupImperas ${IMPERAS_HOME}
|
|
|
|
extend PATH $IDV/scripts/cvw
|
2024-06-29 03:25:11 +00:00
|
|
|
endif
|
2024-03-12 21:56:52 +00:00
|
|
|
|