summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2019-11-14 17:08:41 +0100
committerDaniel Friesel <daniel.friesel@uos.de>2019-11-14 17:08:41 +0100
commita38a45799288448181b1e895537dc8ce88a303b3 (patch)
tree53fe0591ff41c5fe326f82210a0b6e4076a25ed4 /bin
parent1677d08d8f60979ae579b5f9b22f137a06a3920d (diff)
generate-dfa-benchmark: decrease initial delay when using EnergyTrace
Diffstat (limited to 'bin')
-rwxr-xr-xbin/generate-dfa-benchmark.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/generate-dfa-benchmark.py b/bin/generate-dfa-benchmark.py
index dec676e..915908a 100755
--- a/bin/generate-dfa-benchmark.py
+++ b/bin/generate-dfa-benchmark.py
@@ -96,7 +96,11 @@ def benchmark_from_runs(pta: PTA, runs: list, harness: OnboardTimerHarness, benc
# When flashing first and then starting the log, the first log lines may be lost.
# To work around this, we flash first, then start the log, and use this delay statement to ensure that no output is lost.
# This is also useful to faciliate MIMOSA calibration after flashing
- outbuf.write('arch.delay_ms(12000);\n')
+ if 'energytrace' in opt:
+ outbuf.write('for (unsigned char i = 0; i < 10; i++) {\n')
+ outbuf.write('arch.sleep_ms(250);\n}\n')
+ else:
+ outbuf.write('arch.delay_ms(12000);\n')
# Output some newlines to ensure the parser can determine the start of the first real output line
outbuf.write('kout << endl << endl;\n')