aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;