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
|
|
|
#
|
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
|
2022-11-27 22:01:20 +01:00
|
|
|
from openram import debug
|
2016-11-08 18:57:35 +01:00
|
|
|
|
|
|
|
|
TECHNOLOGY = "freepdk45"
|
|
|
|
|
|
|
|
|
|
##########################
|
2016-11-09 18:32:36 +01:00
|
|
|
# FreePDK45 paths
|
|
|
|
|
|
2022-02-03 19:19:28 +01:00
|
|
|
PDK_PATH=os.environ.get("FREEPDK45")
|
|
|
|
|
if PDK_PATH==None:
|
|
|
|
|
debug.error("Must define FREEPDK45 to point to PDK.", -1)
|
2023-01-31 23:39:44 +01:00
|
|
|
PDK_DIR=os.path.abspath(os.path.expanduser(PDK_PATH))
|
2020-11-03 15:29:17 +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-08 18:57:35 +01:00
|
|
|
|
|
|
|
|
###########################
|
2016-11-09 18:32:36 +01:00
|
|
|
#OpenRAM Paths
|
|
|
|
|
|
2018-01-20 01:38:19 +01:00
|
|
|
try:
|
|
|
|
|
DRCLVS_HOME = os.path.abspath(os.environ.get("DRCLVS_HOME"))
|
|
|
|
|
except:
|
|
|
|
|
DRCLVS_HOME= PDK_DIR+"/ncsu_basekit/techfile/calibre"
|
2016-11-10 20:08:48 +01:00
|
|
|
os.environ["DRCLVS_HOME"] = DRCLVS_HOME
|
|
|
|
|
|
2018-02-07 19:05:21 +01:00
|
|
|
# try:
|
|
|
|
|
# SPICE_MODEL_DIR = os.path.abspath(os.environ.get("SPICE_MODEL_DIR"))
|
|
|
|
|
# except:
|
|
|
|
|
# Always use the one in the PDK dir for FreePDK45
|
2018-02-12 18:33:23 +01:00
|
|
|
os.environ["SPICE_MODEL_DIR"] = PDK_DIR+"/ncsu_basekit/models/hspice/tran_models"
|