# # Mentor Graphics general environment variable file for NWU ECE # Modify at your own risk. # Todd Haverkos 1/11/2000 # # $Log: mgc.env,v $ # Revision 1.6 2000/01/17 20:52:05 tdh # Added instruction to log off and log back in after modifying init # files. # # Revision 1.5 2000/01/13 17:09:47 tdh # removed ECE_C97LIB softpath # # Revision 1.4 2000/01/13 17:08:22 tdh # Initial release for ECE391 VLSI Systems Design. # MP0 has been tested for the the first hundred steps with this setup # under Solaris. Key steps throughout the rest of the tutorial have # also been tested. # # Revision 1.3 2000/01/12 20:24:45 tdh # Added tests for existence of old Mentor settings # # Revision 1.2 2000/01/12 03:51:15 tdh # Band aid ECE_C97LIB variable reinstated until Chris and I fix the new # ECE_C91LIB into a usable state. # # Revision 1.1 2000/01/11 22:52:58 tdh # Initial revision # First, protect against folks leaving mentor junk in the .cshrc* files # Your TA should have instructed you to strip out such things # if ( "$?MGC_HOME" || "$?MGC_LOCATION_MAP" || "$?AMPLE_PATH" || \ "$?MENTOR_LIB" || "$?SCMOS_IC_TECH" || "$?MGLS_HOME" || \ "$?MGLS_LICENSE_FILE" || "$?MGC_TMPDIR" || "$?MGC_WD" || \ "$?MGC_GENLIB") then echo "" echo "------------------------------------------------------------------------" echo " An error has occured that will prevent you from continuing." echo " One or more MGC environment variable(s) is already set." echo " Please clean up your environment files .cshrc and cshrc.* " echo " and comment out any references to Mentor Graphics." echo " You may need to log off and log back in after you make these changes." echo " No references to Mentor Graphics should be included in your init files." echo " You should not attempt to run any tools until this is resolved." echo "------------------------------------------------------------------------" echo "" exit 1 endif # This test will return a 0 to the status variable if /vol/MGC is referenced test `echo $PATH | grep "/vol/MGC" ` if ( $status == "0" ) then echo "------------------------------------------------------------------------" echo " The PATH variable contains a reference to another Mentor Graphics" echo " directory. " echo " Please clean up your environment files .cshrc and cshrc.* " echo " and comment out any references to Mentor Graphics." echo " No references to Mentor Graphics should be included in your init files." echo " You should not attempt to run any tools until this is resolved." echo " You may need to log off and log back in after you make these changes." echo "------------------------------------------------------------------------" echo "" endif # AMPLE is the Mentor scripting language. You can create your own # scripts and place them in your own userware directory, pointed to by # this AMPLE_PATH variable setenv AMPLE_PATH /vol/MGC/ece_lib/mgc_hep/userware:$HOME/MGC/userware # The working directory should be set by the tool # with help from a $HOME definition in $HOME/mgc/mgc_location_map. # Unfortunately, the tool uses the unix pwd command to set this, # which leads to machine-dependent paths like /a/alg5/blah/user/... # we really want /homes/USERID/ # Optional alias you can use to set the working directory # We want MGC_WD to resolve to /homes/USER rather than absolute # /a/machinename/home/USER paths which are not portable alias swd 'setenv MGC_WD ${PWD}' ## The default Mentor Graphics window size is 640x480, which is kinda small setenv SEPARATE 1 setenv SEPARATE_X2 1100 setenv SEPARATE_Y2 800 # ModelTech setenv PATH ${PATH}:/vol/modeltech/bin # Legacy ModelTech Installation #setenv PATH ${PATH}:/net/fs3/files7/vol-modeltech/bin # Mentor Requires the following setenv MGC_HOME /vol/mentor/MGC_HOME-2004.ss5 # 2004 release of MGC tools #setenv MGC_GENLIB ${MGC_HOME}/../gen_lib #setenv MGC_MISCLIB ${MGC_HOME}/../misc_lib #setenv MGC_PASSIVELIB ${MGC_HOME}/passive_lib # Mentor tree includes some GNU utilities, so add path at end of # existing This will prove troublesome, however, if references to # other Mentor trees exist in the PATH. setenv PATH ${PATH}:${MGC_HOME}/bin # The Mentor License manager needs these setenv MGLS_HOME $MGC_HOME/pkgs/mgls setenv MGLS_LICENSE_FILE $MGC_HOME/etc/cust/mgls/mgc.licenses setenv MGC_PLOT_DEFAULT_PRINTER mgc_laser1 # print to mgc_laser1 setenv MGC_TMPDIR /tmp # local temporary directory setenv MGC_WD $HOME/MGC # MGC default working directory # C91/391 specific settings, referenced in tutorials alias ece391 'cd $HOME/MGC/ece391; setenv MGC_WD ${PWD}' setenv ECE_391LIB /vol/MGC_LIB/c91 setenv ECE_391 $HOME/MGC/ece391 # not referenced in tutorial, but maybe useful # This was set in past semesters for MP0, but it's deprecated due to a # reorganization of the NWU ECE mentor libraries. Do not set this # variable, as I've added essential goodies on how to fix broken # references. See step 42 of MP0. unsetenv ECE_C97LIB # old bandaids from debugging # setenv ECE_C97LIB /vol/MGC/ece_lib/ece_c97lib # setenv MGC_LOCATION_MAP /homes/tdh/MGC/mgc_location_map.tmp # echo $USER | mail tdh@ece.nwu.edu