aboutsummaryrefslogtreecommitdiff
path: root/src/sw
diff options
context:
space:
mode:
authorJoachim StroĢˆmbergson <joachim@secworks.se>2014-12-20 09:02:30 +0100
committerJoachim StroĢˆmbergson <joachim@secworks.se>2014-12-20 09:02:30 +0100
commitdcaa8654ae6f8bd22d4ccc07453ac8438bdbb350 (patch)
tree8ca28293d3e88dfaa526b2ccb044ad719380f876 /src/sw
parent670e21811e2a118dca194da01ff5187907d6ed44 (diff)
(1) Fixed line lengths. Added targets to extract fromm.HEADmaster
Diffstat (limited to 'src/sw')
-rwxr-xr-xsrc/sw/trng_extract.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/sw/trng_extract.py b/src/sw/trng_extract.py
index 9492f53..fdba24a 100755
--- a/src/sw/trng_extract.py
+++ b/src/sw/trng_extract.py
@@ -333,19 +333,24 @@ def main():
parser = argparse.ArgumentParser()
- parser.add_argument('-d', '--debug', dest='debug', action='store_true',
+ parser.add_argument('-d', '--debug', dest='debug',
+ action='store_true',
help='Pring debug information.')
- parser.add_argument('-v', '--verbose', dest='verbose', action='store_true',
+ parser.add_argument('-v', '--verbose', dest='verbose',
+ action='store_true',
help='Increase verbosity.')
parser.add_argument('-i', dest='device', default=I2C_DEVICE,
- help='I2C device name (default ' + I2C_DEVICE + ')')
+ help='I2C device name (default '
+ + I2C_DEVICE + ')')
parser.add_argument('-n', dest='num_words', default=NUM_WORDS,
help='Number of 32-bit words to extract (default ' +
str(NUM_WORDS) + ')')
+ parser.add_argument('target',
+ help='target to extract from, "rng", "rosc", or "avalanche"')
args = parser.parse_args()
DEBUG = args.debug