[Cryptech-Commits] [core/rng/trng] 01/01: (1) Removed obsolete dump of values from the monitor. (2) Changed to using proper API write_word.
git at cryptech.is
git at cryptech.is
Wed Aug 26 14:03:15 UTC 2015
This is an automated email from the git hooks/post-receive script.
joachim at secworks.se pushed a commit to branch master
in repository core/rng/trng.
commit e941c5de99bd45ed439d8f5751015d9ea1b31546
Author: Joachim Strömbergson <joachim at secworks.se>
Date: Wed Aug 26 16:03:10 2015 +0200
(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;
More information about the Commits
mailing list