Skip to content

Commit

Permalink
[sca] fix magnitude of frequency in print function
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Tempelmeier <[email protected]>
  • Loading branch information
m-temp committed Feb 28, 2023
1 parent 21ae293 commit 11d590f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cw/capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,7 @@ def otbn_vertical(ctx: typer.Context,

# Print the params
print(
f'Target setup with clock frequency {ctx.obj.cfg["device"]["pll_frequency"]} MHz'
f'Target setup with clock frequency {ctx.obj.cfg["device"]["pll_frequency"]/1000000} MHz'
)
print(
f'Scope setup with sampling rate {ctx.obj.ot.scope.clock.adc_freq} S/s'
Expand Down Expand Up @@ -1436,7 +1436,7 @@ def ecdsa_simple(ctx: typer.Context,
ctx.obj.ot.scope.adc.decimate = ctx.obj.cfg["capture"]["decimate"]
# Print the params
print(
f'Target setup with clock frequency {ctx.obj.cfg["device"]["pll_frequency"]} MHz'
f'Target setup with clock frequency {ctx.obj.cfg["device"]["pll_frequency"]/1000000} MHz'
)
print(
f'Scope setup with sampling rate {ctx.obj.ot.scope.clock.adc_freq} S/s'
Expand Down Expand Up @@ -1646,7 +1646,7 @@ def ecdsa_stream(ctx: typer.Context,
if "decimate" in ctx.obj.cfg["capture"]:
ctx.obj.ot.scope.adc.decimate = ctx.obj.cfg["capture"]["decimate"]
print(
f'Target setup with clock frequency {ctx.obj.cfg["device"]["pll_frequency"]} MHz'
f'Target setup with clock frequency {ctx.obj.cfg["device"]["pll_frequency"]/1000000} MHz'
)
print(
f'Scope setup with sampling rate {ctx.obj.ot.scope.clock.adc_freq} S/s'
Expand Down

0 comments on commit 11d590f

Please sign in to comment.