Updating log file search for neww log file capitalization
@@ -125,8 +125,8 @@ def post_process(chip, step, index):
warnmatch = re.match(r'^\[WARNING', line)
area = re.search(r'^Design area (\d+)', line)
tns = re.search(r'^tns (.*)',line)
- vias = re.search(r'^total number of vias = (.*)',line)
- wirelength = re.search(r'^total wire length = (.*) um',line)
+ vias = re.search(r'^Total number of vias = (.*).',line)
+ wirelength = re.search(r'^Total wire length = (.*) um',line)
power = re.search(r'^Total(.*)',line)
slack = re.search(r'^worst slack (.*)',line)
if metricmatch:
@@ -142,7 +142,7 @@ def post_process(chip, step, index):
elif wirelength:
chip.set('metric', step, index, 'real', 'wirelength', round(float(wirelength.group(1)),2))
elif vias:
- chip.set('metric', step, index, 'real', 'vias', round(float(vias.group(1)),2))
+ chip.set('metric', step, index, 'real', 'vias', int(vias.group(1)))
elif slack:
chip.set('metric', step, index, 'real', metric, round(float(slack.group(1)),2))
elif metric == "power":
@@ -153,7 +153,6 @@ def post_process(chip, step, index):
chip.set('metric', step, index, 'real', 'power_total', float(total))
chip.set('metric', step, index, 'real', 'power_leakage', float(leakage))
-
#Setting Warnings and Errors
chip.set('metric', step, index, 'real', 'errors', errors)
chip.set('metric', step, index, 'real', 'warnings', warnings)
