diff options
author | Joachim StroĢmbergson <joachim@secworks.se> | 2015-08-26 16:03:10 +0200 |
---|---|---|
committer | Joachim StroĢmbergson <joachim@secworks.se> | 2015-08-26 16:03:10 +0200 |
commit | e941c5de99bd45ed439d8f5751015d9ea1b31546 (patch) | |
tree | 1f74be504f7bbedf8834a198cd057bfd9636ee41 | |
parent | 01336260cf2df771cd246c131238ef70b23d3c10 (diff) |
(1) Removed obsolete dump of values from the monitor. (2) Changed to using proper API write_word.
-rw-r--r-- | src/tb/tb_csprng.v | 19 |
1 files 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; |