Skip to content

Commit

Permalink
[tvla] Consider offset in trace/tvla plots for trigger highlighting
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Wettermann <[email protected]>
  • Loading branch information
wettermo committed Apr 5, 2023
1 parent c43f285 commit 39b01b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cw/tvla.py
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,9 @@ def run_tvla(ctx: typer.Context):
trigger_samples = int(
project.config['ChipWhisperer']['General Settings']
['samples_trigger_high'])
trigger_high = trigger_samples - sample_start
offset = int(project.config['ChipWhisperer']
['General Settings']['offset'])
trigger_high = trigger_samples - (sample_start + offset)
if trigger_high < 0:
trigger_high = 0
axs[0].set_ylabel("trace")
Expand Down

0 comments on commit 39b01b7

Please sign in to comment.