From 39cb4fba0a79a215e5b0f4db8f9b87e991a1f26d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Stro=CC=88mbergson?= Date: Thu, 21 Aug 2014 16:04:38 +0200 Subject: Adding a second sample register. Now it works MUCH better. --- src/rtl/external_avalanche_entropy.v | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/rtl') 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; -- cgit v1.2.3