Fail simulation tests if correct spice is not found. Correctly load spice characterizer.

This commit is contained in:
Matt Guthaus
2018-01-26 13:00:25 -08:00
parent 50107636a0
commit 369aa85cd2
9 changed files with 188 additions and 14 deletions
+6 -6
View File
@@ -8,22 +8,22 @@ import setup_hold
debug.info(2,"Initializing characterizer...")
spice_exe = ""
OPTS.spice_exe = ""
if not OPTS.analytical_delay:
if OPTS.spice_name != "":
spice_exe=find_exe(OPTS.spice_name)
if spice_exe=="":
OPTS.spice_exe=find_exe(OPTS.spice_name)
if OPTS.spice_exe=="":
debug.error("{0} not found. Unable to perform characterization.".format(OPTS.spice_name),1)
else:
(choice,spice_exe) = get_tool("spice",["xa", "hspice", "ngspice", "ngspice.exe"])
OPTS.spice_name = choice
(OPTS.spice_name,OPTS.spice_exe) = get_tool("spice",["xa", "hspice", "ngspice", "ngspice.exe"])
# set the input dir for spice files if using ngspice
if OPTS.spice_name == "ngspice":
os.environ["NGSPICE_INPUT_DIR"] = "{0}".format(OPTS.openram_temp)
if spice_exe == "":
if OPTS.spice_exe == "":
debug.error("No recognizable spice version found. Unable to perform characterization.",1)