diff options
-rw-r--r-- | benchmarks/polybench-syn/run-legup.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/benchmarks/polybench-syn/run-legup.sh b/benchmarks/polybench-syn/run-legup.sh index 8a84e7c..3b6f60f 100644 --- a/benchmarks/polybench-syn/run-legup.sh +++ b/benchmarks/polybench-syn/run-legup.sh @@ -5,9 +5,13 @@ vericert=/vericert rm $top/exec_legup.csv legup_dir=/data/legup-polybench-$1/legup/legup_$2 +echo benchmark,cycles >$top/exec_legup.csv + while read benchmark ; do + echo -n "compiling $(basename "$benchmark"): " cd $legup_dir/$benchmark iverilog -o run -s main_tb $vericert/ip/* legup.v cycles=$(./run | sed -n 3p | sed -E -e 's/[^0-9]+([0-9]+)/\1/') echo "$(basename "$benchmark"),$cycles" >>$top/exec_legup.csv + echo $cycles cycles done < benchmark-list-master |