diff options
author | Joachim StroĢmbergson <joachim@secworks.se> | 2014-08-21 16:04:38 +0200 |
---|---|---|
committer | Joachim StroĢmbergson <joachim@secworks.se> | 2014-08-21 16:04:38 +0200 |
commit | 39cb4fba0a79a215e5b0f4db8f9b87e991a1f26d (patch) | |
tree | 3205d5e0d093802cebd47f6bb0650c0aaa2fb06a | |
parent | a1d04abc362bd3c392c296f3a5bf04e32216a0db (diff) |
Adding a second sample register. Now it works MUCH better.
-rw-r--r-- | src/rtl/external_avalanche_entropy.v | 5 |
1 files changed, 4 insertions, 1 deletions
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; |