[Cryptech-Commits] [core/rng/trng] 01/01: Read out all data in the fifo by looking at the syn flag. The fifo simulates ok.

git at cryptech.is git at cryptech.is
Sat Jul 18 10:00:28 UTC 2015


This is an automated email from the git hooks/post-receive script.

joachim at secworks.se pushed a commit to branch fifo_debug
in repository core/rng/trng.

commit 5557b9dd7f660bddd36b2713ebfe5aa5b4417904
Author: Joachim Strömbergson <joachim at secworks.se>
Date:   Sat Jul 18 12:00:22 2015 +0200

    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



More information about the Commits mailing list