[Open Crypto Project] #8: Fix lint warnings in SHA-512

Open Crypto Project trac at cryptech.is
Thu Nov 6 08:56:01 UTC 2014


#8: Fix lint warnings in SHA-512
----------------------+----------------------
 Reporter:  joachims  |      Owner:  joachims
     Type:  defect    |     Status:  new
 Priority:  major     |  Milestone:
Component:  rtl       |    Version:
 Keywords:            |
----------------------+----------------------
 Exatraction of warnings in #6 for SHA-512:

 %Warning-WIDTH: ../../sha512/src/rtl/sha512_w_mem.v:333: Operator EQ
 expects 7 bits on the RHS, but RHS's CONST '6'h3f' generates 6 bits.
 %Warning-WIDTH: ../src/rtl/sha512.v:183: Bit extraction of array[63:0]
 requires 6 bit index, not 7 bits.
 %Warning-WIDTH: ../src/rtl/sha512.v:281: Operator LT expects 32 or 11 bits
 on the LHS, but LHS's VARREF 'i' generates 8 bits.
 %Warning-WIDTH: ../src/rtl/sha512.v:282: Bit extraction of array[127:0]
 requires 7 bit index, not 8 bits.
 %Warning-WIDTH: ../src/rtl/sha512.v:401: Operator EQ expects 32 or 11 bits
 on the LHS, but LHS's VARREF 'rx_ptr_new' generates 8 bits.
 %Warning-WIDTH: ../src/rtl/sha512.v:481: Operator EQ expects 32 or 9 bits
 on the LHS, but LHS's VARREF 'tx_ptr_new' generates 8 bits.
 %Warning-WIDTH: ../src/rtl/sha512.v:482: Operator EQ expects 32 or 9 bits
 on the LHS, but LHS's VARREF 'tx_ptr_new' generates 8 bits.
 %Warning-WIDTH: ../src/rtl/sha512.v:483: Operator EQ expects 32 or 10 bits
 on the LHS, but LHS's VARREF 'tx_ptr_new' generates 8 bits.

--
Ticket URL: <https://trac.cryptech.is/ticket/8>
Open Crypto Project <https://wiki.cryptech.is/>



More information about the Ticket-BCC mailing list