2016-11-08 18:57:35 +01:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
"""
|
|
|
|
|
This type of setup script should be placed in the setup_scripts directory in
|
|
|
|
|
the trunk
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
import sys
|
|
|
|
|
import os
|
|
|
|
|
|
|
|
|
|
TECHNOLOGY = "freepdk45"
|
|
|
|
|
LOCAL = "{0}/..".format(os.path.dirname(__file__))
|
|
|
|
|
|
|
|
|
|
##########################
|
2016-11-09 18:32:36 +01:00
|
|
|
# FreePDK45 paths
|
|
|
|
|
|
2016-11-09 20:26:14 +01:00
|
|
|
PDK_DIR=os.path.abspath(os.environ.get("FREEPDK45"))
|
2016-11-08 18:57:35 +01:00
|
|
|
os.environ["PDK_DIR"] = PDK_DIR
|
|
|
|
|
os.environ["SYSTEM_CDS_LIB_DIR"] = "{0}/ncsu_basekit/cdssetup".format(PDK_DIR)
|
|
|
|
|
os.environ["CDS_SITE"] = PDK_DIR
|
|
|
|
|
os.environ["MGC_TMPDIR"] = "/tmp"
|
|
|
|
|
|
|
|
|
|
###########################
|
2016-11-09 18:32:36 +01:00
|
|
|
#OpenRAM Paths
|
|
|
|
|
|
|
|
|
|
DRCLVS_HOME= "$FREEPDK45/ncsu_basekit/techfile/calibre"
|
2016-11-08 18:57:35 +01:00
|
|
|
os.environ["DRCLVS_HOME"] = DRCLVS_HOME
|
|
|
|
|
|
|
|
|
|
##########################
|
|
|
|
|
#Paths required for OPENRAM to function
|
2016-11-09 18:32:36 +01:00
|
|
|
|
2016-11-08 18:57:35 +01:00
|
|
|
sys.path.append("{0}/{1}".format(LOCAL,TECHNOLOGY))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|