aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2021-07-11 15:43:06 +0200
committerYann Herklotz <git@yannherklotz.com>2021-07-11 15:43:06 +0200
commit77f718fea849b389a8fd4c2b1dc2b5d6f7c39508 (patch)
tree5eb967235d40122f2dc8fa9b312e9c383cbd5f4f /benchmarks
parentc73f4e44c96310540434d0b9cc81e969c6430b90 (diff)
downloadvericert-kvx-77f718fea849b389a8fd4c2b1dc2b5d6f7c39508.tar.gz
vericert-kvx-77f718fea849b389a8fd4c2b1dc2b5d6f7c39508.zip
Add legup script
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/polybench-syn/run-legup.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/benchmarks/polybench-syn/run-legup.sh b/benchmarks/polybench-syn/run-legup.sh
new file mode 100644
index 0000000..8a84e7c
--- /dev/null
+++ b/benchmarks/polybench-syn/run-legup.sh
@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+
+top=$(pwd)
+vericert=/vericert
+rm $top/exec_legup.csv
+legup_dir=/data/legup-polybench-$1/legup/legup_$2
+
+while read benchmark ; do
+ 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
+done < benchmark-list-master