[Cryptech-Commits] [core/rng/trng] 02/02: harmonize ctrl and status addresses with other cores

git at cryptech.is git at cryptech.is
Mon Nov 16 21:42:17 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.

commit e7a62820110fd6b90187855073fb1317d8586bd3
Author: Paul Selkirk <paul at psgd.org>
Date:   Mon Nov 16 14:27:10 2015 -0500

    harmonize ctrl and status addresses with other cores
---
 src/rtl/trng_csprng.v | 4 ++--
 src/rtl/trng_mixer.v  | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/rtl/trng_csprng.v b/src/rtl/trng_csprng.v
index d33e72a..c0a0c12 100644
--- a/src/rtl/trng_csprng.v
+++ b/src/rtl/trng_csprng.v
@@ -69,11 +69,11 @@ module trng_csprng(
   localparam ADDR_NAME1            = 8'h01;
   localparam ADDR_VERSION          = 8'h02;
 
-  localparam ADDR_CTRL             = 8'h10;
+  localparam ADDR_CTRL             = 8'h08;
   localparam CTRL_ENABLE_BIT       = 0;
   localparam CTRL_SEED_BIT         = 1;
 
-  localparam ADDR_STATUS           = 8'h11;
+  localparam ADDR_STATUS           = 8'h09;
   localparam STATUS_RND_VALID_BIT  = 0;
 
   localparam ADDR_STAT_BLOCKS_LOW  = 8'h14;
diff --git a/src/rtl/trng_mixer.v b/src/rtl/trng_mixer.v
index d192090..32d9216 100644
--- a/src/rtl/trng_mixer.v
+++ b/src/rtl/trng_mixer.v
@@ -103,10 +103,10 @@ module trng_mixer(
   localparam ADDR_NAME1            = 8'h01;
   localparam ADDR_VERSION          = 8'h02;
 
-  localparam ADDR_MIXER_CTRL        = 8'h10;
+  localparam ADDR_MIXER_CTRL        = 8'h08;
   localparam MIXER_CTRL_ENABLE_BIT  = 0;
   localparam MIXER_CTRL_RESTART_BIT = 1;
-  localparam ADDR_MIXER_STATUS      = 8'h11;
+  localparam ADDR_MIXER_STATUS      = 8'h09;
   localparam ADDR_MIXER_TIMEOUT     = 8'h20;
 
   localparam DEFAULT_ENTROPY_TIMEOUT = 24'h100000;



More information about the Commits mailing list