diff options
author | Joachim StroĢmbergson <joachim@secworks.se> | 2018-04-03 12:59:12 +0200 |
---|---|---|
committer | Joachim StroĢmbergson <joachim@secworks.se> | 2018-04-03 12:59:12 +0200 |
commit | 41286ea5bde7d73154f98ddd4e06d5c6a8115129 (patch) | |
tree | 4523935a9c7370d782f0bf7671633514223ce12b /src/rtl | |
parent | 00f002c478e718d8bc6a71d148816820a8e65fc7 (diff) |
Connected all dangling dut ports in the core testbench. Fixed RTL code that caused event loop in Icarus. Does not change functionality.
Diffstat (limited to 'src/rtl')
-rw-r--r-- | src/rtl/sha512_core.v | 14 |
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 |