[Cryptech Tech] SHA-256 has been added to the cryptech repo.

Joachim Strömbergson joachim at secworks.se
Tue Feb 25 08:35:52 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Aloha!

Basil Dolmatov wrote:
> iMac-dol:toolruns dol$ make all iverilog -o wb.sim
> ../src/tb/tb_wb_sha256.v ../src/rtl/wb_sha256.v
> ../src/rtl/sha256_core.v ../src/rtl/sha256_k_constants.v
> ../src/rtl/sha256_w_mem.v ../src/tb/tb_wb_sha256.v:164: warning: task
> definition for "dump_dut_state" has an empty port declaration list! 
> ../src/tb/tb_wb_sha256.v:208: warning: task definition for
> "reset_dut" has an empty port declaration list! 
> ../src/tb/tb_wb_sha256.v:224: warning: task definition for "init_sim"
> has an empty port declaration list! ../src/tb/tb_wb_sha256.v:245:
> warning: task definition for "display_test_result" has an empty port
> declaration list! ../src/tb/tb_wb_sha256.v:270: warning: task
> definition for "wait_ready" has an empty port declaration list! 
> ../src/tb/tb_wb_sha256.v:364: warning: task definition for
> "check_name_version" has an empty port declaration list! 
> ../src/tb/tb_wb_sha256.v:392: warning: task definition for
> "read_digest" has an empty port declaration list!

Those are expected. Those tasks don't have any input.


> ../src/tb/tb_wb_sha256.v:420: syntax error Assertion failed:
> (current_task == 0), function VLparse, file parse.y, line 2367. sh:
> line 1: 19476 Done
> /usr/local/iverilog/lib/ivl/ivlpp -L
> -F"/var/folders/pr/_xwtqbbn7dv21n82vlxxsq040000gn/T//ivrlg2138231be"
> -f"/var/folders/pr/_xwtqbbn7dv21n82vlxxsq040000gn/T//ivrlg138231be"
> -p"/var/folders/pr/_xwtqbbn7dv21n82vlxxsq040000gn/T//ivrli138231be" 
> 19477 Abort trap: 6           | /usr/local/iverilog/lib/ivl/ivl
> -C"/var/folders/pr/_xwtqbbn7dv21n82vlxxsq040000gn/T//ivrlh138231be"
> -C"/usr/local/iverilog/lib/ivl/vvp.conf" -- - make: *** [wb] Error
> 134

Wut?

Ok, I'll look into that. Thanks. It _should_ have worked.

One thing to note - and I should update the documentation about this is
that there are two top level entities:

 - sha256.v    - Top level with 32-bit memory like interface.
 - wb_sha256.v - Top level with Wishbone interface.

When running the coure through synthesis one will have to select one or
the other, not both.

Regarding WB I'm sort of faltering and consider only using a simpler
interface like the one I'm using in sha256.v.

- -- 
Med vänlig hälsning, Yours

Joachim Strömbergson - Alltid i harmonisk svängning.
========================================================================
 Joachim Strömbergson          Secworks AB          joachim at secworks.se
========================================================================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBCAAGBQJTDFXnAAoJEF3cfFQkIuyN3CoQAJPyWNU+Htuz2Q8CXhWRfXtT
Scd3wrRaFEloB2i9uFvrbpuexQYbiN1urAvYtvBHg2FGdYTxiWjeDHD7WCV1zKlM
+XIs+v+USgNAu3ROEne5lU/5wyOr/bFalp2NpejrqOeDtcuVfRM7xDD0maqFaCcx
kVrvwKAV6IG+fdnAyk1mgGBclzXSJj8bDw3EcJs9PRFd7A8MSRdsJsd29tG29115
5CAiZP/4uEQZa8HhSIp4baR3aZDihktmMbo+qsPCIUSg5MSzSc61ToRhosLkFTpu
wPVzEmZx7Z9VG//6dnPsxN0+0bh58JENP+bk+BHB43aJRbZ+V3hAQAu104ZtQh98
Ovfkanmkpf9FyL2dd2XSCKaUXX3wcSYtUnM/ddSsVWtmAexfQzpA6DLPc0iE+mzI
DBg+Kl5NOkfMYrkVPHCCjCwL1ztpBNal7ouvtf2NZsMzhNZF/L27L4zQLxV5XFeq
mb+UC95RZzhP/iUNNnfxWqq/c7oa0XBzmop5X6GQzFnbyKmAF6+k4SvscMosaXjB
/gwX9DvQma3+xqKP0KQOjfMTR4q6yJgZspKfE6cjxxvWaoAYVstpuU10fKRe3qOJ
mN4/+SXYfeW4bl0N76wiiFHR8P45OYTU8kYtPpqe6yxKCWLQIHBH2GZ4FC6jdcXX
dj9N/b2vDVXVj/jt/Z9X
=dc/u
-----END PGP SIGNATURE-----



More information about the Tech mailing list