diff options
author | Joachim StroĢmbergson <joachim@secworks.se> | 2018-04-23 19:01:02 +0200 |
---|---|---|
committer | Joachim StroĢmbergson <joachim@secworks.se> | 2018-04-23 19:01:02 +0200 |
commit | 667ef1d1a76df3fec86906df1c9b6e5fab8c80a9 (patch) | |
tree | e8dedc041aee090c08fdf109e861078448fd0844 /src | |
parent | 0972f00bce399135a299e9b1c8fe36f14c9f72f1 (diff) |
Correcting name for t1 and t2 update vectors. Cleaned up constants.
Diffstat (limited to 'src')
-rw-r--r-- | src/tb/tb_sha512_core.v | 8 |
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: |