Improve error to setup model dir path. Use it to override FreePDK45 too.

This commit is contained in:
Matt Guthaus 2018-02-05 15:12:12 -08:00
parent 85f4438280
commit 4505c0f74e
2 changed files with 5 additions and 5 deletions

View File

@ -275,7 +275,7 @@ def write_include(stim_file, models):
if os.path.isfile(item):
stim_file.write(".include \"{0}\"\n\n".format(item))
else:
debug.error("Could not find spice model: {0}".format(item))
debug.error("Could not find spice model: {0}\nSet SPICE_MODEL_DIR to over-ride path.\n".format(item))
def write_supply(stim_file):

View File

@ -28,10 +28,10 @@ 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:
os.environ["SPICE_MODEL_DIR"] = PDK_DIR+"/ncsu_basekit/models/hspice/tran_models/models_nom"
try:
SPICE_MODEL_DIR = os.path.abspath(os.environ.get("SPICE_MODEL_DIR"))
except:
os.environ["SPICE_MODEL_DIR"] = PDK_DIR+"/ncsu_basekit/models/hspice/tran_models/models_nom"
##########################
#Paths required for OPENRAM to function