mirror of
https://github.com/openhwgroup/cvw.git
synced 2025-04-23 21:38:55 -04:00
organizing synth scripts
This commit is contained in:
parent
528ac7f7f2
commit
9685a37a5f
5 changed files with 15 additions and 17 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -75,6 +75,7 @@ synthDC/alib-52
|
|||
synthDC/*.log
|
||||
synthDC/*.svf
|
||||
synthDC/runs/
|
||||
synthDC/newRuns
|
||||
synthDC/PPAruns
|
||||
synthDC/plots/
|
||||
synthDC/runArchive
|
||||
|
|
|
@ -1,30 +1,13 @@
|
|||
#!/usr/bin/python3
|
||||
# Shreya Sanghai (ssanghai@hmc.edu) 2/28/2022
|
||||
# Madeleine Masser-Frye (mmmasserfrye@hmc.edu) 06/2022
|
||||
from collections import namedtuple
|
||||
import glob
|
||||
import re
|
||||
import csv
|
||||
import subprocess
|
||||
from matplotlib.cbook import flatten
|
||||
import matplotlib.pyplot as plt
|
||||
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():
|
||||
''' writes a CSV with one line for every available synthesis
|
||||
|
|
|
@ -6,6 +6,20 @@ import csv
|
|||
import linecache
|
||||
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():
|
||||
data = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue