[Cryptech-Commits] [core/hash/sha256] branch master updated: Added width definition.
git at cryptech.is
git at cryptech.is
Tue Oct 16 08:30:27 UTC 2018
This is an automated email from the git hooks/post-receive script.
joachim at secworks.se pushed a commit to branch master
in repository core/hash/sha256.
The following commit(s) were added to refs/heads/master by this push:
new 051b591 Added width definition.
051b591 is described below
commit 051b5914c988dcf58002817cb09e92bf7992f361
Author: Joachim Strömbergson <joachim at secworks.se>
AuthorDate: Tue Oct 16 10:30:20 2018 +0200
Added width definition.
---
src/rtl/sha256.v | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/rtl/sha256.v b/src/rtl/sha256.v
index 17fcd84..67c8a6b 100644
--- a/src/rtl/sha256.v
+++ b/src/rtl/sha256.v
@@ -242,12 +242,12 @@ module sha256(
begin
if (!reset_n)
begin
- init_reg <= 0;
- next_reg <= 0;
+ init_reg <= 1'h0;
+ next_reg <= 1'h0;
mode_reg <= MODE_SHA_256;
- ready_reg <= 0;
+ ready_reg <= 1'h0;
digest_reg <= 256'h0;
- digest_valid_reg <= 0;
+ digest_valid_reg <= 1'h0;
block0_reg <= 32'h0;
block1_reg <= 32'h0;
block2_reg <= 32'h0;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Commits
mailing list