Add customsim (xa) as optional simulator. Fix regex to support scientific notation. Go through list of preferred simulators in order. Always abort if command-line simulator not found.

This commit is contained in:
Matt Guthaus
2017-11-12 10:42:41 -08:00
parent 054e4d3c28
commit 8071dcc0f3
8 changed files with 28 additions and 44 deletions
+3 -1
View File
@@ -13,8 +13,10 @@ 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" :
# customsim has a different output file name
full_filename="{0}xa.meas".format(OPTS.openram_temp)
else :
else:
# ngspice/hspice using a .lis file
full_filename="{0}{1}.lis".format(OPTS.openram_temp, filename)
try: