mirror of https://github.com/VLSIDA/OpenRAM.git
35 lines
870 B
Python
35 lines
870 B
Python
# See LICENSE for licensing information.
|
|
#
|
|
# Copyright (c) 2016-2023 Regents of the University of California and The Board
|
|
# of Regents for the Oklahoma Agricultural and Mechanical College
|
|
# (acting for and on behalf of Oklahoma State University)
|
|
# All rights reserved.
|
|
#
|
|
#!/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"
|
|
|
|
|
|
###########################
|
|
# OpenRAM Paths
|
|
|
|
try:
|
|
DRCLVS_HOME = os.path.abspath(os.environ.get("DRCLVS_HOME"))
|
|
except:
|
|
tech_paths = os.environ.get("OPENRAM_TECH").split(':')
|
|
for d in tech_paths:
|
|
if os.path.isdir(d+"/freepdk45"):
|
|
DRCLVS_HOME= d+"/freepdk45/tech"
|
|
break
|
|
|
|
os.environ["DRCLVS_HOME"] = DRCLVS_HOME
|
|
|
|
os.environ["SPICE_MODEL_DIR"] = "{0}/models".format(os.path.dirname(__file__))
|
|
|