mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Update cshell setup scripts
This commit is contained in:
parent
f7c688c44f
commit
a0aed23208
@ -401,5 +401,6 @@ if [ ! -e "${RISCV}"/site-setup.sh ]; then
|
|||||||
wget https://raw.githubusercontent.com/openhwgroup/cvw/main/site-setup.csh
|
wget https://raw.githubusercontent.com/openhwgroup/cvw/main/site-setup.csh
|
||||||
if [ "$FAMILY" = rhel ]; then
|
if [ "$FAMILY" = rhel ]; then
|
||||||
echo "source /opt/rh/gcc-toolset-13/enable" >> site-setup.sh
|
echo "source /opt/rh/gcc-toolset-13/enable" >> site-setup.sh
|
||||||
|
echo "source /opt/rh/gcc-toolset-13/enable" >> site-setup.csh
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
15
setup.csh
15
setup.csh
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/csh
|
||||||
|
|
||||||
# setup.csh
|
# setup.csh
|
||||||
# james.stine@okstate.edu 18 February 2023
|
# james.stine@okstate.edu 18 February 2023
|
||||||
@ -11,7 +11,17 @@ alias extend 'if (-d \!:2) if ("$\!:1" \!~ *"\!:2"*) setenv \!:1 ${\!:1}:\!:2;ec
|
|||||||
alias prepend 'if (-d \!:2) if ("$\!:1" \!~ *"\!:2"*) setenv \!:1 "\!:2":${\!:1};echo Added \!:2 to \!:1'
|
alias prepend 'if (-d \!:2) if ("$\!:1" \!~ *"\!:2"*) setenv \!:1 "\!:2":${\!:1};echo Added \!:2 to \!:1'
|
||||||
|
|
||||||
# Path to RISC-V Tools
|
# Path to RISC-V Tools
|
||||||
setenv RISCV /opt/riscv # change this if you installed the tools in a different location
|
if ( -e /opt/riscv ) then
|
||||||
|
setenv RISCV /opt/riscv
|
||||||
|
else if ( -e ~/riscv ) then
|
||||||
|
setenv RISCV ~/riscv
|
||||||
|
else
|
||||||
|
# set the $RISCV directory here and remove the subsequent two lines
|
||||||
|
# setenv RISCV
|
||||||
|
echo "\$RISCV directory not found. Checked /opt/riscv and ~/riscv. Edit setup.sh to point to your custom \$RISCV directory."
|
||||||
|
exit 1;
|
||||||
|
endif
|
||||||
|
echo \$RISCV set to "${RISCV}"
|
||||||
|
|
||||||
# Path to Wally repository
|
# Path to Wally repository
|
||||||
setenv WALLY $PWD
|
setenv WALLY $PWD
|
||||||
@ -19,6 +29,7 @@ echo '$WALLY set to ' ${WALLY}
|
|||||||
# utility functions in Wally repository
|
# utility functions in Wally repository
|
||||||
extend PATH $WALLY/bin
|
extend PATH $WALLY/bin
|
||||||
|
|
||||||
|
# load site licenses and tool locations
|
||||||
source $RISCV/site-setup.csh
|
source $RISCV/site-setup.csh
|
||||||
|
|
||||||
echo "setup done"
|
echo "setup done"
|
||||||
|
@ -8,24 +8,30 @@ setenv MGLS_LICENSE_FILE 27002@zircon.eng.hmc.edu # Change this
|
|||||||
setenv SNPSLMD_LICENSE_FILE 27020@zircon.eng.hmc.edu # Change this to your Synopsys 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 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
|
setenv SNPSPATH /cad/synopsys/SYN/bin # Change this for your path to Design Compiler
|
||||||
|
setenv VCSPATH /cad/synopsys/vcs/U-2023.03-SP2-4/bin # Change this for your path to Synopsys VCS
|
||||||
|
|
||||||
# Tools
|
# Tools
|
||||||
# Questa and Synopsys
|
# Questa and Synopsys
|
||||||
extend PATH $QUESTAPATH
|
extend PATH $QUESTAPATH
|
||||||
extend PATH $SNPSPATH
|
extend PATH $SNPSPATH
|
||||||
|
extend PATH $VCSPATH
|
||||||
|
|
||||||
# GCC
|
# GCC
|
||||||
prepend LD_LIBRARY_PATH $RISCV/riscv-gnu-toolchain/lib
|
extend LD_LIBRARY_PATH $RISCV/riscv64-unknown-elf/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
|
# RISC-V Tools
|
||||||
extend LD_LIBRARY_PATH $RISCV/lib
|
extend LD_LIBRARY_PATH $RISCV/lib
|
||||||
|
extend LD_LIBRARY_PATH $RISCV/lib64
|
||||||
extend PATH $RISCV/bin
|
extend PATH $RISCV/bin
|
||||||
|
|
||||||
# Verilator
|
# Activate riscv-python Virtual Environment
|
||||||
extend PATH /usr/local/bin/verilator # Change this for your path to Verilator
|
source "$RISCV"/riscv-python/bin/activate
|
||||||
|
|
||||||
|
# environment variables needed for RISCV-DV
|
||||||
|
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
|
||||||
|
setenv SPIKE_PATH $RISCV/bin # Change this for your path to riscv-isa-sim (spike)
|
||||||
|
|
||||||
# Verilator needs a larger stack to simulate CORE-V Wally
|
# Verilator needs a larger stack to simulate CORE-V Wally
|
||||||
limit stacksize unlimited
|
limit stacksize unlimited
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user