summaryrefslogtreecommitdiff
path: root/traces/collect-traces.sh
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@airbus.com>2019-05-16 14:44:05 +0200
committerKévin Le Gouguec <kevin.legouguec@airbus.com>2019-05-16 14:44:05 +0200
commit8abf3a95712789d947973a8b431020f9226472e5 (patch)
tree8a070f3ed357cef8b89d81b896b68610ca02f782 /traces/collect-traces.sh
parent3d1f2c262536e6012d8c268d244dc96ed7d6999d (diff)
downloadlilliput-ae-implem-8abf3a95712789d947973a8b431020f9226472e5.tar.xz
Ajout de traces pour la version threshold
Pour aider à l'implémentation VHDL.
Diffstat (limited to 'traces/collect-traces.sh')
-rwxr-xr-xtraces/collect-traces.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/traces/collect-traces.sh b/traces/collect-traces.sh
index 3d9d76b..11c2402 100755
--- a/traces/collect-traces.sh
+++ b/traces/collect-traces.sh
@@ -3,7 +3,14 @@
set -eu
trace_type=$1
-patch=traces/${trace_type}.patch
+implem=${IMPLEMENTATION:-ref}
+
+if [ -f traces/${implem}/${trace_type}.patch ]
+then
+ patch=traces/${implem}/${trace_type}.patch
+else
+ patch=traces/${trace_type}.patch
+fi
# To update these patches:
# - add the tracing code you need to the source files
@@ -15,7 +22,7 @@ git apply --3way ${patch}
for variant_dir in test/{i,ii}-{128,192,256}
do
- make -C ${variant_dir} ${trace_type}
+ make -C ${variant_dir} ${trace_type} IMPLEMENTATION=${implem}
done
cp results/{i,ii}-{128,192,256}/${trace_type}-*.txt ${d}