aboutsummaryrefslogtreecommitdiff
path: root/src/rtl
diff options
context:
space:
mode:
authorJoachim StroĢˆmbergson <joachim@secworks.se>2014-08-21 15:57:19 +0200
committerJoachim StroĢˆmbergson <joachim@secworks.se>2014-08-21 15:57:19 +0200
commit64752b4f635b04ea578133bf3e124a3fcc814bf1 (patch)
tree2497552f61f729e8f375722a9f242cf0a8d05ad6 /src/rtl
parent31f97264272ee6cf1211e1e348ae521f2d78f6a3 (diff)
Fixed bug in flank detection.
Diffstat (limited to 'src/rtl')
-rw-r--r--src/rtl/external_avalanche_entropy.v2
1 files changed, 1 insertions, 1 deletions
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;