2019-04-26 21:21:50 +02:00
|
|
|
# See LICENSE for licensing information.
|
|
|
|
|
#
|
2023-01-29 07:56:27 +01:00
|
|
|
# Copyright (c) 2016-2023 Regents of the University of California and The Board
|
2019-06-14 17:43:41 +02:00
|
|
|
# of Regents for the Oklahoma Agricultural and Mechanical College
|
|
|
|
|
# (acting for and on behalf of Oklahoma State University)
|
|
|
|
|
# All rights reserved.
|
2019-04-26 21:21:50 +02:00
|
|
|
#
|
2018-09-13 21:53:35 +02: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 = "scn4m_subm"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##########################
|
|
|
|
|
# CDK paths
|
|
|
|
|
|
|
|
|
|
# os.environ["CDK_DIR"] = CDK_DIR #PDK path
|
2020-11-03 15:29:17 +01:00
|
|
|
# os.environ["SYSTEM_CDS_LIB_DIR"] = "{0}/cdssetup".format(CDK_DIR)
|
|
|
|
|
# os.environ["CDS_SITE"] = CDK_DIR
|
|
|
|
|
os.environ["MGC_TMPDIR"] = "/tmp"
|
2018-09-13 21:53:35 +02:00
|
|
|
|
|
|
|
|
###########################
|
|
|
|
|
# OpenRAM Paths
|
|
|
|
|
|
2020-11-03 15:29:17 +01:00
|
|
|
|
2018-09-13 21:53:35 +02:00
|
|
|
try:
|
|
|
|
|
DRCLVS_HOME = os.path.abspath(os.environ.get("DRCLVS_HOME"))
|
|
|
|
|
except:
|
|
|
|
|
OPENRAM_TECH=os.path.abspath(os.environ.get("OPENRAM_TECH"))
|
|
|
|
|
DRCLVS_HOME=OPENRAM_TECH+"/scn4m_subm/tech"
|
|
|
|
|
os.environ["DRCLVS_HOME"] = DRCLVS_HOME
|
|
|
|
|
|
2019-11-29 21:01:33 +01:00
|
|
|
os.environ["SPICE_MODEL_DIR"] = "{0}/models".format(os.path.dirname(__file__))
|
2018-09-13 21:53:35 +02:00
|
|
|
|