aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoachim StroĢˆmbergson <joachim@secworks.se>2018-04-03 13:02:11 +0200
committerJoachim StroĢˆmbergson <joachim@secworks.se>2018-04-03 13:02:11 +0200
commit7a2b0f93dab7a8b512eb7dcd3444cf925240e807 (patch)
tree417abc84496815442676a3912b7e1a1cfcd40cda /src
parent41286ea5bde7d73154f98ddd4e06d5c6a8115129 (diff)
Changed constant declaraiton to use hex radix. Removed now redundant flag signal assignment.
Diffstat (limited to 'src')
-rw-r--r--src/rtl/sha512_core.v1
-rw-r--r--src/tb/tb_sha512_core.v34
2 files changed, 17 insertions, 18 deletions
diff --git a/src/rtl/sha512_core.v b/src/rtl/sha512_core.v
index e7ce7d9..1b1aeda 100644
--- a/src/rtl/sha512_core.v
+++ b/src/rtl/sha512_core.v
@@ -538,7 +538,6 @@ module sha512_core(
begin : work_factor_ctr
work_factor_ctr_new = 32'h0;
work_factor_ctr_we = 0;
- work_factor_ctr_done = 1;
if (work_factor_ctr_reg < work_factor_num)
work_factor_ctr_done = 0;
diff --git a/src/tb/tb_sha512_core.v b/src/tb/tb_sha512_core.v
index 0a56b6f..e2b8a21 100644
--- a/src/tb/tb_sha512_core.v
+++ b/src/tb/tb_sha512_core.v
@@ -86,7 +86,7 @@ module tb_sha512_core();
.next(tb_next),
.mode(tb_mode),
- .work_factor(1'b0),
+ .work_factor(1'h0),
.work_factor_num(32'h0),
.block(tb_block),
@@ -94,22 +94,22 @@ module tb_sha512_core();
.ready(tb_ready),
.state_wr_data(32'h0),
- .state00_we(1'b0),
- .state01_we(1'b0),
- .state02_we(1'b0),
- .state03_we(1'b0),
- .state04_we(1'b0),
- .state05_we(1'b0),
- .state06_we(1'b0),
- .state07_we(1'b0),
- .state08_we(1'b0),
- .state09_we(1'b0),
- .state10_we(1'b0),
- .state11_we(1'b0),
- .state12_we(1'b0),
- .state13_we(1'b0),
- .state14_we(1'b0),
- .state15_we(1'b0),
+ .state00_we(1'h0),
+ .state01_we(1'h0),
+ .state02_we(1'h0),
+ .state03_we(1'h0),
+ .state04_we(1'h0),
+ .state05_we(1'h0),
+ .state06_we(1'h0),
+ .state07_we(1'h0),
+ .state08_we(1'h0),
+ .state09_we(1'h0),
+ .state10_we(1'h0),
+ .state11_we(1'h0),
+ .state12_we(1'h0),
+ .state13_we(1'h0),
+ .state14_we(1'h0),
+ .state15_we(1'h0),
.digest(tb_digest),
.digest_valid(tb_digest_valid)