#!/bin/ksh # Script name: mentor. Starts up Mentor Design Manager. # Updated for 2005 VLSI project. Mentor EN2002, ICFlow 2003, Modelsim 5.3a, Mietec 2.4u # This version is for xwin32 X-client. # Version for personal (non-shared) use. # Determine a home directory for Mentor work MHOME echo Starting Mentor EN2002 with ICFlow 2003 in personal workspace .. # The above determines whether the user's Mentor group has been set. # First determine umask on entry OLDUMASK=`umask` umask 077 # Now set umask for session to 077 echo Setting up for PC XWin32/eXceed, with xterm ... xset -r 68 -r 69 -r 70 -r 71 -r 72 -r 73 -r 74 -r 75 -r 76 -r 77 -r 78 -r 79 xmodmap -e "keycode 22 = BackSpace" # This bit of script examines the data returned by xset q # to determine whether the fonts for Mentor have already been # loaded (with tw9xx and some PC X clients this is done automatically) # If not they are loaded from tcp/tw900:7100 # Note that this is not coded in a very defensive way. # Some systems load the fonts as: tcp/tw900.eng.cam.ac.uk:7100 # Others use tcp/tw9:7100, so a definitive test is a bit messy. gg=`xset q | fgrep 'tw9' | awk '{printf index($0,"tw9")}'` mentorfont=tcp/tw400.eng.cam.ac.uk:7100 if [ ${gg:-NOTW9} = "NOTW9" ] then echo Loading Mentor fonts from tw900 ... xset fp+ ${mentorfont} else echo Mentor fonts already loaded ... fi MGC_HOME=/export/mentor/mgc2002.2 LM_LICENSE_FILE=/export/mentor/etc/mgc.licenses MHOME=${HOME} # The following line specifies the global location map # MGC_LOCATION_MAP=$MGC_HOME/etc/mgc_location_map # echo Using global mgc location map in $MGC_HOME/etc .. # Uncomment the following lines to use your local location map MGC_LOCATION_MAP=$MHOME/bin/mgc_location_map echo Using local mgc location map $MGC_LOCATION_MAP # MGC_WD=$MHOME/cbt CBT_WD=$MHOME/cbt MTI_HOME=/export/modeltech5.3a MODEL_TECH=/export/modeltech5.3a/modeltech MODELSIM=$CBT_WD/modelsim.ini MGC_USE_FALCON_PRINT=default MGC_PLOT_SYS5_LP_PATH=/usr/bin/LP MGC_PLOT_OPTIONS=/export/mgcC4/spool MGC_PLOT_USER_BANNER=$MUSER MGC_TMPDIR=$MHOME/temp MIETEC_LIB=/export/europractice/mietec_lib_v1.0 AMPLE_PATH=/export/europractice/mietec_lib_v1.0:/export/europractice/spice_lib_v1.0 ICSPOOLPATH=$MHOME/temp PATH=/opt/Acrobat4.0/bin:$PATH:$MGC_HOME/bin:/export/modeltech5.3a/modeltech/bin export CBT_WD MIETEC_LIB MTI_HOME MODEL_TECH MODELSIM MGC_HOME LM_LICENSE_FILE MGC_LOCATION_MAP MGC_WD AMPLE_PATH MGC_USE_FALCON_PRINT ICSPOOLPATH PATH MGC_PLOT_OPTIONS MGC_PLOT_SYS5_LP_PATH MGC_TMPDIR MGC_PLOT_USER_BANNER MHOME # export MGC_PLOT_SPOOL_DEBUG_LEVEL=5 # The following provides an xterm for immediate use with environment as for Mentor. # Comment out the following line if you do not require it. xterm& $MGC_HOME/bin/dmgr # Restore keyboard repeats and mappings xset r xmodmap -e "keycode 22 = Delete" umask ${OLDUMASK} # Restore the original umask from variable