aboutsummaryrefslogtreecommitdiff
path: root/src/rtl/sha512_core.v
diff options
context:
space:
mode:
authorJoachim StroĢˆmbergson <joachim@secworks.se>2018-12-04 13:23:11 +0100
committerJoachim StroĢˆmbergson <joachim@secworks.se>2018-12-04 13:23:11 +0100
commit4366616569bdbb9b174c49903b8e7f155ccbe598 (patch)
tree977c20d2bf31596e14e71d6f48b03ec604de6892 /src/rtl/sha512_core.v
parent68be75968aa4f74329fa5597b0221bce0610f657 (diff)
parent4ebdf3e80842e38906d85badbbaf25435aa85677 (diff)
Merged clock speed optimization work.HEADmaster
Diffstat (limited to 'src/rtl/sha512_core.v')
-rw-r--r--src/rtl/sha512_core.v15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/rtl/sha512_core.v b/src/rtl/sha512_core.v
index 407f84c..6f6f821 100644
--- a/src/rtl/sha512_core.v
+++ b/src/rtl/sha512_core.v
@@ -79,12 +79,11 @@ module sha512_core(
//----------------------------------------------------------------
// Internal constant and parameter definitions.
//----------------------------------------------------------------
- parameter SHA512_ROUNDS = 79;
-
- parameter CTRL_IDLE = 0;
- parameter CTRL_T1_T2 = 1;
- parameter CTRL_ROUNDS = 2;
- parameter CTRL_DONE = 3;
+ localparam SHA512_ROUNDS = 79;
+ localparam CTRL_IDLE = 0;
+ localparam CTRL_T1_T2 = 1;
+ localparam CTRL_ROUNDS = 2;
+ localparam CTRL_DONE = 3;
//----------------------------------------------------------------
@@ -634,7 +633,8 @@ module sha512_core(
CTRL_T1_T2:
begin
- t1_t2_we = 1;
+ t1_t2_we = 1;
+ w_next = 1;
sha512_ctrl_new = CTRL_ROUNDS;
sha512_ctrl_we = 1;
end
@@ -642,7 +642,6 @@ module sha512_core(
CTRL_ROUNDS:
begin
- w_next = 1;
state_update = 1;
round_ctr_inc = 1;