mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
organizing synth scripts
This commit is contained in:
parent
24538c8eb1
commit
1b0516a863
1
.gitignore
vendored
1
.gitignore
vendored
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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 = []
|
||||||
|
Loading…
Reference in New Issue
Block a user