[Cryptech Tech] How to start using coretest_hashes on the TerasIC C5G Board
Randy Bush
randy at psg.com
Sun Mar 23 22:57:56 UTC 2014
ryuu.psg.com:/Users/randy/test_coretest_hashes/cores/coretest_hashes/src/sw> python hash_tester.py
TC1-1: Reading name, type and version words from SHA-1 core.
READ_OK. address 0x1000 = 0x73686131.
READ_OK. address 0x1001 = 0x20202020.
READ_OK. address 0x1002 = 0x302e3530.
TC1-2: Writing and reading a block into the SHA-1 core.
WRITE_OK. address 0x1010.
WRITE_OK. address 0x1011.
WRITE_OK. address 0x1012.
WRITE_OK. address 0x1013.
WRITE_OK. address 0x1014.
WRITE_OK. address 0x1015.
WRITE_OK. address 0x1016.
WRITE_OK. address 0x1017.
WRITE_OK. address 0x1018.
WRITE_OK. address 0x1019.
WRITE_OK. address 0x101a.
WRITE_OK. address 0x101b.
WRITE_OK. address 0x101c.
WRITE_OK. address 0x101d.
WRITE_OK. address 0x101e.
WRITE_OK. address 0x101f.
TC1-2: All block words written. Time to read.
READ_OK. address 0x1010 = 0x61626380.
READ_OK. address 0x1011 = 0x00000000.
READ_OK. address 0x1012 = 0x00000000.
READ_OK. address 0x1013 = 0x00000000.
READ_OK. address 0x1014 = 0x00000000.
READ_OK. address 0x1015 = 0x00000000.
READ_OK. address 0x1016 = 0x00000000.
READ_OK. address 0x1017 = 0x00000000.
READ_OK. address 0x1018 = 0x00000000.
READ_OK. address 0x1019 = 0x00000000.
READ_OK. address 0x101a = 0x00000000.
READ_OK. address 0x101b = 0x00000000.
READ_OK. address 0x101c = 0x00000000.
READ_OK. address 0x101d = 0x00000000.
READ_OK. address 0x101e = 0x00000000.
READ_OK. address 0x101f = 0x00000018.
TC1-2: All block words read.
TC1-3: Starting the SHA-1 core on single block procssing with the current block.
WRITE_OK. address 0x1008.
TC1-3: Reading SHA-1 status and digest.
READ_OK. address 0x1009 = 0x00000003.
READ_OK. address 0x1020 = 0xa9993e36.
READ_OK. address 0x1021 = 0x4706816a.
READ_OK. address 0x1022 = 0xba3e2571.
READ_OK. address 0x1023 = 0x7850c26c.
READ_OK. address 0x1024 = 0x9cd0d89d.
TC2-1: Reading name, type and version words from SHA-256 core.
READ_OK. address 0x2000 = 0x73686132.
READ_OK. address 0x2001 = 0x2d323536.
READ_OK. address 0x2002 = 0x302e3830.
TC2-2: Writing and reading a block into the SHA-256 core.
WRITE_OK. address 0x2010.
WRITE_OK. address 0x2011.
WRITE_OK. address 0x2012.
WRITE_OK. address 0x2013.
WRITE_OK. address 0x2014.
WRITE_OK. address 0x2015.
WRITE_OK. address 0x2016.
WRITE_OK. address 0x2017.
WRITE_OK. address 0x2018.
WRITE_OK. address 0x2019.
WRITE_OK. address 0x201a.
WRITE_OK. address 0x201b.
WRITE_OK. address 0x201c.
WRITE_OK. address 0x201d.
WRITE_OK. address 0x201e.
WRITE_OK. address 0x201f.
TC1-2: All block words written. Time to read.
READ_OK. address 0x2010 = 0x61626380.
READ_OK. address 0x2011 = 0x00000000.
READ_OK. address 0x2012 = 0x00000000.
READ_OK. address 0x2013 = 0x00000000.
READ_OK. address 0x2014 = 0x00000000.
READ_OK. address 0x2015 = 0x00000000.
READ_OK. address 0x2016 = 0x00000000.
READ_OK. address 0x2017 = 0x00000000.
READ_OK. address 0x2018 = 0x00000000.
READ_OK. address 0x2019 = 0x00000000.
READ_OK. address 0x201a = 0x00000000.
READ_OK. address 0x201b = 0x00000000.
READ_OK. address 0x201c = 0x00000000.
READ_OK. address 0x201d = 0x00000000.
READ_OK. address 0x201e = 0x00000000.
READ_OK. address 0x201f = 0x00000018.
TC2-2: All block words read.
TC2-3: Starting the SHA-256 core on single block procssing with the current block.
WRITE_OK. address 0x2008.
TC2-3: Reading SHA-256 status and digest.
READ_OK. address 0x2009 = 0x00000003.
READ_OK. address 0x2020 = 0xba7816bf.
READ_OK. address 0x2021 = 0x8f01cfea.
READ_OK. address 0x2022 = 0x414140de.
READ_OK. address 0x2023 = 0x5dae2223.
READ_OK. address 0x2024 = 0xb00361a3.
READ_OK. address 0x2025 = 0x96177a9c.
READ_OK. address 0x2026 = 0xb410ff61.
READ_OK. address 0x2027 = 0xf20015ad.
Exception in thread Thread-1:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 808, in __bootstrap_inner
self.run()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 761, in run
self.__target(*self.__args, **self.__kwargs)
File "hash_tester.py", line 193, in read_serial_thread
response = serialport.read()
File "/Library/Python/2.7/site-packages/serial/serialposix.py", line 481, in read
raise SerialException('read failed: %s' % (e,))
SerialException: read failed: (9, 'Bad file descriptor')
More information about the Tech
mailing list