aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/run-legup.sh
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2021-07-12 02:02:27 +0200
committerYann Herklotz <git@yannherklotz.com>2021-07-12 02:02:27 +0200
commitdeb0a4f64585c4ec061fe0726e9d9adbc38a2d83 (patch)
treea376378c281549d3ebc5b49bd18d1edf2d3dd8dc /scripts/run-legup.sh
parent9a4122dba9bdc33a8e912d5a45bae35e05afb229 (diff)
downloadvericert-deb0a4f64585c4ec061fe0726e9d9adbc38a2d83.tar.gz
vericert-deb0a4f64585c4ec061fe0726e9d9adbc38a2d83.zip
Update the artifact description
Diffstat (limited to 'scripts/run-legup.sh')
-rw-r--r--scripts/run-legup.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/run-legup.sh b/scripts/run-legup.sh
new file mode 100644
index 0000000..3b6f60f
--- /dev/null
+++ b/scripts/run-legup.sh
@@ -0,0 +1,17 @@
+#!/usr/bin/env bash
+
+top=$(pwd)
+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