organizing synth scripts

This commit is contained in:
Madeleine Masser-Frye 2022-06-24 06:43:44 +00:00
parent 24538c8eb1
commit 1b0516a863
5 changed files with 15 additions and 17 deletions

1
.gitignore vendored
View File

@ -75,6 +75,7 @@ synthDC/alib-52
synthDC/*.log synthDC/*.log
synthDC/*.svf synthDC/*.svf
synthDC/runs/ synthDC/runs/
synthDC/newRuns
synthDC/PPAruns synthDC/PPAruns
synthDC/plots/ synthDC/plots/
synthDC/runArchive synthDC/runArchive

View File

@ -1,30 +1,13 @@
#!/usr/bin/python3 #!/usr/bin/python3
# Shreya Sanghai (ssanghai@hmc.edu) 2/28/2022
# Madeleine Masser-Frye (mmmasserfrye@hmc.edu) 06/2022 # Madeleine Masser-Frye (mmmasserfrye@hmc.edu) 06/2022
from collections import namedtuple from collections import namedtuple
import glob
import re import re
import csv import csv
import subprocess import subprocess
from matplotlib.cbook import flatten from matplotlib.cbook import flatten
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
import matplotlib.lines as lines import matplotlib.lines as lines
import numpy as np
# field_names = [ 'Name', 'Critical Path Length', 'Cell Area', 'Synth Time']
# data = []
# for name in glob.glob("/home/ssanghai/riscv-wally/synthDC/runs/*/reports/wallypipelinedcore_qor.rep"):
# f = open(name, 'r')
# # trimName = re.search("runs\/(.*?)\/reports", name).group(1)
# trimName = re.search("wallypipelinedcore_(.*?)_sky9",name).group(1)
# for line in f:
# if "Critical Path Length" in line:
# pathLen = re.search("Length: *(.*?)\\n", line).group(1)
# if "Cell Area" in line:
# area = re.search("Area: *(.*?)\\n", line).group(1)
# if "Overall Compile Time" in line:
# time = re.search("Time: *(.*?)\\n", line).group(1)
# data += [{'Name' : trimName, 'Critical Path Length': pathLen, 'Cell Area' : area, 'Synth Time' :time}]
def synthsintocsv(): def synthsintocsv():
''' writes a CSV with one line for every available synthesis ''' writes a CSV with one line for every available synthesis

View File

@ -6,6 +6,20 @@ import csv
import linecache import linecache
import os import os
# field_names = [ 'Name', 'Critical Path Length', 'Cell Area', 'Synth Time']
# data = []
# for name in glob.glob("/home/ssanghai/riscv-wally/synthDC/runs/*/reports/wallypipelinedcore_qor.rep"):
# f = open(name, 'r')
# # trimName = re.search("runs\/(.*?)\/reports", name).group(1)
# trimName = re.search("wallypipelinedcore_(.*?)_sky9",name).group(1)
# for line in f:
# if "Critical Path Length" in line:
# pathLen = re.search("Length: *(.*?)\\n", line).group(1)
# if "Cell Area" in line:
# area = re.search("Area: *(.*?)\\n", line).group(1)
# if "Overall Compile Time" in line:
# time = re.search("Time: *(.*?)\\n", line).group(1)
# data += [{'Name' : trimName, 'Critical Path Length': pathLen, 'Cell Area' : area, 'Synth Time' :time}]
def main(): def main():
data = [] data = []