Skip to content

Commit 11d590f

Browse files
committed
[sca] fix magnitude of frequency in print function
Signed-off-by: Michael Tempelmeier <[email protected]>
1 parent 21ae293 commit 11d590f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cw/capture.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,7 +1180,7 @@ def otbn_vertical(ctx: typer.Context,
11801180

11811181
# Print the params
11821182
print(
1183-
f'Target setup with clock frequency {ctx.obj.cfg["device"]["pll_frequency"]} MHz'
1183+
f'Target setup with clock frequency {ctx.obj.cfg["device"]["pll_frequency"]/1000000} MHz'
11841184
)
11851185
print(
11861186
f'Scope setup with sampling rate {ctx.obj.ot.scope.clock.adc_freq} S/s'
@@ -1436,7 +1436,7 @@ def ecdsa_simple(ctx: typer.Context,
14361436
ctx.obj.ot.scope.adc.decimate = ctx.obj.cfg["capture"]["decimate"]
14371437
# Print the params
14381438
print(
1439-
f'Target setup with clock frequency {ctx.obj.cfg["device"]["pll_frequency"]} MHz'
1439+
f'Target setup with clock frequency {ctx.obj.cfg["device"]["pll_frequency"]/1000000} MHz'
14401440
)
14411441
print(
14421442
f'Scope setup with sampling rate {ctx.obj.ot.scope.clock.adc_freq} S/s'
@@ -1646,7 +1646,7 @@ def ecdsa_stream(ctx: typer.Context,
16461646
if "decimate" in ctx.obj.cfg["capture"]:
16471647
ctx.obj.ot.scope.adc.decimate = ctx.obj.cfg["capture"]["decimate"]
16481648
print(
1649-
f'Target setup with clock frequency {ctx.obj.cfg["device"]["pll_frequency"]} MHz'
1649+
f'Target setup with clock frequency {ctx.obj.cfg["device"]["pll_frequency"]/1000000} MHz'
16501650
)
16511651
print(
16521652
f'Scope setup with sampling rate {ctx.obj.ot.scope.clock.adc_freq} S/s'

0 commit comments

Comments
 (0)