On Mon, 14 Feb 2011 17:48:59 +0100, Lluís Batlle i Rossell
<[email protected]> wrote:
I just put the sources at http://ygdes.com/GHDL/int_bool
run sha-1.sh after editing the top of sha-1.vhdl
to suite one of the 4 options.
Also additions could be done that way, isn't it?
they are done already :-)
+, -, *, /, exp and mod are available.
I added and/or/not/nand/nor/xor/xnor,
shift and rotate. The microbenchmark is
a SHA-1 kernel that makes use of most of these
with 32-bit variables : no wonder the speedup
is that good. In practical cases, I expect
50 to 200x speedup and still be able to synthesize
the VHDL code by switching the libraries :-)
Not everything is solved however.
array subscripts must be handled in some way,
through shifts for the integer version,
and normal subscripts for the std_ulogic version,
plus other gotchas...
but i'm getting there :-D
YG
_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss