#!/bin/ksh # Script name: mentorX. Starts up Mentor Design Manager with OWN location map. # Updated for 2001 VLSI project. Mentor C4, Modelsim 5.2e, Mietec 2.4u # # Determine a home directory for Mentor work MHOME if [ ${MUSER:-NOTW9} = "NOTW9" ] then echo You must first cd to your mentor workspace echo and run:- . mentor_start_env echo before you can start up Mentor ... exit else echo Starting Mentor C.4 in workspace ${MUSER} ... fi # The above needs to determine the user's Mentor group from the # group file MHOME=/usersG/ptiivlsi/${MUSER} # The above needs to be something like /usersG/ptiivlsi/${MUSER} # First determine umask on entry OLDUMASK=`umask` # Now set umask for session to 007 umask 007 echo Setting up for PC XWin32/eXceed ... 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/tw900.eng.cam.ac.uk:7100 if [ ${gg:-NOTW9} = "NOTW9" ] then echo Loading Mentor fonts from twA00 ... xset fp+ ${mentorfont} else echo Mentor fonts already loaded ... fi MGC_HOME=/export/mgcC4 LM_LICENSE_FILE=/export/mgcC4/etc/mgc.licenses MTI_HOME=/export/mgc_mti_5.2e # 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 a local location map # Only do this if you are sure you know what you are doing MGC_LOCATION_MAP=$MHOME/bin/mgc_location_map echo Using local mgc location map $MHOME/bin/mgc_location_map # MGC_WD=$MHOME/cbt CBT_WD=$MHOME/cbt MODELSIM=$CBT_WD/modelsim.ini MGC_PLOT_OPTIONS=${MHOME}/spool MGC_PLOT_USER_BANNER=$MUSER MGC_PLOT_TMPDIR=${MHOME}/temp 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=$PATH:$MGC_HOME/bin:/export/acrobat3/bin export CBT_WD MIETEC_LIB MTI_HOME MODELSIM MGC_HOME LM_LICENSE_FILE MGC_LOCATION_MAP MGC_WD AMPLE_PATH ICSPOOLPATH PATH MGC_PLOT_OPTIONS MGC_PLOT_USER_BANNER MGC_TMPDIR MHOME MGC_PLOT_TMPDIR # export MGC_PLOT_SPOOL_DEBUG_LEVEL=5 # Uncomment the following line if you want an xterm ready for immediate use # 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