From 5557b9dd7f660bddd36b2713ebfe5aa5b4417904 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Stro=CC=88mbergson?= Date: Sat, 18 Jul 2015 12:00:22 +0200 Subject: Read out all data in the fifo by looking at the syn flag. The fifo simulates ok. --- src/tb/tb_csprng_fifo.v | 6 ++---- 1 file 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 -- cgit v1.2.3