[Cryptech Tech] Cleanup of chacha

Joachim Strömbergson joachim at secworks.se
Tue Jan 3 07:34:30 UTC 2017


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

Aloha!

Joachim Strömbergson wrote:
> Aloha! Peter Stuge wrote:
>> Please also see if yosys ( https://github.com/clifford/yosys )
>> does?
> 
> Currently it does not. It seems Yosys have a problem with locally 
> defined variables. At least (two dimensional) arrays.

Specifically in data_out_logic, I define the following arrays locally:

 reg [31 : 0] msb_block_state [0 : 15];
 reg [31 : 0] lsb_block_state [0 : 15];
 reg [511 : 0] block_state;

If I move them to top level scope, I can parse, synthesize and optimize
the design in yosys. Note that it is only the two dimensional arrays
that are problematic. I've opened an issue for this.

- -- 
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-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBCAAGBQJYa1QGAAoJEF3cfFQkIuyNyQ0QANSc9uQAG+KrgGEBHmLFun2q
ClmLBQg4fFYIHU0ongmvii9dkj1cpOl4Tt2rrs41ijvRay2289TQCLjeBOpkPtGu
2OyNRvvXue4x/U7xIMX9EBFRKhSFFSTlF0UboFLU53fF1FvwyODDJ651r7HLhfWX
z8rUE7m410s5k5fyTNtAmr+bJbRRzSQps3pwtkbDwAT6nQb8pSVcYwDOH18YhkSD
SE7DWs6L+vduYz6shsX4n91vCHhRNC51sdY4vUvbbMYc3VrELmj+30tWcZb+nxiz
zP9vdgOEOuwXV+XjR/elDFJAcF0JUziYzDMt30rJTlj07652tLvU0pZaA8HZTHVg
58ahBRIDWRTR/b+bDKV84laJGZqQzLSgOQpAkUwDjw12LSg0DldN60ttsAvQiEgd
OvhOqC3VRjjDfV+VyYVsujBX4QpFGhvmHwXhwGeZ9bOoGBp1QNCfpGg18E7cb35/
GJW/0zX2FnFLVawoge8EcKjxUC07yv6nWWM8vpYu+i/rD+31yNTBRNIG8B15d3tB
+QmNfkOCPtUnydUUL6lDWe/JHZpavDqwarCRs6fOnvw2riLHkAJ2LIXGvZ/LV/0y
GWBX/Ht572lILFMnic3yG8A9DVqSKve6KteWr5sZIT8+25MU5DWs9I2pMhMG1Uwt
MUoN++fTTSECEiSbw93l
=hgim
-----END PGP SIGNATURE-----


More information about the Tech mailing list