diff options
author | Joachim StroĢmbergson <joachim@secworks.se> | 2018-10-16 10:14:05 +0200 |
---|---|---|
committer | Joachim StroĢmbergson <joachim@secworks.se> | 2018-10-16 10:14:05 +0200 |
commit | 6bac922a4d138363c483b55fd2027f0c660fd5e6 (patch) | |
tree | 14411075cf0da126a4d42592dca2cb57b61cebe9 /src/rtl/chacha.v | |
parent | 58f30c1e67b57e26ade0234107fbfb6f17b8af66 (diff) |
Adding width specification, fixed order and other nits as part of ceckning that all registers are properly reset.
Diffstat (limited to 'src/rtl/chacha.v')
-rw-r--r-- | src/rtl/chacha.v | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rtl/chacha.v b/src/rtl/chacha.v index bc891f7..8bfaba6 100644 --- a/src/rtl/chacha.v +++ b/src/rtl/chacha.v @@ -173,9 +173,9 @@ module chacha( integer i; if (!reset_n) begin - init_reg <= 0; - next_reg <= 0; - keylen_reg <= 0; + init_reg <= 1'h0; + next_reg <= 1'h0; + keylen_reg <= 1'h0; rounds_reg <= 5'h0; iv_reg[0] <= 32'h0; iv_reg[1] <= 32'h0; |