From 4c777a27705f6d87b7b8cd0f5c312b9023ebb662 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Stro=CC=88mbergson?= Date: Fri, 6 Apr 2018 14:07:57 +0200 Subject: Added registers for t1 and t2. Updated tb to look at update vectors. --- src/tb/tb_sha512_core.v | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/tb') diff --git a/src/tb/tb_sha512_core.v b/src/tb/tb_sha512_core.v index 955fee6..0d198d6 100644 --- a/src/tb/tb_sha512_core.v +++ b/src/tb/tb_sha512_core.v @@ -176,7 +176,7 @@ module tb_sha512_core(); dut.state_init, dut.state_update); $display("first_block = 0x%01x, ready_flag = 0x%01x, w_init = 0x%01x", dut.first_block, dut.ready_flag, dut.w_init); - $display("round_ctr_inc = 0x%01x, round_ctr_rst = 0x%01x, round_ctr_reg = 0x%02x", + $display("round_ctr_inc = 0x%01x, round_ctr_rst = 0x%01x, round_ctr_reg = 0x%02x", dut.round_ctr_inc, dut.round_ctr_rst, dut.round_ctr_reg); $display(""); @@ -194,7 +194,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, dut.t2); + $display("t1 = 0x%08x, t2 = 0x%08x", dut.t1_new, dut.t2_new); $display(""); end endtask // dump_dut_state @@ -260,7 +260,7 @@ module tb_sha512_core(); tb_next = 0; tb_next = 2'b00; tb_mode = 2'b00; - tb_block = {32{32'h00000000}}; + tb_block = {1024'h0}; end endtask // init_dut -- cgit v1.2.3