aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim StroĢˆmbergson <joachim@secworks.se>2015-07-18 12:00:22 +0200
committerJoachim StroĢˆmbergson <joachim@secworks.se>2015-07-18 12:00:22 +0200
commit5557b9dd7f660bddd36b2713ebfe5aa5b4417904 (patch)
treef81fc4dd8053d32afe3e34243127044fad9206d8
parenta3f303be2959f3142feacd6328e9dfdc960e09d6 (diff)
Read out all data in the fifo by looking at the syn flag. The fifo simulates ok.
-rw-r--r--src/tb/tb_csprng_fifo.v6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/tb/tb_csprng_fifo.v b/src/tb/tb_csprng_fifo.v
index aedcbbe..a2db466 100644
--- a/src/tb/tb_csprng_fifo.v
+++ b/src/tb/tb_csprng_fifo.v
@@ -396,10 +396,8 @@ module tb_csprng_fifo();
// Read out all of the rest of the data.
- for (j = 0 ; j < 200 ; j = j + 1)
- begin
- read_w32();
- end
+ while (tb_rnd_syn)
+ read_w32();
dump_fifo();
end