From cd26f181f8e6638efc2bc19a23fa9c9d7b1892f4 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 5 Dec 2023 18:52:37 +0100 Subject: [PATCH] Set configuration for school system --- TRNG_attack/measurement.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/TRNG_attack/measurement.py b/TRNG_attack/measurement.py index 73c24ea..074a5ec 100644 --- a/TRNG_attack/measurement.py +++ b/TRNG_attack/measurement.py @@ -72,10 +72,10 @@ if __name__ == '__main__': list_resources(ports, "COM") # modify the device numbers in the following two lines: - s = serial.Serial(ports[0].device, 923076) - scope = oscilloscope.Oscilloscope(0) + s = serial.Serial(ports[3].device, 923076) + scope = oscilloscope.Oscilloscope(5) - # scope.setup_measurement() + scope.setup_measurement() # scope.save_conf('scope_setup.conf') scope.load_conf('scope_setup.conf') sleep(2) # wait for the oscilloscope to process the setup @@ -83,5 +83,5 @@ if __name__ == '__main__': # test run -- only TRNG, no recording # run(s) - # measurement -- RESET the FPGA first! (USB disconnect+connect) - # trng_read(scope, s) + # measurement -- RESET the FPGA >first! (USB disconnect+connect) + trng_read(scope, s)