[Cryptech-Commits] [core/rng/avalanche_entropy] 01/01: register data for eim output

git at cryptech.is git at cryptech.is
Wed Mar 25 05:07:05 UTC 2015


This is an automated email from the git hooks/post-receive script.

paul at psgd.org pushed a commit to branch master
in repository core/rng/avalanche_entropy.

commit 371b7e3e652010015aa1d991163df4606aae8aea
Author: Paul Selkirk <paul at psgd.org>
Date:   Wed Mar 25 01:03:24 2015 -0400

    register data for eim output
---
 src/rtl/avalanche_entropy.v | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/rtl/avalanche_entropy.v b/src/rtl/avalanche_entropy.v
index a9f69c9..686dd2d 100644
--- a/src/rtl/avalanche_entropy.v
+++ b/src/rtl/avalanche_entropy.v
@@ -80,7 +80,7 @@ module avalanche_entropy(
   parameter CTRL_ENABLE_BIT         = 0;
 
   parameter ADDR_STATUS             = 8'h11;
-  parameter STATUS_ENABLE_VALID_BIT = 0;
+  parameter STATUS_VALID_BIT        = 0;
 
   parameter ADDR_ENTROPY            = 8'h20;
   parameter ADDR_DELTA              = 8'h30;
@@ -105,13 +105,14 @@ module avalanche_entropy(
   wire [31 : 0]  delta;
 
   reg [31 : 0]   tmp_read_data;
+  reg [31 : 0]   tmp_read_data_reg;
   reg            tmp_error;
 
 
   //----------------------------------------------------------------
   // Concurrent connectivity for ports etc.
   //----------------------------------------------------------------
-  assign read_data       = tmp_read_data;
+  assign read_data       = tmp_read_data_reg;
   assign error           = tmp_error;
   assign security_error  = 0;
 
@@ -234,6 +235,12 @@ module avalanche_entropy(
         end // if (cs)
     end // api_logic
 
+   // register data for eim output
+   always @(posedge clk)
+     begin
+        tmp_read_data_reg <= tmp_read_data;
+     end
+
 endmodule // avalanche_entropy
 
 //======================================================================



More information about the Commits mailing list