aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tb/tb_csprng_fifo.v15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/tb/tb_csprng_fifo.v b/src/tb/tb_csprng_fifo.v
index a1bf73c..aedcbbe 100644
--- a/src/tb/tb_csprng_fifo.v
+++ b/src/tb/tb_csprng_fifo.v
@@ -360,8 +360,8 @@ module tb_csprng_fifo();
// words all the time.
//----------------------------------------------------------------
task fifo_test();
- reg [7 : 0] i;
- reg [7 : 0] j;
+ reg [7 : 0] i;
+ reg [7 : 0] j;
begin
$display("*** Test of FIFO by loading known data and then reading out.");
@@ -392,11 +392,18 @@ module tb_csprng_fifo();
dump_fifo();
// Write another 512-bit word into the fifo.
- i = 8'd4;
+ write_w512(8'h40);
+ // Read out all of the rest of the data.
+ for (j = 0 ; j < 200 ; j = j + 1)
+ begin
+ read_w32();
+ end
+
+ dump_fifo();
end
- endtask // init_sim
+ endtask // fifo_test
//----------------------------------------------------------------