mirror of https://github.com/VLSIDA/OpenRAM.git
Improve error to setup model dir path. Use it to override FreePDK45 too.
This commit is contained in:
parent
85f4438280
commit
4505c0f74e
|
|
@ -275,7 +275,7 @@ def write_include(stim_file, models):
|
||||||
if os.path.isfile(item):
|
if os.path.isfile(item):
|
||||||
stim_file.write(".include \"{0}\"\n\n".format(item))
|
stim_file.write(".include \"{0}\"\n\n".format(item))
|
||||||
else:
|
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):
|
def write_supply(stim_file):
|
||||||
|
|
|
||||||
|
|
@ -28,10 +28,10 @@ except:
|
||||||
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
|
||||||
|
|
||||||
# try:
|
try:
|
||||||
# SPICE_MODEL_DIR = os.path.abspath(os.environ.get("SPICE_MODEL_DIR"))
|
SPICE_MODEL_DIR = os.path.abspath(os.environ.get("SPICE_MODEL_DIR"))
|
||||||
# except:
|
except:
|
||||||
os.environ["SPICE_MODEL_DIR"] = PDK_DIR+"/ncsu_basekit/models/hspice/tran_models/models_nom"
|
os.environ["SPICE_MODEL_DIR"] = PDK_DIR+"/ncsu_basekit/models/hspice/tran_models/models_nom"
|
||||||
|
|
||||||
##########################
|
##########################
|
||||||
#Paths required for OPENRAM to function
|
#Paths required for OPENRAM to function
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue