#!/bin/tcsh ############################################################################### # # This script sets thing up to run the simv simulator that was # compiled by Synopsys VCS. # Erik Brunvand, University of Utah ############################################################################### setenv CADPUB /uusoc/facility/cad_common/ setenv CADSETUPS ${CADPUB}/local/setups/F08 #store the argument for hdl source list setenv SOURCELIST $1 #if arguments not specified prompt for proper syntax if ("$SOURCELIST" == "") then echo "sim-simv - Runs the executable simulator" echo " compiled by vcs, but with the appropriate information" echo " set in the shell for that executable to run." echo " " echo " Unless you've overridden the name, the executable will" echo " be named 'simv' so the command is usually called with: " echo "sim-simv simv" echo " " exit endif #setup to run synopsys source ${CADSETUPS}/setup-synopsys # Fix a couple things that vcs needs... unsetenv LD_LIBRARY_PATH echo OS is set to ${OS} switch ($OS) case suse*: setenv VCS_ARCH_OVERRIDE suse32 echo "VCS_ARCH_OVERRIDE set to suse32" breaksw case linux: setenv VCS_ARCH_OVERRIDE linux echo "VCS_ARCH_OVERRIDE set to linux" breaksw case amd64: setenv VCS_ARCH_OVERRIDE amd64 echo "VCS_ARCH_OVERRIDE set to amd64" breaksw endsw # Note the the argument of the script *is* the program you want # to run (i.e. simv), but in an environment that knows about # Synopsys setup stuff (thus this script) $argv