[Open Crypto Project] #7: Fix lint warnings in SHA-256

Open Crypto Project trac at cryptech.is
Thu Nov 6 08:54:51 UTC 2014


#7: Fix lint warnings in SHA-256
----------------------+----------------------
 Reporter:  joachims  |      Owner:  joachims
     Type:  defect    |     Status:  new
 Priority:  major     |  Milestone:
Component:  email     |    Version:
 Keywords:            |
----------------------+----------------------
 Separation of Verilator warnings in #6 yields the following warnings for
 SHA-256:
 
 %Warning-WIDTH: ../src/rtl/sha256.v:155: Bit extraction of array[31:0]
 requires 5 bit index, not 7 bits.
 %Warning-WIDTH: ../src/rtl/sha256.v:220: Operator LT expects 32 or 10 bits
 on the LHS, but LHS's VARREF 'i' generates 8 bits.
 %Warning-WIDTH: ../src/rtl/sha256.v:221: Bit extraction of array[63:0]
 requires 6 bit index, not 8 bits.
 %Warning-WIDTH: ../src/rtl/sha256.v:249: Bit extraction of array[63:0]
 requires 6 bit index, not 7 bits.
 %Warning-WIDTH: ../src/rtl/sha256.v:340: Operator EQ expects 32 or 10 bits
 on the LHS, but LHS's VARREF 'rx_ptr_new' generates 8 bits.
 %Warning-WIDTH: ../src/rtl/sha256.v:419: Operator EQ expects 32 or 9 bits
 on the LHS, but LHS's VARREF 'tx_ptr_new' generates 8 bits.

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



More information about the Ticket-BCC mailing list