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

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

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

commit c1d4e1c8840f10cc24381a29437a8ed71b101bd2
Author: Paul Selkirk <paul at psgd.org>
Date:   Tue Nov 17 23:42:34 2015 -0500

    Harmonize status valid bit with other cores.
---
 src/rtl/trng_csprng.v | 4 ++--
 src/rtl/trng_mixer.v  | 1 -
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/rtl/trng_csprng.v b/src/rtl/trng_csprng.v
index c0a0c12..0f886d2 100644
--- a/src/rtl/trng_csprng.v
+++ b/src/rtl/trng_csprng.v
@@ -74,7 +74,7 @@ module trng_csprng(
   localparam CTRL_SEED_BIT         = 1;
 
   localparam ADDR_STATUS           = 8'h09;
-  localparam STATUS_RND_VALID_BIT  = 0;
+  localparam STATUS_RND_VALID_BIT  = 1;
 
   localparam ADDR_STAT_BLOCKS_LOW  = 8'h14;
   localparam ADDR_STAT_BLOCKS_HIGH = 8'h15;
@@ -428,7 +428,7 @@ module trng_csprng(
                     tmp_read_data = {30'h00000000, seed_reg, enable_reg};
 
                 ADDR_STATUS:
-                    tmp_read_data = {30'h00000000, ready_reg, rnd_syn};
+                    tmp_read_data = {30'h00000000, rnd_syn, ready_reg};
 
                 ADDR_STAT_BLOCKS_LOW:
                   tmp_read_data = block_stat_ctr_reg[31 : 0];
diff --git a/src/rtl/trng_mixer.v b/src/rtl/trng_mixer.v
index 32d9216..9ee0094 100644
--- a/src/rtl/trng_mixer.v
+++ b/src/rtl/trng_mixer.v
@@ -494,7 +494,6 @@ module trng_mixer(
     begin : mixer_api_logic
       enable_new          = 0;
       enable_we           = 0;
-      restart_reg         = 0;
       restart_new         = 0;
       entropy_timeout_new = 24'h000000;
       entropy_timeout_we  = 0;

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


More information about the Commits mailing list