aboutsummaryrefslogtreecommitdiff
path: root/src/rtl
diff options
context:
space:
mode:
authorJoachim StroĢˆmbergson <joachim@secworks.se>2018-10-16 10:30:20 +0200
committerJoachim StroĢˆmbergson <joachim@secworks.se>2018-10-16 10:30:20 +0200
commit051b5914c988dcf58002817cb09e92bf7992f361 (patch)
tree499b3929b386949cc152b779312048e8159c53f3 /src/rtl
parentbb03cc0bdc9f05bdc6c861ed5d725c6a0970ae5d (diff)
Added width definition.
Diffstat (limited to 'src/rtl')
-rw-r--r--src/rtl/sha256.v8
1 files 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;