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)