Synthesis with derived configs

This commit is contained in:
David Harris 2024-04-27 17:06:44 -07:00
parent 2b50b30f23
commit 12c5879467
4 changed files with 20 additions and 13 deletions

View file

@ -33,6 +33,9 @@ def synthsintocsv():
for oneSynth in allSynths:
descrip = specReg.findall(oneSynth)
print("From " + oneSynth + " Find ")
for d in descrip:
print(d)
if (descrip[3] == "sram"):
base = 4
else:
@ -46,10 +49,12 @@ def synthsintocsv():
descrip = descrip[1:]
tech = descrip[base+1][:-2]
freq = descrip[base+2]
# print(width, config, mod, tech, freq)
metrics = []
for phrase in ['Path Slack', 'Design Area']:
bashCommand = 'grep "{}" '+ oneSynth[2:]+'/reports/*qor*'
bashCommand = bashCommand.format(phrase)
print(bashCommand)
try:
output = subprocess.check_output(['bash','-c', bashCommand])
nums = metricReg.findall(str(output))