diff options
author | Joachim StroĢmbergson <joachim@secworks.se> | 2018-10-16 10:19:11 +0200 |
---|---|---|
committer | Joachim StroĢmbergson <joachim@secworks.se> | 2018-10-16 10:19:11 +0200 |
commit | d3564a0907fe14b92ab02e4da2d9f733bc32e347 (patch) | |
tree | 8ac243db1a638a1ecac631ae736d7e6e93fb869d /src/rtl/sha1.v | |
parent | 9daf474ac53397fbe8c427493f619b89917fc8fa (diff) |
Added width definition to reset values as part of checking that all registers are properly reset.
Diffstat (limited to 'src/rtl/sha1.v')
-rw-r--r-- | src/rtl/sha1.v | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rtl/sha1.v b/src/rtl/sha1.v index c1fd8ec..16b565e 100644 --- a/src/rtl/sha1.v +++ b/src/rtl/sha1.v @@ -154,11 +154,11 @@ module sha1( if (!reset_n) begin - init_reg <= 0; - next_reg <= 0; - ready_reg <= 0; + init_reg <= 1'h0; + next_reg <= 1'h0; + ready_reg <= 1'h0; digest_reg <= 160'h0; - digest_valid_reg <= 0; + digest_valid_reg <= 1'h0; for (i = 0 ; i < 16 ; i = i + 1) block_reg[i] <= 32'h0; |