diff options
Diffstat (limited to 'src/tb')
-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; |