aboutsummaryrefslogtreecommitdiff
path: root/src/rtl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rtl')
-rw-r--r--src/rtl/sha512_core.v14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/rtl/sha512_core.v b/src/rtl/sha512_core.v
index 01f124d..e7ce7d9 100644
--- a/src/rtl/sha512_core.v
+++ b/src/rtl/sha512_core.v
@@ -536,18 +536,18 @@ module sha512_core(
//----------------------------------------------------------------
always @*
begin : work_factor_ctr
- work_factor_ctr_new = 32'h00000000;
+ work_factor_ctr_new = 32'h0;
work_factor_ctr_we = 0;
- work_factor_ctr_done = 0;
+ work_factor_ctr_done = 1;
- if (work_factor_ctr_reg == work_factor_num)
- begin
- work_factor_ctr_done = 1;
- end
+ if (work_factor_ctr_reg < work_factor_num)
+ work_factor_ctr_done = 0;
+ else
+ work_factor_ctr_done = 1;
if (work_factor_ctr_rst)
begin
- work_factor_ctr_new = 32'h00000000;
+ work_factor_ctr_new = 32'h0;
work_factor_ctr_we = 1;
end