mirror of
https://github.com/VLSIDA/OpenRAM.git
synced 2026-09-05 01:01:33 +02:00
Add better info messages. Convert subprocess to a shell command.
This commit is contained in:
@@ -29,9 +29,9 @@ def parse_output(filename, key):
|
||||
"""Parses a hspice output.lis file for a key value"""
|
||||
full_filename="{0}{1}.lis".format(OPTS.openram_temp, filename)
|
||||
try:
|
||||
f = open(full_fliename, "r")
|
||||
except:
|
||||
debug.error("Unable to read spice output file: {0}".format(full_filename),1)
|
||||
f = open(full_filename, "r")
|
||||
except IOError:
|
||||
debug.error("Unable to open spice output file: {0}".format(full_filename),1)
|
||||
contents = f.read()
|
||||
val = re.search(r"{0}\s*=\s*(-?\d+.?\d*\S*)\s+.*".format(key), contents)
|
||||
if val != None:
|
||||
|
||||
Reference in New Issue
Block a user