From 64752b4f635b04ea578133bf3e124a3fcc814bf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Stro=CC=88mbergson?= Date: Thu, 21 Aug 2014 15:57:19 +0200 Subject: Fixed bug in flank detection. --- src/rtl/external_avalanche_entropy.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3