#!/bin/ksh # Script name: mentor07. Starts up Mentor Design Manager. # Updated for 1998 VLSI project # Use one of the following to turn off autorepeat on the function keys # Alternatively, use xset -r to turn off ALL auto repeats # Use the following lines for HP and Entria terminals # echo Starting Mentor B.1 for HP terminal # xset -r 16 -r 24 -r 32 -r 40 -r 48 -r 56 -r 64 -r 72 -r 80 -r 88 -r 95 -r 103 # Use the following lines for Linux PCs e.g. viglens echo Starting Mentor B.1 for PC Vista Exceed 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/tw900.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 if [ $(hostname) = "tw900" ] then MGC_HOME=/export/mgcC4 LM_LICENSE_FILE=/export/mgcC4/mgc.licenses else MGC_HOME=/export/mgcC4 LM_LICENSE_FILE=/export/mgcC4/mgc.licenses fi echo Setting up for Alcatel Mietec 0.7 micron CMOS # 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=$HOME/bin/mgcC4_location_map echo Using local mgc location map $HOME/bin/mgcC4_location_map # MGC_IC_MEMBUFFER=64 MGC_WD=$HOME/cbtC4 MTI_HOME=/export/mgc_mti_5.2e CBT_WD=$HOME/cbtC4 MGC_PLOT_OPTIONS=/export/mgcC4/spool MGC_TMPDIR=/export/mgcC4/tmp/${USER}_tmp AMPLE_PATH=/export/europractice/EP_MTC_CMOS07_v2.3/userware:/export/europractice/spice_lib_v1.0 ICSPOOLPATH=$MGC_HOME/tmp PATH=$PATH:$MGC_HOME/bin PATH=$PATH:/export/acrobat3/bin MODELSIM=$HOME/cbt/vhdl/modelsim.ini echo $PATH export CBT_WD MODELSIM MGC_HOME LM_LICENSE_FILE MGC_LOCATION_MAP MGC_WD AMPLE_PATH ICSPOOLPATH PATH MGC_PLOT_OPTIONS MGC_TMPDIR MGC_IC_MEMBUFFER MTI_HOME VCOM_EXEC $MGC_HOME/bin/dmgr # Restore keyboard repeats and mappings xset r xmodmap -e "keycode 22 = Delete"