aboutsummaryrefslogtreecommitdiff
path: root/src/tb
diff options
context:
space:
mode:
Diffstat (limited to 'src/tb')
-rw-r--r--src/tb/tb_sha512_core.v8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tb/tb_sha512_core.v b/src/tb/tb_sha512_core.v
index 2fa665a..4e75048 100644
--- a/src/tb/tb_sha512_core.v
+++ b/src/tb/tb_sha512_core.v
@@ -192,7 +192,7 @@ module tb_sha512_core();
$display("State update values:");
$display("w = 0x%08x, k = 0x%08x", dut.w_data, dut.k_data);
- $display("t1 = 0x%08x, t2 = 0x%08x", dut.t1_new, dut.t2_new);
+ $display("t1_new = 0x%08x, t2_new = 0x%08x", dut.t1_new, dut.t2_new);
$display("t1_reg = 0x%08x, t2_reg = 0x%08x", dut.t1_reg, dut.t2_reg);
$display("a_new = 0x%08x, b_new = 0x%08x, c_new = 0x%08x, d_new = 0x%08x",
dut.a_new, dut.b_new, dut.c_new, dut.d_new);
@@ -332,17 +332,17 @@ module tb_sha512_core();
case (mode)
MODE_SHA_512_224:
begin
- mask = {{7{32'hffffffff}}, {9{32'h00000000}}};
+ mask = {{7{32'hffffffff}}, 288'h0};
end
MODE_SHA_512_256:
begin
- mask = {{8{32'hffffffff}}, {8{32'h00000000}}};
+ mask = {{8{32'hffffffff}}, 256'h0};
end
MODE_SHA_384:
begin
- mask = {{12{32'hffffffff}}, {4{32'h00000000}}};
+ mask = {{12{32'hffffffff}}, 128'h0};
end
MODE_SHA_512: