<div>16.02.2015, 12:06, "Joachim Strömbergson" <joachim@secworks.se>:</div><blockquote type="cite"><p><br /><br />Aloha!<br /><br />This is primarily for PaulS: When doing hashing operations on the Novena<br />via EIM - do you see the ready signal (and data valid) signal toggle? In<br />other words - does the CPU ever have to wait for the cores to finish?<br />Just to know where the bottleneck is.</p></blockquote><div> </div><div>Yes, I can confirm that your ready and valid signals do toggle. This can be observed by running Paul's hash_tester with -d option to dump transaction data.</div><div>Most of the time output hash is already valid by the time hash_tester reads status register. But sometimes it has to poll status once again before the hash becomes ready.</div><div>This variable latency is completely normal, because BCLK and SYS_CLK are in separate clock domains and have no defined phase relationship, so there is 1-cycle uncertainity</div><div>of how long it will take to transfer input message from BCLK to SYS_CLK and then bring output hash value back to BCLK.</div><div> </div><div><span style="font-family:courier new,courier;">root@novena-board-paul:~/Novena/test-sha256# ./hash_tester -d 2</span><br /><span style="font-family:courier new,courier;">Configuring EIM .. EIM Setup ok.</span><br /><span style="font-family:courier new,courier;">TC2: Single block message test for SHA-1.</span><br /><span style="font-family:courier new,courier;">write  [ 61 62 63 80 ... 00 18 ]</span><br /><span style="font-family:courier new,courier;">write  [ 00 00 00 01 ]</span><br /><span style="font-family:courier new,courier;">read   [ 00 00 00 00 ]</span><br /><span style="font-family:courier new,courier;">read   [ 00 00 00 03 ]</span><br /><span style="font-family:courier new,courier;">expect [ a9 99 3e 36 47 06 81 6a ba 3e 25 71 78 50 c2 6c 9c d0 d8 9d ]</span><br /><span style="font-family:courier new,courier;">read   [ a9 99 3e 36 47 06 81 6a ba 3e 25 71 78 50 c2 6c 9c d0 d8 9d ]</span></div><div>--</div><div>With best regards,</div><div>Pavel Shatov</div><div> </div>