[Cryptech-Commits] [test/external_avalanche_entropy] 02/02: Adding a second sample register. Now it works MUCH better.

git at cryptech.is git at cryptech.is
Thu Aug 21 14:04:47 UTC 2014


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

joachim at secworks.se pushed a commit to branch master
in repository test/external_avalanche_entropy.

commit 39cb4fba0a79a215e5b0f4db8f9b87e991a1f26d
Author: Joachim Strömbergson <joachim at secworks.se>
Date:   Thu Aug 21 16:04:38 2014 +0200

    Adding a second sample register. Now it works MUCH better.
---
 src/rtl/external_avalanche_entropy.v | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/rtl/external_avalanche_entropy.v b/src/rtl/external_avalanche_entropy.v
index 0916f7c..f7599c5 100644
--- a/src/rtl/external_avalanche_entropy.v
+++ b/src/rtl/external_avalanche_entropy.v
@@ -63,6 +63,7 @@ module external_avalanche_entropy(
   //----------------------------------------------------------------
   // Registers including update variables and write enable.
   //----------------------------------------------------------------
+  reg noise_sample0_reg;
   reg noise_sample_reg;
 
   reg flank0_reg;
@@ -106,7 +107,9 @@ module external_avalanche_entropy(
         end
       else
         begin
-          noise_sample_reg <= noise;
+
+          noise_sample0_reg <= noise;
+          noise_sample_reg <= noise_sample0_reg;
 
           flank0_reg <= noise_sample_reg;
           flank1_reg <= flank0_reg;



More information about the Commits mailing list