Commit 69e15def authored by Jonas Kühle's avatar Jonas Kühle
Browse files

power results are supported now

parent 609bff25
......@@ -3,6 +3,7 @@
vivadoOutput="vivadoOutput"
vivadoSynResultsCSV="vivadoSynResults.csv"
flopocoLog="flopocoLog"
powerReport="./tmp/power_report.rpt"
tmp=""
vhdName=""
......@@ -16,7 +17,7 @@ chmod 666 $flopocoLog
> $flopocoLog
> $vivadoOutput
echo "Filter;type;dw;cw;method;LUTS;DSPs;data path delay;" > $vivadoSynResultsCSV
echo "Filter;type;dw;cw;method;LUTS;DSPs;data path delay;Total On-Chip Power (W);Device Static (W);Dynamic (W); Clocks (dyn); Logic (dyn); Signals (dyn);i DSPs; I/0 (dyn)" > $vivadoSynResultsCSV
# no need to clear vivadoOutput since it will be overwritten
# read
......@@ -82,8 +83,54 @@ while read line; do
#else
tmp=`grep "Data Path Delay" $vivadoOutput | awk '{print $4}'`
# fi
echo -n $tmp >> $vivadoSynResultsCSV
echo -n ";" >> $vivadoSynResultsCSV
# total power
tmp=`grep "Total On-Chip Power (W)" $powerReport | awk '{print $7}'`
echo -n $tmp >> $vivadoSynResultsCSV
echo -n ";" >> $vivadoSynResultsCSV
# static power
tmp=`grep "Device Static (W)" $powerReport | awk '{print $6}'`
echo -n $tmp >> $vivadoSynResultsCSV
echo -n ";" >> $vivadoSynResultsCSV
#dynamic power
tmp=`grep "Dynamic (W)" $powerReport | awk '{print $5}'`
echo -n $tmp >> $vivadoSynResultsCSV
echo -n ";" >> $vivadoSynResultsCSV
#clocks
tmp=`grep "Clocks" $powerReport | awk '{print $4}'`
echo -n $tmp >> $vivadoSynResultsCSV
echo -n ";" >> $vivadoSynResultsCSV
#slice logic
tmp=`grep "Slice Logic" $powerReport | awk '{print $5}'`
echo -n $tmp >> $vivadoSynResultsCSV
echo -n ";" >> $vivadoSynResultsCSV
#signals
tmp=`grep "Signals" $powerReport | awk '{print $4}'`
echo -n $tmp >> $vivadoSynResultsCSV
echo -n ";" >> $vivadoSynResultsCSV
#DSPs
tmp=`grep "DSPs" $powerReport | awk '{print $4}'`
echo -n $tmp >> $vivadoSynResultsCSV
echo -n ";" >> $vivadoSynResultsCSV
#I/O
tmp=`grep "I/O |" $powerReport | awk '{print $4}'`
#echo -n $tmp >> $vivadoSynResultsCSV
#echo -n ";" >> $vivadoSynResultsCSV
echo -n $tmp >> $vivadoSynResultsCSV
# last one with line break
echo ";" >> $vivadoSynResultsCSV
# delte tmp folder
rm -r tmp/
done < $filename
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment