[Cryptech-Commits] [core/rng/avalanche_entropy] branch master updated: Harmonize status valid bit with other cores.

git at cryptech.is git at cryptech.is
Wed Nov 18 04:43:15 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.

The following commit(s) were added to refs/heads/master by this push:
       new  5742813   Harmonize status valid bit with other cores.
5742813 is described below

commit 5742813ab43fec9fa90d970f086f1e266875b8f3
Author: Paul Selkirk <paul at psgd.org>
Date:   Tue Nov 17 23:40:22 2015 -0500

    Harmonize status valid bit with other cores.
---
 src/rtl/avalanche_entropy.v | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/rtl/avalanche_entropy.v b/src/rtl/avalanche_entropy.v
index 6ae824a..fc70f5f 100644
--- a/src/rtl/avalanche_entropy.v
+++ b/src/rtl/avalanche_entropy.v
@@ -80,7 +80,7 @@ module avalanche_entropy(
   localparam CTRL_ENABLE_BIT  = 0;
 
   localparam ADDR_STATUS      = 8'h09;
-  localparam STATUS_VALID_BIT = 0;
+  localparam STATUS_VALID_BIT = 1;
 
   localparam ADDR_ENTROPY     = 8'h20;
   localparam ADDR_DELTA       = 8'h30;
@@ -203,13 +203,13 @@ module avalanche_entropy(
 
                 ADDR_CTRL:
                   begin
-                    tmp_read_data = {31'h00000000, enable_reg};
+                    tmp_read_data[CTRL_ENABLE_BIT] = enable_reg;
                   end
 
                 ADDR_STATUS:
                   begin
-                    tmp_read_data = {31'h00000000, entropy_valid};
-                   end
+                    tmp_read_data[STATUS_VALID_BIT] = entropy_valid;
+                  end
 
                 ADDR_ENTROPY:
                   begin

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Commits mailing list