From e7a62820110fd6b90187855073fb1317d8586bd3 Mon Sep 17 00:00:00 2001
From: Paul Selkirk <paul@psgd.org>
Date: Mon, 16 Nov 2015 14:27:10 -0500
Subject: 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;
-- 
cgit v1.2.3