mirror of https://github.com/VLSIDA/OpenRAM.git
45 lines
1.0 KiB
Python
45 lines
1.0 KiB
Python
#!/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__))
|
|
|
|
##########################
|
|
# FreePDK45 paths
|
|
|
|
PDK_DIR=os.path.abspath(os.environ.get("FREEPDK45"))
|
|
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"
|
|
|
|
###########################
|
|
#OpenRAM Paths
|
|
|
|
try:
|
|
DRCLVS_HOME = os.path.abspath(os.environ.get("DRCLVS_HOME"))
|
|
except:
|
|
DRCLVS_HOME= PDK_DIR+"/ncsu_basekit/techfile/calibre"
|
|
os.environ["DRCLVS_HOME"] = DRCLVS_HOME
|
|
|
|
# try:
|
|
# SPICE_MODEL_DIR = os.path.abspath(os.environ.get("SPICE_MODEL_DIR"))
|
|
# except:
|
|
# Always use the one in the PDK dir for FreePDK45
|
|
os.environ["SPICE_MODEL_DIR"] = PDK_DIR+"/ncsu_basekit/models/hspice/tran_models"
|
|
|
|
##########################
|
|
#Paths required for OPENRAM to function
|
|
|
|
sys.path.append("{0}/{1}".format(LOCAL,TECHNOLOGY))
|
|
|
|
|
|
|
|
|