mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-02 17:55:19 +00:00
Remove ppa_ prefix and modify ppaAnalyze.py to handle correct vector
This commit is contained in:
parent
46bfdf5df9
commit
74056246d4
@ -24,7 +24,7 @@ export WIDTH ?= 32
|
|||||||
|
|
||||||
time := $(shell date +%F-%H-%M)
|
time := $(shell date +%F-%H-%M)
|
||||||
hash := $(shell git rev-parse --short HEAD)
|
hash := $(shell git rev-parse --short HEAD)
|
||||||
export OUTPUTDIR := runs/ppa_$(DESIGN)_$(WIDTH)_$(CONFIG)_$(TECH)_$(FREQ)_MHz_$(time)_$(TITLE)_$(hash)
|
export OUTPUTDIR := runs/$(DESIGN)_$(WIDTH)_$(CONFIG)_$(TECH)_$(FREQ)_MHz_$(time)_$(TITLE)_$(hash)
|
||||||
export SAIFPOWER ?= 0
|
export SAIFPOWER ?= 0
|
||||||
|
|
||||||
OLDCONFIGDIR ?= ${WALLY}/config
|
OLDCONFIGDIR ?= ${WALLY}/config
|
||||||
|
@ -38,7 +38,7 @@ def synthsintocsv():
|
|||||||
each line contains the module, tech, width, target freq, and resulting metrics
|
each line contains the module, tech, width, target freq, and resulting metrics
|
||||||
'''
|
'''
|
||||||
print("This takes a moment...")
|
print("This takes a moment...")
|
||||||
bashCommand = "find . -path '*runs/ppa*' -prune"
|
bashCommand = "find . -path '*runs/*' -prune"
|
||||||
output = subprocess.check_output(['bash','-c', bashCommand])
|
output = subprocess.check_output(['bash','-c', bashCommand])
|
||||||
allSynths = output.decode("utf-8").split('\n')[:-1]
|
allSynths = output.decode("utf-8").split('\n')[:-1]
|
||||||
|
|
||||||
@ -50,7 +50,7 @@ def synthsintocsv():
|
|||||||
writer.writerow(['Module', 'Tech', 'Width', 'Target Freq', 'Delay', 'Area', 'L Power (nW)', 'D energy (nJ)'])
|
writer.writerow(['Module', 'Tech', 'Width', 'Target Freq', 'Delay', 'Area', 'L Power (nW)', 'D energy (nJ)'])
|
||||||
|
|
||||||
for oneSynth in allSynths:
|
for oneSynth in allSynths:
|
||||||
module, width, risc, tech, freq = specReg.findall(oneSynth)[2:7]
|
module, width, risc, tech, freq = specReg.findall(oneSynth)[1:6]
|
||||||
metrics = []
|
metrics = []
|
||||||
for phrase in [['Path Slack', 'qor'], ['Design Area', 'qor'], ['100', 'power']]:
|
for phrase in [['Path Slack', 'qor'], ['Design Area', 'qor'], ['100', 'power']]:
|
||||||
bashCommand = 'grep "{}" '+ oneSynth[2:]+'/reports/*{}*'
|
bashCommand = 'grep "{}" '+ oneSynth[2:]+'/reports/*{}*'
|
||||||
@ -86,7 +86,7 @@ def cleanup():
|
|||||||
output = subprocess.check_output(['bash','-c', bc])
|
output = subprocess.check_output(['bash','-c', bc])
|
||||||
except: pass
|
except: pass
|
||||||
|
|
||||||
bashCommand = "find . -path '*runs/ppa*' -prune"
|
bashCommand = "find . -path '*runs/*' -prune"
|
||||||
output = subprocess.check_output(['bash','-c', bashCommand])
|
output = subprocess.check_output(['bash','-c', bashCommand])
|
||||||
allSynths = output.decode("utf-8").split('\n')[:-1]
|
allSynths = output.decode("utf-8").split('\n')[:-1]
|
||||||
for oneSynth in allSynths:
|
for oneSynth in allSynths:
|
||||||
|
Loading…
Reference in New Issue
Block a user