mirror of https://github.com/VLSIDA/OpenRAM.git
Fix path to tech and spice models.
This commit is contained in:
parent
c07268d297
commit
5a26be52bd
|
|
@ -35,15 +35,11 @@ TECHNOLOGY = "freepdk45"
|
||||||
try:
|
try:
|
||||||
DRCLVS_HOME = os.path.abspath(os.environ.get("DRCLVS_HOME"))
|
DRCLVS_HOME = os.path.abspath(os.environ.get("DRCLVS_HOME"))
|
||||||
except:
|
except:
|
||||||
tech_paths = os.environ.get("OPENRAM_TECH").split(':')
|
DRCLVS_HOME = "{0}/tech".format(os.path.dirname(__file__))
|
||||||
for d in tech_paths:
|
|
||||||
if os.path.isdir(d+"/freepdk45"):
|
|
||||||
DRCLVS_HOME= d+"/freepdk45/tech"
|
|
||||||
break
|
|
||||||
|
|
||||||
# If you are using Cadence, you should set the DRCLVS_HOME environment variable
|
# If you are using Cadence, you should set the DRCLVS_HOME environment variable
|
||||||
# to the FreePDK45 PDK location:
|
# to the FreePDK45 PDK location:
|
||||||
# DRCLVS_HOME= PDK_DIR+"/ncsu_basekit/techfile/calibre"
|
# DRCLVS_HOME= PDK_DIR+"/ncsu_basekit/techfile/calibre"
|
||||||
os.environ["DRCLVS_HOME"] = DRCLVS_HOME
|
os.environ["DRCLVS_HOME"] = DRCLVS_HOME
|
||||||
|
|
||||||
os.environ["SPICE_MODEL_DIR"] = "{0}/models/hspice/tran_models".format(os.path.dirname(__file__))
|
os.environ["SPICE_MODEL_DIR"] = "{0}/models/tran_models".format(os.path.dirname(__file__))
|
||||||
|
|
|
||||||
|
|
@ -22,11 +22,7 @@ TECHNOLOGY = "scn4m_subm"
|
||||||
try:
|
try:
|
||||||
DRCLVS_HOME = os.path.abspath(os.environ.get("DRCLVS_HOME"))
|
DRCLVS_HOME = os.path.abspath(os.environ.get("DRCLVS_HOME"))
|
||||||
except:
|
except:
|
||||||
tech_paths = os.environ.get("OPENRAM_TECH").split(':')
|
DRCLVS_HOME = "{0}/tech".format(os.path.dirname(__file__))
|
||||||
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["DRCLVS_HOME"] = DRCLVS_HOME
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue