Updated extractSummary to read synthesis outputs in new form

This commit is contained in:
David Harris 2024-04-27 07:18:26 -07:00
parent 06e34b7be4
commit 2b50b30f23

View File

@ -33,15 +33,19 @@ def synthsintocsv():
for oneSynth in allSynths: for oneSynth in allSynths:
descrip = specReg.findall(oneSynth) descrip = specReg.findall(oneSynth)
width = descrip[2][:4] if (descrip[3] == "sram"):
config = descrip[2][4:] base = 4
if descrip[3][-2:] == 'nm': else:
base = 3
width = descrip[base][:4]
config = descrip[base][4:]
if descrip[base+1][-2:] == 'nm':
mod = '' mod = ''
else: else:
mod = descrip[3] mod = descrip[base+1]
descrip = descrip[1:] descrip = descrip[1:]
tech = descrip[3][:-2] tech = descrip[base+1][:-2]
freq = descrip[4] freq = descrip[base+2]
metrics = [] metrics = []
for phrase in ['Path Slack', 'Design Area']: for phrase in ['Path Slack', 'Design Area']:
bashCommand = 'grep "{}" '+ oneSynth[2:]+'/reports/*qor*' bashCommand = 'grep "{}" '+ oneSynth[2:]+'/reports/*qor*'