Improve output format. Rename option to be more sensible.

This commit is contained in:
mguthaus
2017-11-22 15:57:29 -08:00
parent cf66c83fe4
commit 09ca8ba17d
15 changed files with 58 additions and 36 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ def relative_compare(value1,value2,error_tolerance=0.001):
def parse_output(filename, key):
"""Parses a hspice output.lis file for a key value"""
if OPTS.spice_version == "xa" :
if OPTS.spice_name == "xa" :
# customsim has a different output file name
full_filename="{0}xa.meas".format(OPTS.openram_temp)
else:
@@ -26,7 +26,7 @@ def parse_output(filename, key):
val = re.search(r"{0}\s*=\s*(-?\d+.?\d*[e]?[-+]?[0-9]*\S*)\s+.*".format(key), contents)
if val != None:
debug.info(3, "Key = " + key + " Val = " + val.group(1))
debug.info(4, "Key = " + key + " Val = " + val.group(1))
return val.group(1)
else:
return "Failed"