From e941c5de99bd45ed439d8f5751015d9ea1b31546 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Stro=CC=88mbergson?= Date: Wed, 26 Aug 2015 16:03:10 +0200 Subject: (1) Removed obsolete dump of values from the monitor. (2) Changed to using proper API write_word. --- src/tb/tb_csprng.v | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/src/tb/tb_csprng.v b/src/tb/tb_csprng.v index 7f7823e..5cfb398 100644 --- a/src/tb/tb_csprng.v +++ b/src/tb/tb_csprng.v @@ -210,11 +210,6 @@ module tb_csprng(); dut.cipher_inst.ready, dut.cipher_inst.data_out_valid); $display("cipher data out: 0x%064x", dut.cipher_inst.data_out); $display(""); - - $display("Outputs:"); - $display("rnd_syn = 0x%01x, rnd_ack = 0x%01x, rnd_data = 0x%08x", - dut.rnd_syn, dut.rnd_ack, tb_read_data); - $display(""); end endtask // dump_dut_state @@ -237,6 +232,7 @@ module tb_csprng(); tb_write_data = word; tb_cs = 1; tb_we = 1; + #(2 * CLK_PERIOD); tb_cs = 0; tb_we = 0; @@ -381,17 +377,8 @@ module tb_csprng(); tb_seed_syn = 1'b1; // Set the max block size to a low value - tb_cs = 1'b1; - tb_we = 1'b1; - tb_address = ADDR_NUM_BLOCKS_HIGH; - tb_write_data = 32'h00000000; - #(CLK_PERIOD); - tb_address = ADDR_NUM_BLOCKS_LOW; - tb_write_data = 32'h00000001; - #(CLK_PERIOD); - tb_cs = 1'b0; - tb_we = 1'b0; - #(CLK_PERIOD); + write_word(ADDR_NUM_BLOCKS_HIGH, 32'h00000000); + write_word(ADDR_NUM_BLOCKS_LOW, 32'h00000001); // Start pulling data. tb_cs = 1'b1; -- cgit v1.2.3