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 = "scn3me_subm"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##########################
|
2016-11-09 18:32:36 +01:00
|
|
|
# CDK paths
|
2016-11-08 18:57:35 +01:00
|
|
|
|
2016-11-09 18:32:36 +01:00
|
|
|
# os.environ["CDK_DIR"] = CDK_DIR #PDK path
|
|
|
|
|
# os.environ["SYSTEM_CDS_LIB_DIR"] = "{0}/cdssetup".format(CDK_DIR)
|
|
|
|
|
# os.environ["CDS_SITE"] = CDK_DIR
|
|
|
|
|
os.environ["MGC_TMPDIR"] = "/tmp"
|
2016-11-08 18:57:35 +01:00
|
|
|
|
|
|
|
|
###########################
|
2016-11-09 18:32:36 +01:00
|
|
|
# OpenRAM Paths
|
2016-11-09 20:26:14 +01:00
|
|
|
OPENRAM_TECH=os.path.abspath(os.environ.get("OPENRAM_TECH"))
|
|
|
|
|
DRCLVS_HOME=OPENRAM_TECH+"/scn3me_subm/tech"
|
2016-11-09 18:32:36 +01:00
|
|
|
os.environ["DRCLVS_HOME"] = DRCLVS_HOME
|
2016-11-09 22:29:33 +01:00
|
|
|
os.environ["SPICE_MODEL_DIR"] = "/mada/software/techfiles/scn3me_subm"
|
2016-11-08 18:57:35 +01:00
|
|
|
|
|
|
|
|
##########################
|
2016-11-09 18:32:36 +01:00
|
|
|
# Paths required for OPENRAM to function
|
|
|
|
|
|
|
|
|
|
LOCAL = "{0}/..".format(os.path.dirname(__file__))
|
2016-11-08 18:57:35 +01:00
|
|
|
sys.path.append("{0}/{1}".format(LOCAL,TECHNOLOGY))
|