Skip to content

Commit 58657c0

Browse files
committed
[capture] Fix bug in capture_ibex
We only should write the trace once when not in batch mode. Signed-off-by: Pascal Nasahl <nasahlpa@lowrisc.org>
1 parent 298b11c commit 58657c0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

capture/capture_ibex.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -285,13 +285,13 @@ def capture(scope: Scope, ot_ibex: OTIbex, ot_prng: OTPRNG,
285285
data_bytes = []
286286
for d in data:
287287
data_bytes.append(d.to_bytes(4, "little"))
288-
# Sanity check retrieved data (wave).
289-
assert len(waves[0, :]) >= 1
290-
# Store trace into database.
291-
project.append_trace(wave = waves[0, :],
292-
plaintext = b''.join(data_bytes),
293-
ciphertext = None,
294-
key = None)
288+
# Sanity check retrieved data (wave).
289+
assert len(waves[0, :]) >= 1
290+
# Store trace into database.
291+
project.append_trace(wave = waves[0, :],
292+
plaintext = b''.join(data_bytes),
293+
ciphertext = None,
294+
key = None)
295295

296296
# Memory allocation optimization for CW trace library.
297297
num_segments_storage = project.optimize_capture(num_segments_storage)

0 commit comments

Comments
 (0)