From 667ef1d1a76df3fec86906df1c9b6e5fab8c80a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Stro=CC=88mbergson?= Date: Mon, 23 Apr 2018 19:01:02 +0200 Subject: Correcting name for t1 and t2 update vectors. Cleaned up constants. --- src/tb/tb_sha512_core.v | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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: -- cgit v1.2.3