Compare commits
3 commits
1901ad680d
...
da3db1a167
Author | SHA1 | Date | |
---|---|---|---|
da3db1a167 | |||
cd26f181f8 | |||
285809d509 |
3 changed files with 16 additions and 5 deletions
7
.gitignore
vendored
7
.gitignore
vendored
|
@ -67,3 +67,10 @@ apdu_scripts/
|
|||
# Build Output
|
||||
*.class
|
||||
javacard/
|
||||
|
||||
# Python cache
|
||||
__pycache__/
|
||||
|
||||
# TRNG Attack Files
|
||||
TRNG_attack/data_info.txt
|
||||
TRNG_attack/data.bin
|
||||
|
|
|
@ -10,6 +10,10 @@
|
|||
{
|
||||
"name": "AES",
|
||||
"path": "./aes"
|
||||
},
|
||||
{
|
||||
"name": "TRNG Attack",
|
||||
"path": "./TRNG_attack"
|
||||
}
|
||||
],
|
||||
"tasks": {
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue