[Cryptech-Commits] [test/external_avalanche_entropy] 02/02: Fixed bug in flank detection.

git at cryptech.is git at cryptech.is
Thu Aug 21 13:57:28 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 64752b4f635b04ea578133bf3e124a3fcc814bf1
Author: Joachim Strömbergson <joachim at secworks.se>
Date:   Thu Aug 21 15:57:19 2014 +0200

    Fixed bug in flank detection.
---
 src/rtl/external_avalanche_entropy.v | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/rtl/external_avalanche_entropy.v b/src/rtl/external_avalanche_entropy.v
index 760973b..0916f7c 100644
--- a/src/rtl/external_avalanche_entropy.v
+++ b/src/rtl/external_avalanche_entropy.v
@@ -140,7 +140,7 @@ module external_avalanche_entropy(
       entropy_we  = 1'b0;
 
       // Update the entropy shift register every positive flank.
-      if ((flank0_reg) && (flank1_reg))
+      if ((flank0_reg) && (!flank1_reg))
         begin
           entropy_new = {entropy_reg[30 : 0], cycle_ctr_reg[0]};
           entropy_we  = 1'b1;



More information about the Commits mailing list